Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1071783pxb; Fri, 26 Feb 2021 01:36:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJytHhZaFUqsOMnjWLsK45CN5Pmq9wkCapABMLzxGJJ3b4HPLsVN4oBCd4NrlhtDxSXyvCb1 X-Received: by 2002:a17:906:71d4:: with SMTP id i20mr2298740ejk.222.1614332173549; Fri, 26 Feb 2021 01:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614332173; cv=none; d=google.com; s=arc-20160816; b=H3Ux02SLnqqyknKIF1/2e5UGI42iUObrokD1mzixvT+IodcUDQiK/4y7gXBp1jsQ8G 7oYbizDzj68OAdImZjc2AD5bqNSQxnDvqQDBGyb+W/7qJ09QALoJKxLphUuVF49fjuob ueZu0zv4ySshItiQKyg7Ma2ujKQqHfdMkicuMRB3ZmYAz1AIWBJ7VQoUbM/0OISfKexS kx39f9Ih/SFcKipyCWCspIQXWt1JoW8hFwa/SFcoO6yQhhfSx5K7B2J5komc73p2LAJK D12pqftMgJoTHX4IeoMNTCXm9kc5/ZItd9IQi9T8XXki3RBaH9LF9+XVwJZRPKrwT39M i+Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=THYLeXXwOJM3i5c20cB4pRajHL018nJ1FMhoVbpcroA=; b=B1AShSdYeRr3+8wF6+uL1QQHXumVABSAA1ilGwqFM49E/DWwR4xN0yO2389uyN5XMd QivCjB/BlS9CkATmJc3oIF/MF8wWZ0M2XsXIjB0eqmyUiXZRzwZTxi1X7UCbPy0G+YQK OQByYy3plNkp+ZtSnUcG7FDYp37/H1XHTX86xwWwnVqdnCwvDBaGRUymk9YjXTzCHKDN gt1YcmQC5Ps80TfrivQ1n8AJ3pGAlD4ZwG8S5YckTrQHBEuWS4XmvQENSupB/gwcvh47 3dJU+20GXpfQl8eykTZ6EFKtyX5LyCAFdNXlBiMjmjGANkn8w+i6Z31sY7RiidhttCMI Se2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si5283960ejt.198.2021.02.26.01.35.50; Fri, 26 Feb 2021 01:36:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230225AbhBZJeo (ORCPT + 99 others); Fri, 26 Feb 2021 04:34:44 -0500 Received: from mail-io1-f69.google.com ([209.85.166.69]:34874 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbhBZJd4 (ORCPT ); Fri, 26 Feb 2021 04:33:56 -0500 Received: by mail-io1-f69.google.com with SMTP id a1so6714208ios.2 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=dlb1lwsalz7u0pkEHGkHYx42iCf1s/MHXugf2vugnGbyArBVJroeKjaSO7swjSRTZ/ hvgtXR7NIFGJRei12cZZ4lUCSL1L5OV767rnEWLag3DDsHh4M9rKryK6BUxlFLFpGLxo 4DcNGYw2DmEYyxssowbdiTW9KF/ex41A7sWmeIhvuYPpVxvLTz729zcMWzNd2J08NbUW riYyJoERGVfDicDdsMTR9KZ20Gf2i1ljEJmMd6R5QEqjPIWLpFpYoE5kjX3YVNbw1ya9 xY9ki62pSlXKvk+5NKd4gh17qZZxEkA6iYjc4lnjDr2bNTH273RqSlvngqw9STfxu652 0oOg== X-Gm-Message-State: AOAM531BhYSKUqb6tMtzLR+PNVn3gjXv1h9SICumDVVM9oQyJQMWRlB1 8OAvfpyMqiOwYul9EUhaHa7zHAcKQzQ8pzqi6KuHl/sN+6O+ 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: linux-kernel@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.