syzbot


INFO: trying to register non-static key in nilfs_bmap_lookup_at_level

Status: upstream: reported C repro on 2022/10/01 19:05
Reported-by: syzbot+f9b3c4018f2c63cf0976@syzkaller.appspotmail.com
First crash: 565d, last: 414d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level nilfs2 C error 69 434d 569d 0/1 upstream: reported C repro on 2022/09/27 22:38
upstream INFO: trying to register non-static key in nilfs_bmap_lookup_at_level nilfs C error 124 528d 567d 22/26 fixed on 2023/02/24 13:50
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/03/01 12:18 25m bisect fix linux-4.14.y job log (0) log
2023/01/28 10:31 41m bisect fix linux-4.14.y job log (0) log
2022/11/19 18:44 20m bisect fix linux-4.14.y job log (0) log

Sample crash report:
INFO: trying to register non-static key.
NILFS (loop0): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 7962 Comm: syz-executor428 Not tainted 4.14.295-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 register_lock_class+0x389/0x1180 kernel/locking/lockdep.c:768
 __lock_acquire+0x167/0x3f20 kernel/locking/lockdep.c:3378
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
 down_read+0x36/0x80 kernel/locking/rwsem.c:24
 nilfs_bmap_lookup_at_level+0x6b/0x380 fs/nilfs2/bmap.c:77
 nilfs_bmap_lookup fs/nilfs2/bmap.h:179 [inline]
 nilfs_mdt_submit_block.constprop.0+0x152/0x970 fs/nilfs2/mdt.c:151
 nilfs_mdt_read_block+0x7c/0x320 fs/nilfs2/mdt.c:184
 nilfs_mdt_get_block+0xc7/0xb90 fs/nilfs2/mdt.c:259
 nilfs_palloc_get_block+0xb2/0x250 fs/nilfs2/alloc.c:225
 nilfs_palloc_get_entry_block+0x17d/0x230 fs/nilfs2/alloc.c:327
 nilfs_ifile_get_inode_block+0xb4/0x150 fs/nilfs2/ifile.c:152
 __nilfs_read_inode fs/nilfs2/inode.c:492 [inline]
 nilfs_iget+0x1c2/0x810 fs/nilfs2/inode.c:601
 nilfs_get_root_dentry+0x24/0x1f0 fs/nilfs2/super.c:918
 nilfs_fill_super fs/nilfs2/super.c:1092 [inline]
 nilfs_mount+0x984/0xd00 fs/nilfs2/super.c:1331
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2572 [inline]
 do_mount+0xe65/0x2a30 fs/namespace.c:2905
 SYSC_mount fs/namespace.c:3121 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3098
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fb89763462a
RSP: 002b:00007fff914e44d8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fb89763462a
RDX: 00000000200000c0 RSI: 0000000020000100 RDI: 00007fff914e44f0
RBP: 00007fff914e44f0 R08: 00007fff914e4530 R09: 00005555569982c0
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00007fff914e4530 R14: 000000000000003a R15: 0000000020000770
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7962 Comm: syz-executor428 Not tainted 4.14.295-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
task: ffff888093378240 task.stack: ffff888096308000
RIP: 0010:nilfs_bmap_lookup_at_level+0xa5/0x380 fs/nilfs2/bmap.c:78
RSP: 0018:ffff88809630f750 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88808de10098 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 1ffff11012c61e93 RDI: ffff88808de10158
RBP: ffff88809630f818 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: ffff888093378240 R12: 0000000000000002
R13: 1ffff11012c61eeb R14: ffff88808de100d0 R15: 0000000000000001
FS:  0000555556998300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff914e5000 CR3: 00000000b3a12000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nilfs_bmap_lookup fs/nilfs2/bmap.h:179 [inline]
 nilfs_mdt_submit_block.constprop.0+0x152/0x970 fs/nilfs2/mdt.c:151
 nilfs_mdt_read_block+0x7c/0x320 fs/nilfs2/mdt.c:184
 nilfs_mdt_get_block+0xc7/0xb90 fs/nilfs2/mdt.c:259
 nilfs_palloc_get_block+0xb2/0x250 fs/nilfs2/alloc.c:225
 nilfs_palloc_get_entry_block+0x17d/0x230 fs/nilfs2/alloc.c:327
 nilfs_ifile_get_inode_block+0xb4/0x150 fs/nilfs2/ifile.c:152
 __nilfs_read_inode fs/nilfs2/inode.c:492 [inline]
 nilfs_iget+0x1c2/0x810 fs/nilfs2/inode.c:601
 nilfs_get_root_dentry+0x24/0x1f0 fs/nilfs2/super.c:918
 nilfs_fill_super fs/nilfs2/super.c:1092 [inline]
 nilfs_mount+0x984/0xd00 fs/nilfs2/super.c:1331
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2572 [inline]
 do_mount+0xe65/0x2a30 fs/namespace.c:2905
 SYSC_mount fs/namespace.c:3121 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3098
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fb89763462a
RSP: 002b:00007fff914e44d8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fb89763462a
RDX: 00000000200000c0 RSI: 0000000020000100 RDI: 00007fff914e44f0
RBP: 00007fff914e44f0 R08: 00007fff914e4530 R09: 00005555569982c0
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00007fff914e4530 R14: 000000000000003a R15: 0000000020000770
Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 69 02 00 00 48 8b 83 c0 00 00 00 48 ba 00 00 00 00 00 fc ff df 48 89 c1 48 c1 e9 03 <80> 3c 11 00 0f 85 32 02 00 00 4c 89 e6 48 89 e9 44 89 fa 48 89 
RIP: nilfs_bmap_lookup_at_level+0xa5/0x380 fs/nilfs2/bmap.c:78 RSP: ffff88809630f750
---[ end trace a7123bc6ad2e4fe1 ]---
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	df 48 89             	fisttps -0x77(%rax)
   3:	fa                   	cli
   4:	48 c1 ea 03          	shr    $0x3,%rdx
   8:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   c:	0f 85 69 02 00 00    	jne    0x27b
  12:	48 8b 83 c0 00 00 00 	mov    0xc0(%rbx),%rax
  19:	48 ba 00 00 00 00 00 	movabs $0xdffffc0000000000,%rdx
  20:	fc ff df
  23:	48 89 c1             	mov    %rax,%rcx
  26:	48 c1 e9 03          	shr    $0x3,%rcx
