syzbot


WARNING: locking bug in __mark_inode_dirty

Status: auto-obsoleted due to no activity on 2025/10/09 04:55
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+8aca6387ff573aa9a06f@syzkaller.appspotmail.com
First crash: 587d, last: 401d
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/08/05 linux-5.15.y (ToT) 7e89efd3ae1c C [report] BUG: unable to handle kernel paging request in write_inode_now
2024/05/03 upstream (ToT) f03359bca01b C [report] KASAN: out-of-bounds Write in end_buffer_read_sync
2024/08/05 upstream (ToT) de9c2c66ad8e C Didn't crash
Last patch testing requests (5)
Created Duration User Patch Repo Result
2025/10/09 04:32 22m retest repro linux-5.15.y OK log
2025/07/31 04:08 17m retest repro linux-5.15.y report log
2025/05/15 11:54 23m retest repro linux-5.15.y report log
2025/03/06 03:22 18m retest repro linux-5.15.y report log
2024/12/26 02:31 15m retest repro linux-5.15.y report log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/10/15 01:24 0m bisect fix linux-5.15.y error job log
2024/09/08 13:03 3h28m fix candidate upstream OK (0) job log log
2024/08/10 17:01 2h58m bisect fix linux-5.15.y OK (0) job log log
2024/06/29 13:05 2h06m bisect fix linux-5.15.y OK (0) job log log
2024/05/20 12:45 2h32m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
ntfs3: loop3: Mark volume as dirty due to NTFS errors
ntfs3: loop3: Failed to load $Extend.
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(curr->lockdep_depth != depth - merged)
WARNING: CPU: 0 PID: 3670 at kernel/locking/lockdep.c:5347 __lock_release kernel/locking/lockdep.c:5347 [inline]
WARNING: CPU: 0 PID: 3670 at kernel/locking/lockdep.c:5347 lock_release+0x447/0x9a0 kernel/locking/lockdep.c:5643
Modules linked in:
CPU: 0 PID: 3670 Comm: syz-executor.3 Not tainted 5.15.151-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:__lock_release kernel/locking/lockdep.c:5347 [inline]
RIP: 0010:lock_release+0x447/0x9a0 kernel/locking/lockdep.c:5643
Code: 00 00 00 00 fc ff df 4c 8b 64 24 08 48 8b 5c 24 28 0f 85 76 01 00 00 48 c7 c7 a0 13 8b 8a 48 c7 c6 00 38 8b 8a e8 59 33 e9 ff <0f> 0b e9 5c 01 00 00 4c 89 ef 48 8b 74 24 20 48 8b 54 24 50 e8 c0
RSP: 0018:ffffc90003316780 EFLAGS: 00010046
RAX: 479633dec3edc300 RBX: 0000000000000246 RCX: ffff88807b3ebb80
RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000
RBP: ffffc900033168b0 R08: ffffffff8166621c R09: ffffed1017344f24
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000662cfc
R13: 000000000004020f R14: 0000000000000246 R15: dffffc0000000000
FS:  00007fad32f3b6c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fad33c45dce CR3: 000000001f54b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline]
 _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:403 [inline]
 __mark_inode_dirty+0x6f4/0xd60 fs/fs-writeback.c:2548
 generic_update_time fs/inode.c:1817 [inline]
 inode_update_time fs/inode.c:1830 [inline]
 touch_atime+0x3fa/0x680 fs/inode.c:1902
 file_accessed include/linux/fs.h:2492 [inline]
 filemap_read+0x2779/0x2980 mm/filemap.c:2715
 __kernel_read+0x5ac/0xa60 fs/read_write.c:443
 integrity_kernel_read+0xac/0xf0 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+0xa5d/0x1c00 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x37e/0x800 security/integrity/ima/ima_api.c:255
 process_measurement+0x1363/0x21c0 security/integrity/ima/ima_main.c:351
 ima_file_check+0xf3/0x180 security/integrity/ima/ima_main.c:533
 do_open fs/namei.c:3610 [inline]
 path_openat+0x2745/0x2f20 fs/namei.c:3742
 do_filp_open+0x21c/0x460 fs/namei.c:3769
 do_sys_openat2+0x13b/0x500 fs/open.c:1211
 do_sys_open fs/open.c:1227 [inline]
 __do_sys_open fs/open.c:1235 [inline]
 __se_sys_open fs/open.c:1231 [inline]
 __x64_sys_open+0x221/0x270 fs/open.c:1231
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fad33bbada9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fad32f3b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fad33ce8f80 RCX: 00007fad33bbada9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000080
RBP: 00007fad33c0747a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fad33ce8f80 R15: 00007ffe6f987fd8
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/07 00:09 linux-5.15.y 574362648507 f39a7eed .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING: locking bug in __mark_inode_dirty
2024/04/18 01:51 linux-5.15.y c52b9710c83d acc528cb .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING: locking bug in __mark_inode_dirty
2024/03/06 22:33 linux-5.15.y 574362648507 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: locking bug in __mark_inode_dirty
* Struck through repros no longer work on HEAD.