From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 891F9C433E6 for ; Fri, 26 Feb 2021 09:34:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F5C964E21 for ; Fri, 26 Feb 2021 09:34:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230155AbhBZJeh (ORCPT ); Fri, 26 Feb 2021 04:34:37 -0500 Received: from mail-il1-f198.google.com ([209.85.166.198]:51307 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbhBZJd4 (ORCPT ); Fri, 26 Feb 2021 04:33:56 -0500 Received: by mail-il1-f198.google.com with SMTP id y11so6539079ilc.18 for ; Fri, 26 Feb 2021 01:33:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=THYLeXXwOJM3i5c20cB4pRajHL018nJ1FMhoVbpcroA=; b=QANwfFOtl9EwzcJk0H+9ZjmsFPmGcrvon+83tec7TP/G5avEHx4BE9dhVZXVYArP8k oQgTBDQ2HJSiuD+Rg9UESktq9h9U+TL4Y67WI4nr4Z17kmrqa3DlD78ZRJ5G/PY/T1az sTbd4Cns9FBagzZHcm+EtEgtnZlLl+twSMwm1aAovLK2H4zpqUc+TxI7wJOasrSilijH jIyYjj3TPQaQmM9rJKDgZsLuUpcDHkWxgPTecgGmo2HVCDmtz+nwabLiNzV8V2JiSSro tgSWQx+JfowbEycW06vp8r8iZdavdQzIkC3cnBqAsx+wM+t+vuyageit2Wax6QuG5GVh 8JUg== X-Gm-Message-State: AOAM5300kCye2jAD5sU+/6XUMTbCIpASm1JN9/nxP1M0XDup6puTr7AS n0vPJHn3cTGKHqP1uLjOsRnlLIhdcoFvxpZm24dROPayi1cY X-Google-Smtp-Source: ABdhPJzRcavYFpGfLxQpLP1P+swzqB8AKNY3SwOzdv5E40P+CYLZcbFX+yau32xAelk9H2pNA6xFQcJoYr43OiIRIgdBvv73Bbnd MIME-Version: 1.0 X-Received: by 2002:a02:4c8:: with SMTP id 191mr2031284jab.27.1614331995416; Fri, 26 Feb 2021 01:33:15 -0800 (PST) Date: Fri, 26 Feb 2021 01:33:15 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000022ebeb05bc39f582@google.com> Subject: KASAN: null-ptr-deref Write in io_uring_cancel_sqpoll From: syzbot To: asml.silence@gmail.com, axboe@kernel.dk, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: d01f2f7e Add linux-next specific files for 20210226 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=108dc5a8d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=a1746d2802a82a05 dashboard link: https://syzkaller.appspot.com/bug?extid=be51ca5a4d97f017cd50 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+be51ca5a4d97f017cd50@syzkaller.appspotmail.com ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: null-ptr-deref in atomic_inc include/asm-generic/atomic-instrumented.h:240 [inline] BUG: KASAN: null-ptr-deref in io_uring_cancel_sqpoll+0x2c7/0x450 fs/io_uring.c:8871 Write of size 4 at addr 0000000000000110 by task iou-sqp-19439/19447 CPU: 0 PID: 19447 Comm: iou-sqp-19439 Not tainted 5.11.0-next-20210226-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xfa/0x151 lib/dump_stack.c:120 __kasan_report mm/kasan/report.c:403 [inline] kasan_report.cold+0x5f/0xd8 mm/kasan/report.c:416 check_region_inline mm/kasan/generic.c:180 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:186 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_inc include/asm-generic/atomic-instrumented.h:240 [inline] io_uring_cancel_sqpoll+0x2c7/0x450 fs/io_uring.c:8871 io_sq_thread+0x1109/0x1ae0 fs/io_uring.c:6782 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 19447 Comm: iou-sqp-19439 Tainted: G B 5.11.0-next-20210226-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xfa/0x151 lib/dump_stack.c:120 panic+0x306/0x73d kernel/panic.c:231 end_report mm/kasan/report.c:102 [inline] end_report.cold+0x5a/0x5a mm/kasan/report.c:88 __kasan_report mm/kasan/report.c:406 [inline] kasan_report.cold+0x6a/0xd8 mm/kasan/report.c:416 check_region_inline mm/kasan/generic.c:180 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:186 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_inc include/asm-generic/atomic-instrumented.h:240 [inline] io_uring_cancel_sqpoll+0x2c7/0x450 fs/io_uring.c:8871 io_sq_thread+0x1109/0x1ae0 fs/io_uring.c:6782 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Kernel Offset: disabled Rebooting in 86400 seconds.. --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.