* 2a:	80 3c 11 00          	cmpb   $0x0,(%rcx,%rdx,1) <-- trapping instruction
  2e:	0f 85 32 02 00 00    	jne    0x266
  34:	4c 89 e6             	mov    %r12,%rsi
  37:	48 89 e9             	mov    %rbp,%rcx
  3a:	44 89 fa             	mov    %r15d,%edx
  3d:	48                   	rex.W
  3e:	89                   	.byte 0x89

Crashes (41):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/20 12:51 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/20 07:31 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/20 07:00 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/19 04:57 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/19 04:47 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/19 04:17 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/18 02:26 linux-4.14.y 9d5c0b3a8e1a 94744d21 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/16 16:51 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/16 14:15 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/16 13:51 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/16 07:46 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/16 03:23 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/15 21:33 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/15 21:00 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/15 20:49 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/15 16:55 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/15 09:41 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/14 19:46 linux-4.14.y 9d5c0b3a8e1a 4954e4b2 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/14 17:14 linux-4.14.y 9d5c0b3a8e1a 4954e4b2 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/14 09:39 linux-4.14.y 9d5c0b3a8e1a 4954e4b2 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/13 07:32 linux-4.14.y 9d5c0b3a8e1a 3f6b40a1 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/12 06:02 linux-4.14.y 9d5c0b3a8e1a 02b6492e .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/12 04:59 linux-4.14.y 9d5c0b3a8e1a 02b6492e .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/11 12:32 linux-4.14.y 9d5c0b3a8e1a 5bcf0c31 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/10 00:35 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/09 12:12 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/09 11:41 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/09 10:54 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/09 06:50 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/09 05:15 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/09 04:33 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/08 15:08 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/07 21:01 linux-4.14.y 9d5c0b3a8e1a 79a59635 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/07 05:55 linux-4.14.y 9d5c0b3a8e1a 80b58a42 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/04 06:29 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/04 02:28 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/03 16:27 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/03 06:57 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/02 02:16 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/01 19:04 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
2022/10/13 03:22 linux-4.14.y 9d5c0b3a8e1a 3f6b40a1 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: trying to register non-static key in nilfs_bmap_lookup_at_level
* Struck through repros no longer work on HEAD.