syzbot


BUG: corrupted list in __mark_inode_dirty

Status: auto-obsoleted due to no activity on 2024/04/09 18:17
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+4a16683f5520de8e47c4@syzkaller.appspotmail.com
First crash: 312d, last: 117d
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 (2)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] [fat?] BUG: corrupted list in __mark_inode_dirty 0 (2) 2024/02/21 18:18
[syzbot] Monthly fat report (Jul 2023) 3 (4) 2023/07/14 23:29
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 KASAN: use-after-free Read in __mark_inode_dirty fat 2 478d 492d 0/2 auto-obsoleted due to no activity on 2023/04/26 22:39
upstream KASAN: use-after-free Read in __mark_inode_dirty exfat 1 544d 540d 0/26 auto-obsoleted due to no activity on 2023/02/27 09:24
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/09/28 16:55 39m retest repro upstream report log
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/02/21 08:51 9h25m bisect fix upstream job log (1)
2023/12/31 16:10 2h06m bisect fix upstream job log (0) log
2023/12/01 12:10 3h59m bisect fix upstream job log (0) log
2023/10/30 23:21 2h54m bisect fix upstream job log (0) log
2023/09/29 02:49 2h34m bisect fix upstream job log (0) log
2023/07/20 03:19 1h58m bisect fix upstream job log (0) log

Sample crash report:
list_add corruption. next->prev should be prev (ffffffff91dfe878), but was 0000060100040048. (next=ffff888070e8fc38).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:27!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4986 Comm: udevd Not tainted 6.4.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:__list_add_valid+0xa5/0x100 lib/list_debug.c:27
Code: c7 c7 00 f8 a6 8a e8 8a df 50 fd 0f 0b 48 c7 c7 a0 f8 a6 8a e8 7c df 50 fd 0f 0b 4c 89 e1 48 c7 c7 00 f9 a6 8a e8 6b df 50 fd <0f> 0b 48 89 f1 48 c7 c7 80 f9 a6 8a 4c 89 e6 e8 57 df 50 fd 0f 0b
RSP: 0018:ffffc900033cfa20 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff88802068ee08 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8167dd6c RDI: 0000000000000005
RBP: ffff88802068efa0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000001 R12: ffff888070e8fc38
R13: ffff88802068efa0 R14: ffff88802068efa0 R15: ffff888070e8fc38
FS:  00007fc75aad2c80(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000060100040048 CR3: 0000000028d93000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_add include/linux/list.h:69 [inline]
 list_add include/linux/list.h:88 [inline]
 list_move include/linux/list.h:218 [inline]
 inode_io_list_move_locked+0x1fa/0x3f0 fs/fs-writeback.c:126
 __mark_inode_dirty+0x522/0xd60 fs/fs-writeback.c:2505
 generic_update_time fs/inode.c:1859 [inline]
 inode_update_time fs/inode.c:1872 [inline]
 touch_atime+0x687/0x740 fs/inode.c:1944
 file_accessed include/linux/fs.h:2198 [inline]
 filemap_read+0xa5a/0xc70 mm/filemap.c:2765
 blkdev_read_iter+0x3eb/0x760 block/fops.c:606
 call_read_iter include/linux/fs.h:1862 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x4b1/0x8a0 fs/read_write.c:470
 ksys_read+0x12b/0x250 fs/read_write.c:613
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc75a716b6a
Code: 00 3d 00 00 41 00 75 0d 50 48 8d 3d 2d 08 0a 00 e8 ea 7d 01 00 31 c0 e9 07 ff ff ff 64 8b 04 25 18 00 00 00 85 c0 75 1b 0f 05 <48> 3d 00 f0 ff ff 76 6c 48 8b 15 8f a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffdb3cd93f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00000000003f0000 RCX: 00007fc75a716b6a
RDX: 0000000000000040 RSI: 000055c536a3f038 RDI: 0000000000000009
RBP: 0000000000000040 R08: 000055c536a3f010 R09: 0000000000002000
R10: 0000000000000015 R11: 0000000000000246 R12: 000055c536a3f010
R13: 000055c536a3f028 R14: 000055c536a58bc8 R15: 000055c536a58b70
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_add_valid+0xa5/0x100 lib/list_debug.c:27
Code: c7 c7 00 f8 a6 8a e8 8a df 50 fd 0f 0b 48 c7 c7 a0 f8 a6 8a e8 7c df 50 fd 0f 0b 4c 89 e1 48 c7 c7 00 f9 a6 8a e8 6b df 50 fd <0f> 0b 48 89 f1 48 c7 c7 80 f9 a6 8a 4c 89 e6 e8 57 df 50 fd 0f 0b
RSP: 0018:ffffc900033cfa20 EFLAGS: 00010286

RAX: 0000000000000075 RBX: ffff88802068ee08 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8167dd6c RDI: 0000000000000005
RBP: ffff88802068efa0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000001 R12: ffff888070e8fc38
R13: ffff88802068efa0 R14: ffff88802068efa0 R15: ffff888070e8fc38
FS:  00007fc75aad2c80(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000060100040048 CR3: 0000000028d93000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/20 01:09 upstream 45a3e24f65e9 d521bc56 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root BUG: corrupted list in __mark_inode_dirty
* Struck through repros no longer work on HEAD.