syzbot


INFO: trying to register non-static key in do_mpage_readpage

Status: fixed on 2024/01/30 15:47
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+0ede990fe8e46cb5711d@syzkaller.appspotmail.com
Fix commit: 6f861765464f fs: Block writes to mounted block devices
First crash: 450d, last: 92d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] INFO: trying to register non-static key in do_mpage_readpage 1 (3) 2024/01/17 10:01
Last patch testing requests (9)
Created Duration User Patch Repo Result
2024/01/13 04:18 3h29m retest repro upstream OK log
2023/12/17 13:33 13m retest repro upstream report log
2023/12/17 13:33 10m retest repro upstream report log
2023/11/24 00:28 14m retest repro upstream report log
2023/11/23 15:57 20m retest repro linux-next OK log
2023/09/09 19:37 9m retest repro upstream report log
2023/08/26 16:29 17m retest repro upstream report log
2023/08/26 16:29 28m retest repro upstream report log
2023/08/26 16:29 27m retest repro linux-next report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/01/16 19:18 4h48m bisect fix upstream job log (1)
2023/11/03 12:33 1h44m bisect fix upstream job log (0) log
2023/10/04 04:55 1h13m bisect fix upstream job log (0) log
2023/05/24 23:15 42m bisect fix upstream job log (0) log

