syzbot


BUG: unable to handle kernel paging request in kernfs_remove_by_name_ns

Status: upstream: reported on 2025/08/04 08:38
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+4faa3fd832279bd35a81@syzkaller.appspotmail.com
First crash: 54d, last: 4d01h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernfs?] BUG: unable to handle kernel paging request in kernfs_remove_by_name_ns 0 (1) 2025/08/04 08:38
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 KASAN: global-out-of-bounds Read in kernfs_remove_by_name_ns 17 2 9d04h 32d 0/2 upstream: reported on 2025/07/27 16:29

Sample crash report:
comedi comedi3: c6xdigio: I/O port conflict (0x4f29,3)
BUG: unable to handle page fault for address: ffffffff9da43280
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD e385067 P4D e385067 PUD e386063 PMD 0 
Oops: Oops: 0000 [#1] SMP KASAN NOPTI
CPU: 2 UID: 0 PID: 17102 Comm: syz.6.3204 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:227 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:239 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:__lock_acquire+0x47f/0x1ce0 kernel/locking/lockdep.c:5207
Code: 90 e8 f5 a1 48 03 0f b6 54 24 18 85 c0 74 0e 8b 05 96 d7 13 0f 85 c0 0f 84 df 05 00 00 90 31 c9 e9 7f fe ff ff 48 63 44 24 10 <48> 0f a3 05 89 8f 45 14 0f 82 79 ff ff ff 90 e8 bd a1 48 03 85 c0
RSP: 0018:ffffc90003cbf770 EFLAGS: 00010046
RAX: 000000003e37e913 RBX: ffff88802b4c2f30 RCX: 0000000000000008
RDX: 0000000000000000 RSI: ffff88802b4c2fa8 RDI: ffff88802b4c2440
RBP: 0000000000000000 R08: ffffffff95ebbec0 R09: 000000000000004d
R10: 0000000000000010 R11: 0000000000000005 R12: ffff88802b4c2fa8
R13: ffff88802b4c2440 R14: 0000000000000003 R15: 0000000000000003
FS:  00007fcfd01c66c0(0000) GS:ffff8880d68b9000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff9da43280 CR3: 0000000046aca000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 lock_acquire kernel/locking/lockdep.c:5868 [inline]
 lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825
 down_write+0x92/0x200 kernel/locking/rwsem.c:1590
 kernfs_remove_by_name_ns+0x3d/0x110 fs/kernfs/dir.c:1712
 sysfs_remove_file include/linux/sysfs.h:777 [inline]
 driver_remove_file drivers/base/driver.c:201 [inline]
 driver_remove_file+0x4a/0x60 drivers/base/driver.c:197
 remove_bind_files drivers/base/bus.c:605 [inline]
 bus_remove_driver+0x224/0x2c0 drivers/base/bus.c:743
 driver_unregister+0x76/0xb0 drivers/base/driver.c:277
 comedi_device_detach_locked+0x12c/0xa50 drivers/comedi/drivers.c:207
 comedi_device_detach+0x67/0xb0 drivers/comedi/drivers.c:215
 comedi_device_attach+0x43d/0x900 drivers/comedi/drivers.c:1011
 do_devconfig_ioctl+0x1b1/0x710 drivers/comedi/comedi_fops.c:872
 comedi_unlocked_ioctl+0x165d/0x2f00 drivers/comedi/comedi_fops.c:2178
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:598 [inline]
 __se_sys_ioctl fs/ioctl.c:584 [inline]
 __x64_sys_ioctl+0x18b/0x210 fs/ioctl.c:584
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcfcf38ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcfd01c6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fcfcf5b5fa0 RCX: 00007fcfcf38ebe9
RDX: 0000200000000280 RSI: 0000000040946400 RDI: 0000000000000003
RBP: 00007fcfcf411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcfcf5b6038 R14: 00007fcfcf5b5fa0 R15: 00007ffcc29b1138
 </TASK>
Modules linked in:
CR2: ffffffff9da43280
---[ end trace 0000000000000000 ]---
RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:227 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:239 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:__lock_acquire+0x47f/0x1ce0 kernel/locking/lockdep.c:5207
Code: 90 e8 f5 a1 48 03 0f b6 54 24 18 85 c0 74 0e 8b 05 96 d7 13 0f 85 c0 0f 84 df 05 00 00 90 31 c9 e9 7f fe ff ff 48 63 44 24 10 <48> 0f a3 05 89 8f 45 14 0f 82 79 ff ff ff 90 e8 bd a1 48 03 85 c0
RSP: 0018:ffffc90003cbf770 EFLAGS: 00010046
RAX: 000000003e37e913 RBX: ffff88802b4c2f30 RCX: 0000000000000008
RDX: 0000000000000000 RSI: ffff88802b4c2fa8 RDI: ffff88802b4c2440
RBP: 0000000000000000 R08: ffffffff95ebbec0 R09: 000000000000004d
R10: 0000000000000010 R11: 0000000000000005 R12: ffff88802b4c2fa8
R13: ffff88802b4c2440 R14: 0000000000000003 R15: 0000000000000003
FS:  00007fcfd01c66c0(0000) GS:ffff8880d68b9000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff9da43280 CR3: 0000000046aca000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
   0:	90                   	nop
   1:	e8 f5 a1 48 03       	call   0x348a1fb
   6:	0f b6 54 24 18       	movzbl 0x18(%rsp),%edx
   b:	85 c0                	test   %eax,%eax
   d:	74 0e                	je     0x1d
   f:	8b 05 96 d7 13 0f    	mov    0xf13d796(%rip),%eax        # 0xf13d7ab
  15:	85 c0                	test   %eax,%eax
  17:	0f 84 df 05 00 00    	je     0x5fc
  1d:	90                   	nop
  1e:	31 c9                	xor    %ecx,%ecx
  20:	e9 7f fe ff ff       	jmp    0xfffffea4
  25:	48 63 44 24 10       	movslq 0x10(%rsp),%rax
* 2a:	48 0f a3 05 89 8f 45 	bt     %rax,0x14458f89(%rip)        # 0x14458fbb <-- trapping instruction
  31:	14
  32:	0f 82 79 ff ff ff    	jb     0xffffffb1
  38:	90                   	nop
  39:	e8 bd a1 48 03       	call   0x348a1fb
  3e:	85 c0                	test   %eax,%eax

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/25 02:22 upstream 69fd6b99b8f8 bf27483f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in kernfs_remove_by_name_ns
2025/08/17 03:06 upstream 90d970cade8e 1804e95e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in kernfs_remove_by_name_ns
2025/07/26 05:34 upstream 5f33ebd2018c fb8f743d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in kernfs_remove_by_name_ns
2025/08/20 06:07 upstream b19a97d57c15 79512909 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: unable to handle kernel paging request in kernfs_remove_by_name_ns
2025/07/05 10:31 linux-next 26ffb3d6f02c 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: unable to handle kernel paging request in kernfs_remove_by_name_ns
2025/07/24 10:04 upstream 01a412d06bc5 0c1d6ded .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in kernfs_remove_by_name_ns
2025/07/17 08:38 upstream e2291551827f 44f8051e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in kernfs_remove_by_name_ns
2025/08/17 03:30 linux-next 931e46dcbc7e 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: null-ptr-deref Write in kernfs_remove_by_name_ns
2025/08/13 21:04 linux-next 2674d1eadaa2 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in kernfs_remove_by_name_ns
2025/08/10 06:44 linux-next b1549501188c 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in kernfs_remove_by_name_ns
2025/08/05 09:14 linux-next afec768a6a8f abdcb213 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in kernfs_remove_by_name_ns
2025/08/04 08:37 linux-next 5c5a10f0be96 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in kernfs_remove_by_name_ns
* Struck through repros no longer work on HEAD.