syzbot


INFO: trying to register non-static key in do_mpage_readpage

Status: upstream: reported C repro on 2025/11/12 03:14
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+8af7ac81750008d66feb@syzkaller.appspotmail.com
First crash: 10d, last: 6d23h
Bug presence (2)
Date Name Commit Repro Result
2025/11/15 linux-5.15.y (ToT) cc5ec8769306 C [report] INFO: trying to register non-static key in do_mpage_readpage
2025/11/15 upstream (ToT) 7a0892d2836e C Didn't crash
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: trying to register non-static key in do_mpage_readpage (2) ntfs3 -1 C done done 18 124d 599d 0/29 auto-obsoleted due to no activity on 2025/10/28 20:14
upstream INFO: trying to register non-static key in do_mpage_readpage ntfs3 -1 C error done 24 705d 1059d 25/29 fixed on 2024/01/30 15:47

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS' sector size (4096) and media sector size (512)
ntfs3: loop0: Mark volume as dirty due to NTFS errors
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: 0 PID: 4348 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
 assign_lock_key+0x1e0/0x1f0 kernel/locking/lockdep.c:937
 register_lock_class+0x20e/0x880 kernel/locking/lockdep.c:1250
 __lock_acquire+0x160/0x7c60 kernel/locking/lockdep.c:4891
 lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623
 down_read+0x44/0x2e0 kernel/locking/rwsem.c:1498
 attr_data_get_block+0x10d/0x1880 fs/ntfs3/attrib.c:831
 ntfs_get_block_vbo+0x2f6/0xc60 fs/ntfs3/inode.c:591
 do_mpage_readpage+0x820/0x1e30 fs/mpage.c:231
 mpage_readahead+0x3a6/0x8a0 fs/mpage.c:389
 read_pages+0x165/0x920 mm/readahead.c:130
 page_cache_ra_unbounded+0x830/0x930 mm/readahead.c:239
 page_cache_sync_readahead include/linux/pagemap.h:833 [inline]
 filemap_get_pages mm/filemap.c:2551 [inline]
 filemap_read+0x589/0x2480 mm/filemap.c:2634
 __kernel_read+0x4eb/0x910 fs/read_write.c:443
 integrity_kernel_read+0x86/0xd0 security/integrity/iint.c:228
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
 ima_calc_file_hash+0x1546/0x18e0 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x2ef/0x760 security/integrity/ima/ima_api.c:255
 process_measurement+0xfb9/0x1a10 security/integrity/ima/ima_main.c:351
 ima_file_check+0xc1/0x100 security/integrity/ima/ima_main.c:533
 do_open fs/namei.c:3618 [inline]
 path_openat+0x2735/0x2f30 fs/namei.c:3750
 do_file_open_root+0x2c8/0x680 fs/namei.c:3802
 file_open_root+0x15a/0x1a0 fs/open.c:1233
 do_handle_open+0x47f/0x820 fs/fhandle.c:232
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd41f6e96c9
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:00007fffb1f17068 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007fd41f93ffa0 RCX: 00007fd41f6e96c9
RDX: 0000000000000000 RSI: 0000200000000240 RDI: 0000000000000005
RBP: 00007fd41f76bf91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd41f93ffa0 R14: 00007fd41f93ffa0 R15: 0000000000000003
 </TASK>
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff888022df3b81, curr 0xffff888022df3b80, list not empty
WARNING: CPU: 0 PID: 4348 at kernel/locking/rwsem.c:1322 __up_read+0x4e9/0x660 kernel/locking/rwsem.c:1322
Modules linked in:
CPU: 0 PID: 4348 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:__up_read+0x4e9/0x660 kernel/locking/rwsem.c:1322
Code: 48 c7 c7 e0 0f 0b 8a 48 c7 c6 00 11 0b 8a 4c 89 ea 48 8b 4c 24 08 4c 8b 04 24 4c 8b 4c 24 10 41 52 e8 db 55 43 08 48 83 c4 08 <0f> 0b e9 d5 fb ff ff c6 05 3d a5 fa 0b 01 48 89 df be 08 00 00 00
RSP: 0018:ffffc90002ebe040 EFLAGS: 00010292
RAX: d14974fefc11da00 RBX: ffff88805bd9cb00 RCX: ffff888022df3b80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90002ebe0f0 R08: dffffc0000000000 R09: ffffed10172067b0
R10: ffffed10172067b0 R11: 1ffff110172067af R12: ffff88805bd9cb68
R13: 0000000000000100 R14: 1ffff1100b7b396d R15: ffff88805bd9cb58
FS:  000055556289d500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30c63fff CR3: 000000001ef3c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 attr_data_get_block+0x13c/0x1880 fs/ntfs3/attrib.c:833
 ntfs_get_block_vbo+0x2f6/0xc60 fs/ntfs3/inode.c:591
 do_mpage_readpage+0x820/0x1e30 fs/mpage.c:231
 mpage_readahead+0x3a6/0x8a0 fs/mpage.c:389
 read_pages+0x165/0x920 mm/readahead.c:130
 page_cache_ra_unbounded+0x830/0x930 mm/readahead.c:239
 page_cache_sync_readahead include/linux/pagemap.h:833 [inline]
 filemap_get_pages mm/filemap.c:2551 [inline]
 filemap_read+0x589/0x2480 mm/filemap.c:2634
 __kernel_read+0x4eb/0x910 fs/read_write.c:443
 integrity_kernel_read+0x86/0xd0 security/integrity/iint.c:228
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
 ima_calc_file_hash+0x1546/0x18e0 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x2ef/0x760 security/integrity/ima/ima_api.c:255
 process_measurement+0xfb9/0x1a10 security/integrity/ima/ima_main.c:351
 ima_file_check+0xc1/0x100 security/integrity/ima/ima_main.c:533
 do_open fs/namei.c:3618 [inline]
 path_openat+0x2735/0x2f30 fs/namei.c:3750
 do_file_open_root+0x2c8/0x680 fs/namei.c:3802
 file_open_root+0x15a/0x1a0 fs/open.c:1233
 do_handle_open+0x47f/0x820 fs/fhandle.c:232
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd41f6e96c9
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:00007fffb1f17068 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007fd41f93ffa0 RCX: 00007fd41f6e96c9
RDX: 0000000000000000 RSI: 0000200000000240 RDI: 0000000000000005
RBP: 00007fd41f76bf91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd41f93ffa0 R14: 00007fd41f93ffa0 R15: 0000000000000003
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/12 03:13 linux-5.15.y cc5ec8769306 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan INFO: trying to register non-static key in do_mpage_readpage
* Struck through repros no longer work on HEAD.