INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 2 PID: 6686 Comm: syz-executor.2 Not tainted 6.1.0-syzkaller-14594-g72a85e2b0a1e #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 assign_lock_key kernel/locking/lockdep.c:981 [inline] register_lock_class+0xf1b/0x1120 kernel/locking/lockdep.c:1294 __lock_acquire+0x109/0x56d0 kernel/locking/lockdep.c:4934 lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 down_read+0x9c/0x450 kernel/locking/rwsem.c:1509 attr_data_get_block+0x12d/0x19f0 fs/ntfs3/attrib.c:903 ntfs_get_block_vbo+0x264/0x1310 fs/ntfs3/inode.c:573 do_mpage_readpage+0x765/0x19e0 fs/mpage.c:208 mpage_readahead+0x344/0x580 fs/mpage.c:361 ntfs_readahead+0x1f9/0x260 fs/ntfs3/inode.c:739 read_pages+0x1a2/0xd40 mm/readahead.c:161 page_cache_ra_unbounded+0x477/0x5e0 mm/readahead.c:270 do_page_cache_ra mm/readahead.c:300 [inline] page_cache_ra_order+0x6ec/0xa00 mm/readahead.c:560 ondemand_readahead+0x6b3/0x1000 mm/readahead.c:682 page_cache_sync_ra+0x1c9/0x200 mm/readahead.c:709 page_cache_sync_readahead include/linux/pagemap.h:1210 [inline] filemap_get_pages+0x2ca/0x16b0 mm/filemap.c:2600 filemap_read+0x315/0xc00 mm/filemap.c:2694 generic_file_read_iter+0x3ad/0x5b0 mm/filemap.c:2840 ntfs_file_read_iter+0x1b8/0x270 fs/ntfs3/file.c:758 __kernel_read+0x2ca/0x7c0 fs/read_write.c:428 integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:199 ima_calc_file_hash_tfm+0x2aa/0x3b0 security/integrity/ima/ima_crypto.c:485 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x195/0x4a0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x642/0x7b0 security/integrity/ima/ima_api.c:292 process_measurement+0xd23/0x18b0 security/integrity/ima/ima_main.c:339 ima_file_check+0xb0/0x100 security/integrity/ima/ima_main.c:519 do_open fs/namei.c:3559 [inline] path_openat+0x15f1/0x2a50 fs/namei.c:3714 do_file_open_root+0x2cc/0x590 fs/namei.c:3766 file_open_root+0x2b1/0x430 fs/open.c:1290 do_handle_open+0x327/0x8b0 fs/fhandle.c:232 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7fab549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7f855cc EFLAGS: 00000296 ORIG_RAX: 0000000000000156 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000100 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff88801dbb9d41, curr 0xffff88801dbb9d40, list not empty WARNING: CPU: 2 PID: 6686 at kernel/locking/rwsem.c:1335 __up_read+0x4d0/0x720 kernel/locking/rwsem.c:1335 Modules linked in: CPU: 2 PID: 6686 Comm: syz-executor.2 Not tainted 6.1.0-syzkaller-14594-g72a85e2b0a1e #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:__up_read+0x4d0/0x720 kernel/locking/rwsem.c:1335 Code: 8b 44 24 10 80 3c 02 00 0f 85 a9 01 00 00 49 8b 17 4d 89 f1 48 c7 c6 80 40 4c 8a 48 c7 c7 c0 40 4c 8a ff 34 24 e8 60 69 5c 08 <0f> 0b 5f e9 c7 fe ff ff 4d 8d 77 58 c6 05 5f e3 fa 0c 01 48 b8 00 RSP: 0018:ffffc9000621e3d0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffff8e730928 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff8166721c RDI: fffff52000c43c6c RBP: ffff888044cd8148 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 57525f4755424544 R12: 1ffff92000c43c7e R13: ffff888044cd81a8 R14: ffff88801dbb9d40 R15: ffff888044cd8140 FS: 0000000000000000(0000) GS:ffff88802c800000(0063) knlGS:00000000f7f85b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002f725000 CR3: 0000000052c92000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: attr_data_get_block+0x19d/0x19f0 fs/ntfs3/attrib.c:906 ntfs_get_block_vbo+0x264/0x1310 fs/ntfs3/inode.c:573 do_mpage_readpage+0x765/0x19e0 fs/mpage.c:208 mpage_readahead+0x344/0x580 fs/mpage.c:361 ntfs_readahead+0x1f9/0x260 fs/ntfs3/inode.c:739 read_pages+0x1a2/0xd40 mm/readahead.c:161 page_cache_ra_unbounded+0x477/0x5e0 mm/readahead.c:270 do_page_cache_ra mm/readahead.c:300 [inline] page_cache_ra_order+0x6ec/0xa00 mm/readahead.c:560 ondemand_readahead+0x6b3/0x1000 mm/readahead.c:682 page_cache_sync_ra+0x1c9/0x200 mm/readahead.c:709 page_cache_sync_readahead include/linux/pagemap.h:1210 [inline] filemap_get_pages+0x2ca/0x16b0 mm/filemap.c:2600 filemap_read+0x315/0xc00 mm/filemap.c:2694 generic_file_read_iter+0x3ad/0x5b0 mm/filemap.c:2840 ntfs_file_read_iter+0x1b8/0x270 fs/ntfs3/file.c:758 __kernel_read+0x2ca/0x7c0 fs/read_write.c:428 integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:199 ima_calc_file_hash_tfm+0x2aa/0x3b0 security/integrity/ima/ima_crypto.c:485 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x195/0x4a0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x642/0x7b0 security/integrity/ima/ima_api.c:292 process_measurement+0xd23/0x18b0 security/integrity/ima/ima_main.c:339 ima_file_check+0xb0/0x100 security/integrity/ima/ima_main.c:519 do_open fs/namei.c:3559 [inline] path_openat+0x15f1/0x2a50 fs/namei.c:3714 do_file_open_root+0x2cc/0x590 fs/namei.c:3766 file_open_root+0x2b1/0x430 fs/open.c:1290 do_handle_open+0x327/0x8b0 fs/fhandle.c:232 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7fab549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7f855cc EFLAGS: 00000296 ORIG_RAX: 0000000000000156 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000100 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi