syzbot


general protection fault in write_special_inodes (2)

Status: upstream: reported on 2023/02/02 17:54
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+929162a820188e95fe76@syzkaller.appspotmail.com
First crash: 394d, last: 362d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in write_special_inodes 1 805d 805d 0/1 auto-closed as invalid on 2022/04/17 17:52
linux-4.19 general protection fault in write_special_inodes (2) jfs 13 409d 520d 0/1 upstream: reported on 2022/09/30 10:08
upstream general protection fault in write_special_inodes jfs C inconclusive 1029 1d18h 519d 0/26 upstream: reported C repro on 2022/09/30 22:26
linux-4.14 general protection fault in write_special_inodes 1 775d 775d 0/1 auto-closed as invalid on 2022/05/17 18:49

Sample crash report:
ntfs: (device loop0): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel.
ntfs: volume version 3.1.
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
ntfs: (device loop3): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel.
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 8021 Comm: syz-executor.1 Not tainted 4.14.307-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
task: ffff8880a01a41c0 task.stack: ffff88809ea18000
RIP: 0010:write_special_inodes+0xa6/0x170 fs/jfs/jfs_logmgr.c:221
RSP: 0018:ffff88809ea1fc38 EFLAGS: 00010206
RAX: 0000000000000006 RBX: ffff888094aff400 RCX: 000000000000001b
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000030
RBP: dffffc0000000000 R08: 0000000000000000 R09: 00000000000407a2
R10: ffff8880a01a4a70 R11: ffff8880a01a41c0 R12: ffffffff8168dbd0
R13: 0000000000000000 R14: ffff88809e16c900 R15: fffffbfff1412926
FS:  00005555561ca400(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2fa2a000 CR3: 000000009f85b000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lmLogSync+0x389/0x660 fs/jfs/jfs_logmgr.c:958
 jfs_syncpt+0x66/0x70 fs/jfs/jfs_logmgr.c:1062
 jfs_sync_fs+0x80/0xa0 fs/jfs/super.c:718
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem fs/sync.c:64 [inline]
 sync_filesystem+0xe2/0x230 fs/sync.c:48
 generic_shutdown_super+0x70/0x370 fs/super.c:432
 kill_block_super+0x95/0xe0 fs/super.c:1161
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 deactivate_super+0x7f/0xa0 fs/super.c:350
 cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f666fb55567
RSP: 002b:00007fff0bd58988 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f666fb55567
RDX: 00007fff0bd58a5a RSI: 000000000000000a RDI: 00007fff0bd58a50
RBP: 00007fff0bd58a50 R08: 00000000ffffffff R09: 00007fff0bd58820
R10: 00005555561cb903 R11: 0000000000000246 R12: 00007f666fbaeb24
R13: 00007fff0bd59b10 R14: 00005555561cb810 R15: 00007fff0bd59b50
Code: 49 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 
RIP: write_special_inodes+0xa6/0x170 fs/jfs/jfs_logmgr.c:221 RSP: ffff88809ea1fc38
ntfs: (device loop4): ntfs_cluster_alloc(): Failed to allocate clusters, aborting (error -28).
JFS: discard option not supported on device
JFS: discard option not supported on device
ntfs: volume version 3.1.
ntfs: (device loop4): ntfs_attr_extend_allocation(): Cannot extend allocation of inode 0x43, attribute type 0x80, because the allocation of clusters failed with error code -28.
ntfs: volume version 3.1.
---[ end trace 5b3ddbdf24a2da29 ]---
----------------
Code disassembly (best guess):
   0:	49 8b 7d 30          	mov    0x30(%r13),%rdi
   4:	41 ff d4             	callq  *%r12
   7:	48 8d 7b 28          	lea    0x28(%rbx),%rdi
   b:	48 89 f8             	mov    %rdi,%rax
   e:	48 c1 e8 03          	shr    $0x3,%rax
  12:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
  16:	0f 85 ab 00 00 00    	jne    0xc7
  1c:	4c 8b 6b 28          	mov    0x28(%rbx),%r13
  20:	49 8d 7d 30          	lea    0x30(%r13),%rdi
  24:	48 89 f8             	mov    %rdi,%rax
  27:	48 c1 e8 03          	shr    $0x3,%rax
* 2b:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1) <-- trapping instruction
  2f:	0f 85 88 00 00 00    	jne    0xbd
  35:	49 8b 7d 30          	mov    0x30(%r13),%rdi
  39:	41 ff d4             	callq  *%r12
  3c:	48                   	rex.W
  3d:	8d                   	.byte 0x8d
  3e:	bb                   	.byte 0xbb
  3f:	b0                   	.byte 0xb0

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/06 20:42 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in write_special_inodes
2023/02/18 05:00 linux-4.14.y a8ad60f2af58 d02e9a70 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in write_special_inodes
2023/02/08 16:19 linux-4.14.y a8ad60f2af58 fc9c934e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in write_special_inodes
2023/02/06 17:35 linux-4.14.y a8ad60f2af58 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in write_special_inodes
2023/02/06 12:06 linux-4.14.y a8ad60f2af58 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in write_special_inodes
2023/02/02 17:54 linux-4.14.y 3949d1610004 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in write_special_inodes
* Struck through repros no longer work on HEAD.