loop0: detected capacity change from 0 to 4096
ntfs3(loop0): ino=0, "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ni_find_attr
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: 1 UID: 0 PID: 6614 Comm: syz.0.16 Not tainted 6.15.0-rc5-syzkaller-00300-g3ce9925823c7 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
assign_lock_key+0x133/0x150 kernel/locking/lockdep.c:986
register_lock_class+0x105/0x320 kernel/locking/lockdep.c:1300
__lock_acquire+0x7f/0xd20 kernel/locking/lockdep.c:5110
lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5866
down_read+0x46/0x2e0 kernel/locking/rwsem.c:1524
attr_data_get_block+0x10f/0x1ec0 fs/ntfs3/attrib.c:906
ntfs_get_block_vbo+0x392/0xc30 fs/ntfs3/inode.c:605
do_mpage_readpage+0x86d/0x19a0 fs/mpage.c:222
mpage_readahead+0x398/0x650 fs/mpage.c:371
read_pages+0x177/0x590 mm/readahead.c:160
page_cache_ra_unbounded+0x6b0/0x7b0 mm/readahead.c:297
filemap_get_pages+0x43c/0x1eb0 mm/filemap.c:2591
filemap_read+0x3fa/0x11d0 mm/filemap.c:2702
__kernel_read+0x469/0x8c0 fs/read_write.c:528
integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28
ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline]
ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline]
ima_calc_file_hash+0x152c/0x18d0 security/integrity/ima/ima_crypto.c:568
ima_collect_measurement+0x42e/0x8e0 security/integrity/ima/ima_api.c:293
process_measurement+0x1121/0x1a40 security/integrity/ima/ima_main.c:385
ima_file_check+0xd7/0x120 security/integrity/ima/ima_main.c:613
security_file_post_open+0xbb/0x290 security/security.c:3130
do_open fs/namei.c:3882 [inline]
path_openat+0x2f26/0x3830 fs/namei.c:4039
do_file_open_root+0x304/0x5a0 fs/namei.c:4091
file_open_root+0x15d/0x1b0 fs/open.c:1408
do_handle_open+0x7a9/0x840 fs/fhandle.c:415
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f487998e969
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:00007f487a793038 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f4879bb5fa0 RCX: 00007f487998e969
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: ffffffffffffff9c
RBP: 00007f4879a10ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f4879bb5fa0 R15: 00007ffe2726b358
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff88803176da01, curr 0xffff88803176da00, list not empty
WARNING: CPU: 1 PID: 6614 at kernel/locking/rwsem.c:1340 __up_read+0x4f8/0x680 kernel/locking/rwsem.c:1340
Modules linked in:
CPU: 1 UID: 0 PID: 6614 Comm: syz.0.16 Not tainted 6.15.0-rc5-syzkaller-00300-g3ce9925823c7 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:__up_read+0x4f8/0x680 kernel/locking/rwsem.c:1340
Code: c7 c7 80 d5 6a 8b 48 c7 c6 e0 d6 6a 8b 4c 89 ea 48 8b 4c 24 08 4c 8b 04 24 4c 8b 4c 24 10 41 52 e8 5d 7a e6 ff 48 83 c4 08 90 <0f> 0b 90 90 e9 c7 fb ff ff c6 05 f5 f5 c9 0d 01 90 48 89 df be 08
RSP: 0018:ffffc900035f5d80 EFLAGS: 00010292
RAX: 761eac4304958c00 RBX: ffff8880783576c0 RCX: ffff88803176da00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc900035f5e30 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1bba4b4 R12: ffff888078357728
R13: 0000000000000100 R14: 1ffff1100f06aee5 R15: ffff888078357718
FS: 00007f487a7936c0(0000) GS:ffff888126200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005575b4f1a950 CR3: 0000000061a3e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
attr_data_get_block+0x175/0x1ec0 fs/ntfs3/attrib.c:909
ntfs_get_block_vbo+0x392/0xc30 fs/ntfs3/inode.c:605
do_mpage_readpage+0x86d/0x19a0 fs/mpage.c:222
mpage_readahead+0x398/0x650 fs/mpage.c:371
read_pages+0x177/0x590 mm/readahead.c:160
page_cache_ra_unbounded+0x6b0/0x7b0 mm/readahead.c:297
filemap_get_pages+0x43c/0x1eb0 mm/filemap.c:2591
filemap_read+0x3fa/0x11d0 mm/filemap.c:2702
__kernel_read+0x469/0x8c0 fs/read_write.c:528
integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28
ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline]
ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline]
ima_calc_file_hash+0x152c/0x18d0 security/integrity/ima/ima_crypto.c:568
ima_collect_measurement+0x42e/0x8e0 security/integrity/ima/ima_api.c:293
process_measurement+0x1121/0x1a40 security/integrity/ima/ima_main.c:385
ima_file_check+0xd7/0x120 security/integrity/ima/ima_main.c:613
security_file_post_open+0xbb/0x290 security/security.c:3130
do_open fs/namei.c:3882 [inline]
path_openat+0x2f26/0x3830 fs/namei.c:4039
do_file_open_root+0x304/0x5a0 fs/namei.c:4091
file_open_root+0x15d/0x1b0 fs/open.c:1408
do_handle_open+0x7a9/0x840 fs/fhandle.c:415
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f487998e969
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:00007f487a793038 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f4879bb5fa0 RCX: 00007f487998e969
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: ffffffffffffff9c
RBP: 00007f4879a10ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f4879bb5fa0 R15: 00007ffe2726b358