syzbot


general protection fault in mark_buffer_dirty_inode (2)

Status: fixed on 2023/06/08 14:41
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+b7fc73213bc2361ab650@syzkaller.appspotmail.com
Fix commit: e9109a92d2a9 udf: Convert udf_rename() to new directory iteration code
First crash: 734d, last: 575d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH 0/20] udf: Fix various syzbot reports 23 (23) 2022/12/18 05:34
[syzbot] general protection fault in mark_buffer_dirty_inode (2) 0 (1) 2022/11/29 08:43
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 226d 226d 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 (2) C error 1 735d 735d 0/1 upstream: reported C repro on 2022/11/28 03:52
linux-4.19 general protection fault in mark_buffer_dirty_inode 1 1674d 1674d 0/1 auto-closed as invalid on 2020/08/30 19:17
android-49 general protection fault in mark_buffer_dirty_inode 2 2312d 2340d 0/3 auto-closed as invalid on 2019/02/22 14:57
upstream general protection fault in mark_buffer_dirty_inode exfat 1 2053d 2049d 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 55d 55d 0/2 premoderation: reported on 2024/10/07 16:44
android-54 KASAN: null-ptr-deref Write in mark_buffer_dirty_inode fat 1 668d 668d 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 49d 188d 0/3 upstream: reported C repro on 2024/05/27 20:45

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 1 PID: 3639 Comm: syz-executor332 Not tainted 6.1.0-syzkaller-03225-g764822972d64 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:mark_buffer_dirty_inode+0x55/0x3d0 fs/buffer.c:573
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:ffffc90003f9f998 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff81ecf6ed RDI: 0000000000000010
RBP: ffff888071d489e8 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888071d48158
R13: 0000000000000001 R14: 0000000000000000 R15: ffff888071d487c0
FS:  00007ff0ea088700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff0ea088718 CR3: 000000001d407000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 udf_rename+0x7f4/0x1260 fs/udf/namei.c:1190
 vfs_rename+0x1162/0x1a90 fs/namei.c:4779
 do_renameat2+0xb22/0xc30 fs/namei.c:4930
 __do_sys_rename fs/namei.c:4976 [inline]
 __se_sys_rename fs/namei.c:4974 [inline]
 __x64_sys_rename+0x81/0xa0 fs/namei.c:4974
 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:0x7ff0f2cfa699
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 91 18 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:00007ff0ea088208 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007ff0f2d79798 RCX: 00007ff0f2cfa699
RDX: 00007ff0ea088700 RSI: 0000000020000100 RDI: 0000000020000040
RBP: 00007ff0f2d79790 R08: 00007ff0ea088700 R09: 0000000000000000
R10: 00007ff0ea088700 R11: 0000000000000246 R12: 00007ff0f2d7979c
R13: 00007ffc28596d7f R14: 00007ff0ea088300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mark_buffer_dirty_inode+0x55/0x3d0 fs/buffer.c:573
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:ffffc90003f9f998 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff81ecf6ed RDI: 0000000000000010
RBP: ffff888071d489e8 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888071d48158
R13: 0000000000000001 R14: 0000000000000000 R15: ffff888071d487c0
FS:  00007ff0ea088700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560de74c9068 CR3: 000000001d407000 CR4: 0000000000350ef0
----------------
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 (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/14 06:10 upstream 764822972d64 e660de91 .config console log report syz C [mounted in repro] ci-upstream-kasan-gce-root general protection fault in mark_buffer_dirty_inode
2022/11/28 17:57 upstream b7b275e60bcd 247de55b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/05/06 12:33 upstream 2e1e1337881b 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/02/18 20:22 upstream 38f8ccde04a3 d02e9a70 .config console log report info ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/02/16 05:17 upstream 033c40a89f55 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/02/15 14:39 upstream e1c04510f521 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/02/15 02:16 upstream e1c04510f521 e62ba3c1 .config console log report info ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/02/13 04:02 upstream 711e9a4d52bf 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/02/11 20:14 upstream d12aca5c0cee 93e26d60 .config console log report info ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/02/09 00:38 upstream 0983f6bf2bfc fc9c934e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in mark_buffer_dirty_inode
2023/02/08 01:03 upstream 513c1a3d3f19 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/02/07 02:04 upstream d2d11f342b17 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/28 12:02 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/26 02:15 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/22 18:41 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/16 21:46 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/16 18:32 upstream 5dc4c995db9e a63719e7 .config console log report info ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/12 07:05 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/12 04:36 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/10 22:38 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/09 17:19 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/06 22:53 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/03 02:46 upstream 69b41ac87e4a ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2023/01/02 06:00 upstream 150aae354b81 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in mark_buffer_dirty_inode
2023/01/02 03:31 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2022/12/20 07:17 upstream aeba12b26c79 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2022/12/19 19:08 upstream 2f26e424552e c52b2efb .config console log report info ci-qemu-upstream general protection fault in mark_buffer_dirty_inode
2022/12/17 04:01 upstream 77856d911a8c 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in mark_buffer_dirty_inode
2022/12/08 04:21 upstream 479174d402bc d88f3abb .config console log report info ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2022/12/08 02:12 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2022/12/07 22:04 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
2022/12/07 16:13 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in mark_buffer_dirty_inode
* Struck through repros no longer work on HEAD.