syzbot


general protection fault in path_init (3)

Status: moderation: reported on 2025/01/30 13:09
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+8ab946a62f8db94526f7@syzkaller.appspotmail.com
First crash: 9d17h, last: 17h22m
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in path_init (2) fs 1 714d 710d 0/28 auto-obsoleted due to no activity on 2023/05/22 23:32
upstream general protection fault in path_init fs 1 1248d 1236d 0/28 auto-closed as invalid on 2022/01/03 09:55
upstream KMSAN: uninit-value in path_init 7 967d 967d 0/28 closed as invalid on 2022/06/14 13:16

Sample crash report:
db_root: cannot open: 
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000a: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057]
CPU: 1 UID: 0 PID: 5829 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-00020-g0de63bb7d919 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__lock_acquire+0xe4/0x3c40 kernel/locking/lockdep.c:5091
Code: 08 84 d2 0f 85 15 14 00 00 44 8b 0d 2a 2c ca 0e 45 85 c9 0f 84 b4 0e 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 96 2c 00 00 49 8b 04 24 48 3d a0 27 79 93 0f 84
RSP: 0018:ffffc90003df6f80 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000002
RDX: 000000000000000a RSI: 1ffff920007bee02 RDI: 0000000000000050
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff905fd817 R11: 0000000000000005 R12: 0000000000000050
R13: ffff88807bee5a00 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055557f7c74a8 CR3: 0000000025152000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851
 seqcount_lockdep_reader_access include/linux/seqlock.h:72 [inline]
 path_init+0x14a5/0x1ab0 fs/namei.c:2556
 path_openat+0x192/0x2d80 fs/namei.c:3984
 do_filp_open+0x20c/0x470 fs/namei.c:4016
 file_open_name+0x2a4/0x450 fs/open.c:1372
 filp_open+0x4b/0x80 fs/open.c:1392
 target_core_item_dbroot_store+0x10d/0x2e0 drivers/target/target_core_configfs.c:134
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x2f6/0x4b0 fs/configfs/file.c:229
 __kernel_write_iter+0x318/0xa90 fs/read_write.c:612
 __kernel_write+0xf6/0x140 fs/read_write.c:632
 do_acct_process+0xd11/0x1530 kernel/acct.c:539
 acct_pin_kill+0x2d/0x100 kernel/acct.c:192
 pin_kill+0x194/0x7c0 fs/fs_pin.c:44
 mnt_pin_kill+0x61/0x1e0 fs/fs_pin.c:81
 cleanup_mnt+0x3ac/0x450 fs/namespace.c:1406
 task_work_run+0x14e/0x250 kernel/task_work.c:227
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0xad8/0x2d70 kernel/exit.c:938
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
 get_signal+0x2576/0x2610 kernel/signal.c:3036
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa93658b7bc
Code: Unable to access opcode bytes at 0x7fa93658b792.
RSP: 002b:00007ffe6c1104d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: fffffffffffffe00 RBX: 00000000ffffffff RCX: 00007fa93658b7bc
RDX: 0000000000000030 RSI: 00007ffe6c110590 RDI: 00000000000000f9
RBP: 00007ffe6c11053c R08: 0000000000000000 R09: 0079746972756365
R10: 00007fa9367797e0 R11: 0000000000000246 R12: 0000000000000125
R13: 0000555561069590 R14: 000000000005fa6a R15: 00007ffe6c110590
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0xe4/0x3c40 kernel/locking/lockdep.c:5091
Code: 08 84 d2 0f 85 15 14 00 00 44 8b 0d 2a 2c ca 0e 45 85 c9 0f 84 b4 0e 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 96 2c 00 00 49 8b 04 24 48 3d a0 27 79 93 0f 84
RSP: 0018:ffffc90003df6f80 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000002
RDX: 000000000000000a RSI: 1ffff920007bee02 RDI: 0000000000000050
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff905fd817 R11: 0000000000000005 R12: 0000000000000050
R13: ffff88807bee5a00 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055557f7c74a8 CR3: 0000000025152000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	08 84 d2 0f 85 15 14 	or     %al,0x1415850f(%rdx,%rdx,8)
   7:	00 00                	add    %al,(%rax)
   9:	44 8b 0d 2a 2c ca 0e 	mov    0xeca2c2a(%rip),%r9d        # 0xeca2c3a
  10:	45 85 c9             	test   %r9d,%r9d
  13:	0f 84 b4 0e 00 00    	je     0xecd
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	4c 89 e2             	mov    %r12,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 96 2c 00 00    	jne    0x2cca
  34:	49 8b 04 24          	mov    (%r12),%rax
  38:	48 3d a0 27 79 93    	cmp    $0xffffffff937927a0,%rax
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/04 13:25 upstream 0de63bb7d919 8f267cef .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in path_init
2025/02/03 02:22 upstream 69e858e0b8b2 568559e4 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in path_init
2025/02/02 09:46 upstream 69e858e0b8b2 568559e4 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in path_init
2025/02/01 09:36 upstream 69e858e0b8b2 aa47157c .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in path_init
2025/01/30 17:07 upstream 72deda0abee6 e961d16c .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in path_init
2025/01/30 02:17 upstream 805ba04cb7cc afe4eff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in path_init
2025/01/30 02:16 upstream 805ba04cb7cc afe4eff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in path_init
2025/01/26 13:02 upstream aa22f4da2a46 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in path_init
* Struck through repros no longer work on HEAD.