syzbot


general protection fault in mark_buffer_dirty_inode (2)

Status: upstream: reported C repro on 2022/11/28 03:52
Reported-by: syzbot+593005f49ea4c3bececa@syzkaller.appspotmail.com
First crash: 724d, last: 724d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 general protection fault in mark_buffer_dirty_inode 1 216d 216d 0/3 auto-obsoleted due to no activity on 2024/07/28 10:58
linux-4.19 general protection fault in mark_buffer_dirty_inode 1 1664d 1664d 0/1 auto-closed as invalid on 2020/08/30 19:17
upstream general protection fault in mark_buffer_dirty_inode (2) udf C 32 565d 723d 22/28 fixed on 2023/06/08 14:41
android-49 general protection fault in mark_buffer_dirty_inode 2 2302d 2329d 0/3 auto-closed as invalid on 2019/02/22 14:57
upstream general protection fault in mark_buffer_dirty_inode exfat 1 2042d 2038d 0/28 auto-closed as invalid on 2019/10/16 22:48
android-6-1 KASAN: null-ptr-deref Write in mark_buffer_dirty_inode 1 45d 45d 0/2 premoderation: reported on 2024/10/07 16:44
android-54 KASAN: null-ptr-deref Write in mark_buffer_dirty_inode fat 1 658d 658d 0/2 auto-obsoleted due to no activity on 2023/06/02 15:38
linux-5.15 BUG: unable to handle kernel paging request in mark_buffer_dirty_inode origin:lts-only C error 2 38d 177d 0/3 upstream: reported C repro on 2024/05/27 20:45

Sample crash report:
UDF-fs: error (device loop0): udf_read_tagged: read failed, block=256, location=256
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8102 Comm: syz-executor663 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:mark_buffer_dirty_inode+0x51/0x3c0 fs/buffer.c:547
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 ec 02 00 00 48 8d 7b 10 48 8b 6d 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 b5 02 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b
RSP: 0018:ffff8880948e79d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff82700bb8
RDX: 0000000000000002 RSI: ffffffff81b05229 RDI: 0000000000000010
RBP: ffff88808ac1d328 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88808ac1d670
R13: 0000000000000001 R14: ffff88808ac1d120 R15: ffff8880b0c11340
FS:  00007fac492d0700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fac492d0718 CR3: 00000000abba7000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 udf_rename+0x804/0x1270 fs/udf/namei.c:1202
 vfs_rename+0x67e/0x1bc0 fs/namei.c:4479
 do_renameat2+0xb59/0xc70 fs/namei.c:4629
 __do_sys_rename fs/namei.c:4675 [inline]
 __se_sys_rename fs/namei.c:4673 [inline]
 __x64_sys_rename+0x5d/0x80 fs/namei.c:4673
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fac517355a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fac492d02f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007fac517ba7b0 RCX: 00007fac517355a9
RDX: 00007fac492d0700 RSI: 0000000020000100 RDI: 0000000020000040
RBP: 0030656c69662f2e R08: 00007fac492d0700 R09: 0000000000000000
R10: 00007fac492d0700 R11: 0000000000000246 R12: 00007fac517870c0
R13: 0000000020000580 R14: f6f2cbf92df09e20 R15: 00007fac517ba7b8
Modules linked in:
---[ end trace 1bd3fd187b995441 ]---
RIP: 0010:mark_buffer_dirty_inode+0x51/0x3c0 fs/buffer.c:547
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 ec 02 00 00 48 8d 7b 10 48 8b 6d 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 b5 02 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b
RSP: 0018:ffff8880948e79d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff82700bb8
RDX: 0000000000000002 RSI: ffffffff81b05229 RDI: 0000000000000010
RBP: ffff88808ac1d328 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88808ac1d670
R13: 0000000000000001 R14: ffff88808ac1d120 R15: ffff8880b0c11340
FS:  00007fac492d0700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fac51776c80 CR3: 00000000abba7000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 89 fa             	mov    %rdi,%rdx
   3:	48 c1 ea 03          	shr    $0x3,%rdx
   7:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   b:	0f 85 ec 02 00 00    	jne    0x2fd
  11:	48 8d 7b 10          	lea    0x10(%rbx),%rdi
  15:	48 8b 6d 30          	mov    0x30(%rbp),%rbp
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 b5 02 00 00    	jne    0x2e9
  34:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  3b:	fc ff df
  3e:	4c                   	rex.WR
  3f:	8b                   	.byte 0x8b

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/28 03:52 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 general protection fault in mark_buffer_dirty_inode
* Struck through repros no longer work on HEAD.