From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6ED92798F8 for ; Tue, 24 Feb 2026 18:24:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771957469; cv=none; b=TVqvnEqBmcb+7WX6SbHsWoXh3u2xfU5VAwoEJxKi5YbOT3IrapL/Od6YGTlhqS8njDL5qM40r97j4HGNNm9/NtvY/RM18kK7/ov2ebuK1RtDZ5beujDcpsnafgWsbxYADUHuPSu51xEqopRyIhzhnBiKOi/ek5lmRmkCw/7Irao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771957469; c=relaxed/simple; bh=BtfWSz1MFb3akKVK21ZPFRTbcXzQ3RYQyE0GXoIkuiM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=E8/JjoVkIcuXfvKe9ByAxVR0sXdt1UwyzoAd5anEOZ8mHNMhNwbz6WKhdia6yLGD7oii4vwX2uv9fyTrsmRTuWroDCGFi4EqXHKCNsQRjR91UHjK4RSz27hz72sO27saluurniz1J9I6UiYfVodWYwlN8m9310GpWBXHnzWLD7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H+SG8jGT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H+SG8jGT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5BDCC116D0; Tue, 24 Feb 2026 18:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771957469; bh=BtfWSz1MFb3akKVK21ZPFRTbcXzQ3RYQyE0GXoIkuiM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=H+SG8jGT0OaI4k5iJmZucWZEmz8+noT5zIY8X6/FdHJihhodMrCpZIWcI+MWGoTaV d9iOAvX/BLdFrlxqem3OIGvWj/rMuJ/SMXOr0XSiwDbdlA9cvrFIgyOhzFfQKhYzXd YwK0v+VMDqyvhkvaFh790AN0FoHJa2cRY3ujAhFcMrZKlAOPbDMuhanQnRm+6hnSz8 MEli4ZXjHg94n/v1IT3lClNqn/za0Azd4znsUtFe2UsOJtHSrxldWFop8pMuV15jZ1 d/WvR7rYskihET1ZUVf6L5CZRhqoKxC+8cl/Qeg8eudJ2g9/7FdZLXkx1VWcMfpRup bQnuZ5ocBQVuA== From: Thomas Gleixner To: syzbot , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Cc: Ian Abbott , Greg Kroah-Hartman Subject: Re: [syzbot] [kernel?] WARNING in request_threaded_irq In-Reply-To: <69985dfb.a70a0220.2c38d7.013f.GAE@google.com> References: <69985dfb.a70a0220.2c38d7.013f.GAE@google.com> Date: Tue, 24 Feb 2026 19:24:26 +0100 Message-ID: <87seaqt2xx.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, Feb 20 2026 at 05:13, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 18be4ca5cb4e riscv: lib: optimize strlen loop efficiency > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git for-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1166f6e6580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=781a4eb07921464d > dashboard link: https://syzkaller.appspot.com/bug?extid=1f1c9d0fa117b165b233 > compiler: riscv64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 > userspace arch: riscv64 > > Unfortunately, I don't have any reproducer for this issue yet. > > Downloadable assets: > disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/a741b348759c/non_bootable_disk-18be4ca5.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/c6b87a8d77c4/vmlinux-18be4ca5.xz > kernel image: https://storage.googleapis.com/syzbot-assets/d5126373321c/Image-18be4ca5.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+1f1c9d0fa117b165b233@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > WARNING: [irq_settings_is_per_cpu_devid(desc)] kernel/irq/manage.c:2125 at request_threaded_irq+0x320/0x38c kernel/irq/manage.c:2125, CPU#1: syz.0.10/3870 > Modules linked in: > CPU: 1 UID: 0 PID: 3870 Comm: syz.0.10 Not tainted syzkaller #0 PREEMPT > Hardware name: riscv-virtio,qemu (DT) > epc : request_threaded_irq+0x320/0x38c kernel/irq/manage.c:2125 > ra : request_threaded_irq+0x320/0x38c kernel/irq/manage.c:2125 > epc : ffffffff8032d750 ra : ffffffff8032d750 sp : ffff8f800ac67810 > gp : ffffffff89f9df20 tp : ffffaf801c74cf80 t0 : ffffffff86391c0a > t1 : ffffffff9136c6e0 t2 : ffffffff8016a132 s0 : ffff8f800ac67870 > s1 : 0000000000000000 a0 : 0000000000000005 a1 : 0000000000000000 > a2 : 0000000000080000 a3 : ffffffff8032d750 a4 : ffff8f8004d6e1e8 > a5 : 00000000002041e8 a6 : 0000000000000003 a7 : ffffffff86660460 > s2 : 0000000000200000 s3 : ffffaf8011e8d000 s4 : 0000000000000005 > s5 : ffffffff84b56ef4 s6 : ffffaf801cd37000 s7 : 0000000000000000 > s8 : ffffffff87597e60 s9 : 0000000000020000 s10: ffffaf801cd37000 > s11: 0000000000000001 t3 : 0000000000000001 t4 : 0000000000001fff > t5 : 00000000000000c8 t6 : 0000000000000002 ssp : 0000000000000000 > status: 0000000200000120 badaddr: ffffffff8032d750 cause: 0000000000000003 > [] request_threaded_irq+0x320/0x38c kernel/irq/manage.c:2125 > [] request_irq include/linux/interrupt.h:176 [inline] > [] parport_attach drivers/comedi/drivers/comedi_parport.c:235 [inline] > [] parport_attach+0x780/0xb14 drivers/comedi/drivers/comedi_parport.c:224 > [] comedi_device_attach+0x350/0x7ec drivers/comedi/drivers.c:1069 > [] do_devconfig_ioctl+0x1a2/0x654 drivers/comedi/comedi_fops.c:928 So do_devconfig_ioctl() copies the device configuration from user space and hands it to the comedi parport driver, which takes the random provided interrupt number unvalidated and requests the interrupt which trips the warning in the core code as the interrupt is marked as per CPU. > [] comedi_unlocked_ioctl+0x338/0x2c10 drivers/comedi/comedi_fops.c:2240 > [] vfs_ioctl fs/ioctl.c:51 [inline] > [] __do_sys_ioctl fs/ioctl.c:597 [inline] > [] __se_sys_ioctl fs/ioctl.c:583 [inline] > [] __riscv_sys_ioctl+0x17c/0x1e4 fs/ioctl.c:583 > [] syscall_handler+0x92/0x114 arch/riscv/include/asm/syscall.h:112 > [] do_trap_ecall_u+0x3d2/0x58c arch/riscv/kernel/traps.c:344 > [] handle_exception+0x15e/0x16a arch/riscv/kernel/entry.S:232 > > > --- > 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. > > If the report is already addressed, let syzbot know by replying with: > #syz fix: exact-commit-title > > If you want to overwrite report's subsystems, reply with: > #syz set subsystems: new-subsystem > (See the list of subsystem names on the web dashboard) > > If the report is a duplicate of another one, reply with: > #syz dup: exact-subject-of-another-report > > If you want to undo deduplication, reply with: > #syz undup