syzbot


general protection fault in write_special_inodes (2)

Status: upstream: reported on 2022/09/30 10:08
Reported-by: syzbot+57897303a04ff8cebee9@syzkaller.appspotmail.com
First crash: 120d, last: 9d13h
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in write_special_inodes 1 406d 406d 0/1 auto-closed as invalid on 2022/04/17 17:52
upstream general protection fault in write_special_inodes jfs C inconclusive 191 8h52m 119d 0/24 upstream: reported C repro on 2022/09/30 22:26
linux-4.14 general protection fault in write_special_inodes 1 376d 376d 0/1 auto-closed as invalid on 2022/05/17 18:49

Sample crash report:
ERROR: (device loop5): txAbort: 
ERROR: (device loop0): txAbort: 
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: 8128 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:write_special_inodes+0xa6/0x170 fs/jfs/jfs_logmgr.c:221
overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off.
Code: 8b 7d 30 41 ff d4 48 8d 7b 28 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 ab 00 00 00 4c 8b 6b 28 49 8d 7d 30 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 88 00 00 00 49 8b 7d 30 41 ff d4 48 8d bb b0 00
RSP: 0018:ffff88809ecb7b98 EFLAGS: 00010206
RAX: 0000000000000006 RBX: ffff8880b240bbc0 RCX: ffffffff817ce639
RDX: 0000000000000000 RSI: ffffffff817ce5d8 RDI: 0000000000000030
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff817ce790
R13: 0000000000000000 R14: ffff888071726940 R15: ffff8880620693e8
FS:  0000555556169400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556172848 CR3: 0000000093b9c000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 jfs_flush_journal.part.0+0x2c1/0x6a0 fs/jfs/jfs_logmgr.c:1595
 jfs_flush_journal+0x23/0x30 fs/jfs/jfs_logmgr.c:1537
 jfs_umount+0xbf/0x310 fs/jfs/jfs_umount.c:71
 jfs_put_super+0x61/0x140 fs/jfs/super.c:223
 generic_shutdown_super+0x144/0x370 fs/super.c:456
 kill_block_super+0x97/0xf0 fs/super.c:1185
 deactivate_locked_super+0x94/0x160 fs/super.c:329
 deactivate_super+0x174/0x1a0 fs/super.c:360
 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fe6c1814537
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 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:00007ffca4b278a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fe6c1814537
RDX: 00007ffca4b2797b RSI: 000000000000000a RDI: 00007ffca4b27970
RBP: 00007ffca4b27970 R08: 00000000ffffffff R09: 00007ffca4b27740
R10: 000055555616a903 R11: 0000000000000246 R12: 00007fe6c186db24
R13: 00007ffca4b28a30 R14: 000055555616a810 R15: 00007ffca4b28a70
Modules linked in:
XFS (loop3): Unmounting Filesystem
---[ end trace e15d65635da7b6f5 ]---
RIP: 0010:write_special_inodes+0xa6/0x170 fs/jfs/jfs_logmgr.c:221
Code: 8b 7d 30 41 ff d4 48 8d 7b 28 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 ab 00 00 00 4c 8b 6b 28 49 8d 7d 30 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 88 00 00 00 49 8b 7d 30 41 ff d4 48 8d bb b0 00
RSP: 0018:ffff88809ecb7b98 EFLAGS: 00010206
RAX: 0000000000000006 RBX: ffff8880b240bbc0 RCX: ffffffff817ce639
RDX: 0000000000000000 RSI: ffffffff817ce5d8 RDI: 0000000000000030
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff817ce790
R13: 0000000000000000 R14: ffff888071726940 R15: ffff8880620693e8
FS:  0000555556169400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbb3dc00000 CR3: 0000000093b9c000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
XFS (loop2): Mounting V4 Filesystem
----------------
Code disassembly (best guess):
   0:	8b 7d 30             	mov    0x30(%rbp),%edi
   3:	41 ff d4             	callq  *%r12
   6:	48 8d 7b 28          	lea    0x28(%rbx),%rdi
   a:	48 89 f8             	mov    %rdi,%rax
   d:	48 c1 e8 03          	shr    $0x3,%rax
  11:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
  15:	0f 85 ab 00 00 00    	jne    0xc6
  1b:	4c 8b 6b 28          	mov    0x28(%rbx),%r13
  1f:	49 8d 7d 30          	lea    0x30(%r13),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1) <-- trapping instruction
  2e:	0f 85 88 00 00 00    	jne    0xbc
  34:	49 8b 7d 30          	mov    0x30(%r13),%rdi
  38:	41 ff d4             	callq  *%r12
  3b:	48                   	rex.W
  3c:	8d                   	.byte 0x8d
  3d:	bb                   	.byte 0xbb
  3e:	b0 00                	mov    $0x0,%al

Crashes (13):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-19 2023/01/19 07:58 linux-4.19.y 3f8a27f9e27b 66fca3ae .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2023/01/09 15:39 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/12/19 21:25 linux-4.19.y 3f8a27f9e27b c52b2efb .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/12/01 13:35 linux-4.19.y 3f8a27f9e27b 4c2a66e8 .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/11/22 12:32 linux-4.19.y 3f8a27f9e27b 1c576c23 .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/11/19 01:08 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/11/16 22:42 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/10/20 19:27 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/10/11 12:35 linux-4.19.y 3f8a27f9e27b 5bcf0c31 .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/10/08 13:50 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/10/06 13:35 linux-4.19.y 3f8a27f9e27b 2c6543ad .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/10/04 07:16 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report info [disk image] [vmlinux] general protection fault in write_special_inodes
ci2-linux-4-19 2022/09/30 10:08 linux-4.19.y 3f8a27f9e27b 45fd7169 .config console log report info general protection fault in write_special_inodes
* Struck through repros no longer work on HEAD.