Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp133382iob; Tue, 17 May 2022 21:21:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq3aK8W+iJnsLrtxEp/BxftMhzPzKCG1Wh3zjScBsKTiLr70my2VxbyDDW/Iy877GymoVI X-Received: by 2002:a05:6a00:a1e:b0:50d:bb0c:2e27 with SMTP id p30-20020a056a000a1e00b0050dbb0c2e27mr25704381pfh.49.1652847712352; Tue, 17 May 2022 21:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652847712; cv=none; d=google.com; s=arc-20160816; b=qyyAnVAWpw7WiLZ1iEofYO98keX2KAu0tHVcicjq8zxkpKd6DnSyB/N7LcneErnYsy 6ezKaINQqEHvZYdU2sz4fo9PLQSD+OAThcN2ADdUV53T7KhDEdEPdoryL/Cc0Yoe+bdt VuQMKhWl2eg3UknwMYuEWviFl5TQ58682/bf+xlaLX38BqT3+MtlA5X1QA9iI30LeZFF 9M0G1Nep7w3puwW5v2PZ7xxzG1HXuUU/lYpxe/sDGIBPNREuTseLFbnzK06BBlXl1n82 whV35E/yLBsVidb72EtI3i7UcHqlIcQV9/ovr/Qg2+0rBHzsWPIRmFcrZt70QGS0qCOi BoLg== 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:in-reply-to:date :mime-version; bh=eFDTuSie96x9bOH1fl5bJ6quL4k/UvgjH4eylB8bN6w=; b=tb8DqA9MaJncVCdOdzgNh1ukGrov4reaEPmnKaFO70mCvZZ5goE5U7S3V3mrhy1lHI bC9z9sQ7sy2BdJKzhhFqiacFcEN+522ANYOpXRFlb8wc8NJPGeGHMLW1/NJzKOrMGYoW Viu1BJFYm47lTmt8RAV3bHIUE1SqCSh7GA3G/X7loM0vo0+tpk4PgK4Izj9jV0xukYtt 92i23SZ+rsuMXG/XkkoxwBZOgr0zwlLwrGY1v+lSfvl/UIpvGFkYQ+p/J0T5HlDBdqyH muVn1xl9AO0ntftww3ws29tAppl75cvC3EOc4xnoRDYbnA0aGzgEqo+9YBwPNAExgvdK Q0aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e18-20020a63d952000000b003ab41b3da66si1062874pgj.825.2022.05.17.21.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:21:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 31B53248C1; Tue, 17 May 2022 20:47:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243697AbiEQSoQ (ORCPT + 99 others); Tue, 17 May 2022 14:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352333AbiEQSoM (ORCPT ); Tue, 17 May 2022 14:44:12 -0400 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 412D728E04 for ; Tue, 17 May 2022 11:44:11 -0700 (PDT) Received: by mail-il1-f197.google.com with SMTP id e3-20020a056e020b2300b002d10200d90fso5148098ilu.2 for ; Tue, 17 May 2022 11:44:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=eFDTuSie96x9bOH1fl5bJ6quL4k/UvgjH4eylB8bN6w=; b=iasINs6jdhKnxedFydbFJOsZqEpT7KhgHJJyYu4zZZof460kw8hc9DS3rLasiCk+Ls XnsWxEeRVgIjq3PfwSH7uf6TFb7fM++NW6xXfYpkYM7k0l0l4SxbyZ/Bz61kwFz0hwGb BgghbK9NyBokbK2G2RBEE0lERiJXDYee047M3ViINS5ZJNXX0Af/1FKixsz6J/9fJdOq 1KBnrrvMPy0JFEHhYtUU1op/+t2kdDA7gKhjKeZtBpwcOpCugO56Ntt1fNhmRC5sJAgW MLmxQT3yUMhkH2zeYOp6llqvNPLY2mM+iTgelQMddPR1Q7uLAQslpoh0AMmbIfzUs5Zj Yx9g== X-Gm-Message-State: AOAM533wTuk5Mf0IgW3q/wf73FTLDOkkSicxzhGB4EWmNMLQqDlZCNRU +z+egUkMPX/4BiK61JXmvJuADrurTdsfT9HM/hhyE1T2KJwz MIME-Version: 1.0 X-Received: by 2002:a05:6638:2393:b0:32e:319d:c7cc with SMTP id q19-20020a056638239300b0032e319dc7ccmr6263550jat.103.1652813050526; Tue, 17 May 2022 11:44:10 -0700 (PDT) Date: Tue, 17 May 2022 11:44:10 -0700 In-Reply-To: <8cf1ef4e-03b6-4da2-530f-65058c57a9d1@kernel.dk> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c1bd6505df39865e@google.com> Subject: Re: [syzbot] BUG: unable to handle kernel NULL pointer dereference in io_do_iopoll 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" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: BUG: unable to handle kernel NULL pointer dereference in io_do_iopoll BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 0 P4D 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4077 Comm: syz-executor.0 Not tainted 5.18.0-rc2-syzkaller-00022-ga67f2fc1f9b5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 0018:ffffc900056478d8 EFLAGS: 00010246 RAX: ffffffff89dad020 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: 0000000000000003 RSI: ffffc90005647950 RDI: ffff88807f0668c0 RBP: ffff88807f066901 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff81ec0c20 R11: 0000000000000000 R12: 0000000000000003 R13: ffffc90005647950 R14: ffff88807f0668c0 R15: ffff88807f066938 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 000000000ba8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: io_do_iopoll+0x262/0x1080 fs/io_uring.c:2776 io_iopoll_try_reap_events+0xba/0x158 fs/io_uring.c:2829 io_ring_ctx_wait_and_kill+0x1d9/0x327 fs/io_uring.c:10170 io_uring_release+0x42/0x46 fs/io_uring.c:10187 __fput+0x277/0x9d0 fs/file_table.c:317 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:37 [inline] do_exit+0xaff/0x2a00 kernel/exit.c:795 do_group_exit+0xd2/0x2f0 kernel/exit.c:925 get_signal+0x22df/0x24c0 kernel/signal.c:2864 arch_do_signal_or_restart+0x82/0x20f0 arch/x86/kernel/signal.c:867 exit_to_user_mode_loop kernel/entry/common.c:166 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fe34b8890e9 Code: Unable to access opcode bytes at RIP 0x7fe34b8890bf. RSP: 002b:00007fe34c997218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007fe34b99bf68 RCX: 00007fe34b8890e9 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007fe34b99bf6c RBP: 00007fe34b99bf60 R08: 00007fff26bf1080 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 00007fe34b99bf6c R13: 00007fff26becbef R14: 00007fe34c997300 R15: 0000000000022000 Modules linked in: CR2: 0000000000000000 ---[ end trace 0000000000000000 ]--- RIP: 0010:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 0018:ffffc900056478d8 EFLAGS: 00010246 RAX: ffffffff89dad020 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: 0000000000000003 RSI: ffffc90005647950 RDI: ffff88807f0668c0 RBP: ffff88807f066901 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff81ec0c20 R11: 0000000000000000 R12: 0000000000000003 R13: ffffc90005647950 R14: ffff88807f0668c0 R15: ffff88807f066938 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 000000000ba8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Tested on: commit: a67f2fc1 io_uring: don't attempt to IOPOLL for MSG_RIN.. git tree: git://git.kernel.dk/linux-block io_uring-5.18 console output: https://syzkaller.appspot.com/x/log.txt?x=13167865f00000 kernel config: https://syzkaller.appspot.com/x/.config?x=e408a5da421f07d4 dashboard link: https://syzkaller.appspot.com/bug?extid=1a0a53300ce782f8b3ad compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 Note: no patches were applied.