Sample crash report:
ntfs3: loop0: ino=0, ntfs_iget5
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: 4996 Comm: syz-executor332 Not tainted 6.4.0-rc6-syzkaller-00269-g1b29d271614a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 assign_lock_key+0x222/0x230 kernel/locking/lockdep.c:982
 register_lock_class+0x28e/0x990 kernel/locking/lockdep.c:1295
 __lock_acquire+0xd3/0x2070 kernel/locking/lockdep.c:4965
 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705
 down_read+0x47/0x2f0 kernel/locking/rwsem.c:1520
 attr_data_get_block+0x2e7/0x2da0 fs/ntfs3/attrib.c:902
 ntfs_get_block_vbo+0x36a/0xd00 fs/ntfs3/inode.c:585
 do_mpage_readpage+0x911/0x1fa0 fs/mpage.c:234
 mpage_readahead+0x454/0x930 fs/mpage.c:382
 read_pages+0x183/0x830 mm/readahead.c:161
 page_cache_ra_unbounded+0x697/0x7c0 mm/readahead.c:270
 page_cache_sync_readahead include/linux/pagemap.h:1211 [inline]
 filemap_get_pages+0x49c/0x20c0 mm/filemap.c:2601
 filemap_read+0x45a/0x1170 mm/filemap.c:2696
 __kernel_read+0x422/0x8a0 fs/read_write.c:428
 integrity_kernel_read+0xb0/0xf0 security/integrity/iint.c:192
 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+0x1643/0x1d20 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x3a7/0x880 security/integrity/ima/ima_api.c:293
 process_measurement+0xfdb/0x1ce0 security/integrity/ima/ima_main.c:341
 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:539
 do_open fs/namei.c:3638 [inline]
 path_openat+0x280a/0x3170 fs/namei.c:3791
 do_file_open_root+0x376/0x7c0 fs/namei.c:3843
 file_open_root+0x247/0x2a0 fs/open.c:1336
 do_handle_open+0x582/0x960 fs/fhandle.c:232
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f386ad79869
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd3fe34198 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f386ad79869
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f386ad39100 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f386ad39190
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff888026ad8001, curr 0xffff888026ad8000, list not empty
WARNING: CPU: 1 PID: 4996 at kernel/locking/rwsem.c:1342 __up_read+0x505/0x690 kernel/locking/rwsem.c:1342
Modules linked in:
CPU: 1 PID: 4996 Comm: syz-executor332 Not tainted 6.4.0-rc6-syzkaller-00269-g1b29d271614a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:__up_read+0x505/0x690 kernel/locking/rwsem.c:1342
Code: 44 c1 48 c7 c7 60 82 ea 8a 48 c7 c6 00 84 ea 8a 4c 89 fa 48 8b 4c 24 08 49 89 d8 4c 8b 4c 24 10 50 e8 ff 82 e8 ff 48 83 c4 08 <0f> 0b 48 bb 00 00 00 00 00 fc ff df 4c 8b 2c 24 e9 ac fb ff ff c6
RSP: 0018:ffffc900039fde00 EFLAGS: 00010296
RAX: ff58872ffde1cc00 RBX: ffff888026ad8001 RCX: ffff888026ad8000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900039fdeb0 R08: ffffffff81530142 R09: fffff5200073fb75
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888076677048
R13: ffff888076677038 R14: 1ffff1100eccee09 R15: 0000000000000100
FS:  00005555569ac300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b2247adff0 CR3: 0000000079391000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 attr_data_get_block+0x34b/0x2da0 fs/ntfs3/attrib.c:905
 ntfs_get_block_vbo+0x36a/0xd00 fs/ntfs3/inode.c:585
 do_mpage_readpage+0x911/0x1fa0 fs/mpage.c:234
 mpage_readahead+0x454/0x930 fs/mpage.c:382
 read_pages+0x183/0x830 mm/readahead.c:161
 page_cache_ra_unbounded+0x697/0x7c0 mm/readahead.c:270
 page_cache_sync_readahead include/linux/pagemap.h:1211 [inline]
 filemap_get_pages+0x49c/0x20c0 mm/filemap.c:2601
 filemap_read+0x45a/0x1170 mm/filemap.c:2696
 __kernel_read+0x422/0x8a0 fs/read_write.c:428
 integrity_kernel_read+0xb0/0xf0 security/integrity/iint.c:192
 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+0x1643/0x1d20 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x3a7/0x880 security/integrity/ima/ima_api.c:293
 process_measurement+0xfdb/0x1ce0 security/integrity/ima/ima_main.c:341
 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:539
 do_open fs/namei.c:3638 [inline]
 path_openat+0x280a/0x3170 fs/namei.c:3791
 do_file_open_root+0x376/0x7c0 fs/namei.c:3843
 file_open_root+0x247/0x2a0 fs/open.c:1336
 do_handle_open+0x582/0x960 fs/fhandle.c:232
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f386ad79869
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd3fe34198 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f386ad79869
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f386ad39100 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f386ad39190
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/18 02:59 upstream 1b29d271614a f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root INFO: trying to register non-static key in do_mpage_readpage
2022/12/25 12:00 upstream 72a85e2b0a1e 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2023/11/26 09:33 upstream 090472ed9c92 5b429f39 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2023/08/10 07:15 upstream cacc6e22932f 13ca4cd6 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root INFO: trying to register non-static key in do_mpage_readpage
2022/12/24 18:48 linux-next e45fb347b630 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root INFO: trying to register non-static key in do_mpage_readpage
2023/12/03 13:17 upstream 1b8af6552cb7 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2023/11/26 09:06 upstream 090472ed9c92 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2023/11/09 09:27 upstream 6bc986ab839c 4862372a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2023/07/23 12:57 upstream c2782531397f 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2023/04/13 06:39 upstream 0bcc40255504 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2023/03/17 03:36 upstream 0ddc84d2dd43 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2023/02/18 10:19 upstream 38f8ccde04a3 d02e9a70 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2023/01/26 11:23 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2022/12/27 05:53 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: trying to register non-static key in do_mpage_readpage
2022/12/27 05:52 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: trying to register non-static key in do_mpage_readpage
2022/12/27 05:46 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2022/12/24 20:13 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: trying to register non-static key in do_mpage_readpage
2022/12/24 19:17 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: trying to register non-static key in do_mpage_readpage
2022/12/24 19:11 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: trying to register non-static key in do_mpage_readpage
2022/12/24 18:50 upstream 72a85e2b0a1e 9da18ae8 .config console log report info ci-qemu-upstream INFO: trying to register non-static key in do_mpage_readpage
2022/12/24 19:07 upstream 72a85e2b0a1e 9da18ae8 .config console log report info ci-qemu-upstream-386 INFO: trying to register non-static key in do_mpage_readpage
2023/07/23 13:07 linux-next ae867bc97b71 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: trying to register non-static key in do_mpage_readpage
2022/12/27 05:54 linux-next c76083fac3ba 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: trying to register non-static key in do_mpage_readpage
2022/12/24 18:32 linux-next e45fb347b630 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: trying to register non-static key in do_mpage_readpage
* Struck through repros no longer work on HEAD.