From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796207259; b=M86rV4+14ykHQZ6RBZsYR32C8Z7odQ68KyEFq3aGgoKTBNU2srgvZ+7ZN50792x4TYLX ww9Fb9uYSLJoybdkjrOT17USSP5noQAww74DhlWCvC34yM8J7P+WpyXnjwplmU2MtAQos pLf+JurV6NfY+L+EKWoKOmVq5e4xIk/BVN38j/khoex4ghI/BoyoPFR8cvKrruHsOie/Z GaL8gxZFyzjqv6hApQoKnk0yuwge18n5CUOYLZ2hFTq0zltCguZEvQ0RVtNyhfrSxWbts EGPlFD6emhudYfIV63vTAd7v5bWI0uPK2hBXdapxtJchmeuRaGRTmls6904bgmzYg6A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207259; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:MIME-Version:X-Received:Date: X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID: Subject:From:To:Content-Type; bh=hjdshsLag4PHpRoGShClUmO4rjcD2iOS25+RL8X1VsA=; b=1Z26KWcCeOptxgIatxliehM4LhflOj7fa9BmPt8Z35w410BmuQxNZ+aetvorX1mDZ1B1 7J7VxIFhqCdsk+1Pv9iCUJfSFGHZEcRQBqlV5qdgm7sgMifDJN43TRAmSfbEZXDiJYUlD QFHZRWz6mUR7ErQPoR8GrzDMs1Kg7faDzawhGb5/SzAIZj9iEVN4/peuBezFhWG36H/MG puFX7sZk1fV5WnQctxKHAOPZ4Vfib3wxLYuxN1XWAwBfQyjGM4l98EtvoSPAKMuOREC4R Zhg16SpWgi25LEXiqX3JDcQKSVfHa4Gq1RK5WztURUiqV4NHvU9mYTZH4oqVKifBneQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.remote-ip=209.85.210.72 Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFCFC606A322 for ; Wed, 2 Dec 2026 10:27:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BFCFC606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-ot1-f72.google.com with SMTP id 46e09a7af769-862adf80a1eso13180156a34.2 for ; Wed, 02 Dec 2026 02:27:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796207258; x=1796812058; h=content-type:to:from:subject:message-id:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hjdshsLag4PHpRoGShClUmO4rjcD2iOS25+RL8X1VsA=; b=Nma+droHoYKUDSn2EJsYiYrSsilvrFch8QGKpqwrbeXqxNvH5NrLypHhMo+VYTRCbB eUgJxuerhEx0wvX8/PBQwksf5E5DUqCDg1BUeydxefWxCNHCUUN7udp9ZH0lEg0eOzaL 1LTd8cLRdLgo3CXuu+FIaqkTKTwFOzLc1E4giJyvVZKTwlmkkwUBnqGcc89ZOFaR+t+3 9G20+GmI10moM4x/Yu9S+4xtC+s1m3kUu6MKOPpP6/MyOHBnz6xKwMGozd/u7tSvbWHR r4Jl+sMBqzAlgzs89apM1DLahSqGlkEihKYA9OhtCQMv3//BgdFcZMmrwc1ZqehxhOmx OWbQ== X-Forwarded-Encrypted: i=1; AL+hErG6tloTRLOnl6gzi8Mu8aDmjFYYO47h4zOgdRpsge7qxa2LfJpu7eO86dMHtsHgV/Oiidpl8BKX2rvIeeY=@vger.kernel.org X-Gm-Message-State: APuU4Z+VlECS5vgkhca/JoE5b5jiqufqITEK/YmgwsQzKtEjHQvhNymf 2Ww3iuVimQnn0eogrkIV9IyX+udCmqq0s3tAQDEyLnmP6nEiEXfR9KDoqV6CCded1y9bByydrU0 /5d6+Tj2CPPsIWPWRYRiRK+1sUvsUsO8+Vv5p/huOkCfQc4edHnxH91WJ1Zc= X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Received: by 2002:a05:6809:6c1:10b0:524:867f:641e with SMTP id 5614622812f47-57b87f7f64cmr26017569b6e.13.1796207257850; Wed, 02 Dec 2026 02:27:37 -0800 (PST) Date: Wed, 02 Dec 2026 02:27:37 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6b0ff299.8744ccba.1c9cf9.0050.GAE@google.com> Subject: [syzbot] [comedi?] WARNING in request_threaded_irq (2) From: syzbot To: abbotti@mev.co.uk, ds@schleef.org, gregkh@suse.de, hsweeten@visionengravers.com, linux-kernel@vger.kernel.org, radu@rendec.net, syzkaller-bugs@googlegroups.com, tglx@kernel.org Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 2359fc3f3501 riscv: Fix memory leak in apply_relocate_add 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=149df07e580000 kernel config: https://syzkaller.appspot.com/x/.config?x=1c926bcddce39a2f dashboard link: https://syzkaller.appspot.com/bug?extid=516526e174b85b412d92 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-2359fc3f.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/bbfc6e81fd5a/vmlinux-2359fc3f.xz kernel image: https://storage.googleapis.com/syzbot-assets/1b578743b797/Image-2359fc3f.xz The issue was bisected by AI to: commit 241ab6ad7108e51c67881f7881c5e46f0400cdb1 Author: David Schleef Date: Fri Nov 14 23:03:44 2008 +0000 Staging: comedi: add comedi_parport driver reasoning: https://syzkaller.appspot.com/ai_job?id=9b82251c-c2b7-4404-9154-81f7974b9cb9 AI-generated root cause summary: When configuring a comedi_parport device via the COMEDI_DEVCONFIG ioctl (do_devconfig_ioctl()), parport_attach() in drivers/comedi/drivers/comedi_parport.c accepts a user-supplied IRQ number it->options[1] in the range 1-15 and passes it directly to request_irq() without verifying irq_is_percpu_devid() or platform ISA support. Because CONFIG_COMEDI_PARPORT only depends on HAS_IOPORT rather than ISA, it can be enabled on non-ISA architectures such as RISC-V where virtual IRQ numbers 1-15 may be allocated to per-CPU interrupts (e.g., via riscv_intc_domain_map() calling irq_set_percpu_devid()). Calling request_irq() on an IRQ with IRQ_PER_CPU_DEVID set triggers WARN_ON(irq_settings_is_per_cpu_devid(desc)) in request_threaded_irq() (kernel/irq/manage.c:2172) and returns -EINVAL. full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=516526e174b85b412d92 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+516526e174b85b412d92@syzkaller.appspotmail.com The bisection result may be wrong. If you agree with it, please also add: Fixes: 241ab6ad7108 ("Staging: comedi: add comedi_parport driver") ------------[ cut here ]------------ WARNING: [irq_settings_is_per_cpu_devid(desc)] kernel/irq/manage.c:2172 at request_threaded_irq+0x320/0x38c kernel/irq/manage.c:2172, CPU#1: syz.0.37/4251 Modules linked in: CPU: 1 UID: 0 PID: 4251 Comm: syz.0.37 Not tainted syzkaller #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) epc : request_threaded_irq+0x320/0x38c kernel/irq/manage.c:2172 ra : request_threaded_irq+0x320/0x38c kernel/irq/manage.c:2172 epc : ffffffff8034d790 ra : ffffffff8034d790 sp : ffff8f8008ed77e0 gp : ffffffff8b34ec40 tp : ffffaf8014295040 t0 : ffffffff8007c360 t1 : ffffffff86c6b4d0 t2 : ffffffff8017df70 s0 : ffff8f8008ed7840 s1 : 0000000000000000 a0 : 0000000000000005 a1 : 0000000000000000 a2 : 0000000000080000 a3 : ffffffff8034d790 a4 : ffff8f8004644178 a5 : 000000000002b178 a6 : 0000000000000003 a7 : 0000000000001fff s2 : 0000000000200000 s3 : ffffaf8012d18800 s4 : 0000000000000004 s5 : ffffffff84f6940a s6 : ffffaf801dec9000 s7 : 0000000000000000 s8 : ffffffff87c6ede0 s9 : 0000000000020000 s10: ffffaf801dec9000 s11: 0000000000000001 t3 : 00000000000000c8 t4 : ffffffff92592a60 t5 : 0000000000000001 t6 : 0000000000000002 ssp : 0000000000000000 status: 0000000200000120 badaddr: ffffffff8034d790 cause: 0000000000000003 [] request_threaded_irq+0x320/0x38c kernel/irq/manage.c:2172 [] request_irq include/linux/interrupt.h:178 [inline] [] parport_attach drivers/comedi/drivers/comedi_parport.c:248 [inline] [] parport_attach+0x6be/0x906 drivers/comedi/drivers/comedi_parport.c:231 [] comedi_device_attach+0x380/0x828 drivers/comedi/drivers.c:1101 [] do_devconfig_ioctl+0x1a2/0x652 drivers/comedi/comedi_fops.c:931 [] comedi_unlocked_ioctl+0x752/0x30e0 drivers/comedi/comedi_fops.c:2302 [] vfs_ioctl fs/ioctl.c:52 [inline] [] __do_sys_ioctl fs/ioctl.c:598 [inline] [] __se_sys_ioctl fs/ioctl.c:584 [inline] [] __riscv_sys_ioctl+0x17c/0x1e2 fs/ioctl.c:584 [] syscall_handler+0x92/0x114 arch/riscv/include/asm/syscall.h:112 [] do_trap_ecall_u+0x4ca/0x658 arch/riscv/kernel/traps.c:341 [] handle_exception+0x168/0x174 arch/riscv/kernel/entry.S:237 --- 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. For information about bisection process see: https://goo.gl/tpsmEJ#ai-bisection 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