syzbot


general protection fault in write_special_inodes

Status: upstream: reported C repro on 2022/09/30 22:26
Reported-by: syzbot+c732e285f8fc38d15916@syzkaller.appspotmail.com
First crash: 58d, last: 5h33m

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: general protection fault in write_special_inodes (log)
Repro: C syz .config
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 343d 343d 0/1 auto-closed as invalid on 2022/04/17 17:52
linux-4.19 general protection fault in write_special_inodes (2) 9 4d12h 57d 0/1 upstream: reported on 2022/09/30 10:08
linux-4.14 general protection fault in write_special_inodes 1 313d 313d 0/1 auto-closed as invalid on 2022/05/17 18:49

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 0 PID: 3665 Comm: syz-executor598 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:write_special_inodes+0xa6/0x170 fs/jfs/jfs_logmgr.c:208
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:ffffc9000410fae0 EFLAGS: 00010216
RAX: 0000000000000006 RBX: ffff88801274c400 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81a543e2 RDI: 0000000000000030
RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008c07e R12: ffffffff81a61e40
R13: 0000000000000000 R14: ffff88807dc13000 R15: ffff8880710ae9f0
FS:  00005555563a4300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd60452000 CR3: 000000007f503000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 jfs_flush_journal+0x227/0x750 fs/jfs/jfs_logmgr.c:1573
 jfs_umount+0x119/0x3f0 fs/jfs/jfs_umount.c:58
 jfs_fill_super+0xa47/0xc70 fs/jfs/super.c:600
 mount_bdev+0x34d/0x410 fs/super.c:1400
 legacy_get_tree+0x105/0x220 fs/fs_context.c:610
 vfs_get_tree+0x89/0x2f0 fs/super.c:1530
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1326/0x1e20 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7b778702aa
Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd60451658 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f7b778702aa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffd60451670
RBP: 00007ffd60451670 R08: 00007ffd604516b0 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000004
R13: 00007ffd604516b0 R14: 000000000000035a R15: 0000000020005270
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:write_special_inodes+0xa6/0x170 fs/jfs/jfs_logmgr.c:208
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:ffffc9000410fae0 EFLAGS: 00010216
RAX: 0000000000000006 RBX: ffff88801274c400 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81a543e2 RDI: 0000000000000030
RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008c07e R12: ffffffff81a61e40
R13: 0000000000000000 R14: ffff88807dc13000 R15: ffff8880710ae9f0
FS:  00005555563a4300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd60452000 CR3: 000000007f503000 CR4: 0000000000350ef0
----------------
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 (67):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/11/01 12:51 upstream b229b6ca5abb a1d8560a .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/24 02:24 upstream a70385240892 23bf86af .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/17 00:35 upstream 55be6084c8e0 67cb024c .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/10 23:18 upstream 4899a36f91a9 aea5da89 .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/09 14:44 upstream a6afa4199d3d aea5da89 .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/09 08:57 upstream a6afa4199d3d aea5da89 .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/04 04:01 upstream 4fe89d07dcc2 feb56351 .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/04 02:34 upstream 4fe89d07dcc2 feb56351 .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/04 01:56 upstream 4fe89d07dcc2 feb56351 .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/09/29 15:07 upstream c3e0e1e23c70 1d385642 .config log report syz C general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/13 21:26 linux-next f8f60f322f06 3ead01ad .config log report syz C general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/06 15:12 linux-next 0cdb3579f1ee 6d752409 .config log report syz C general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/04 23:51 linux-next 0cdb3579f1ee 6d752409 .config log report syz C general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/03 07:05 linux-next 61c3426aca2c 08977f5d .config log report syz C general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/31 12:41 linux-next 4d48f589d294 2a71366b .config log report syz C general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/30 21:35 linux-next 4d48f589d294 2a71366b .config log report syz C general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/30 20:15 linux-next 4d48f589d294 2a71366b .config log report syz C general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/30 19:37 linux-next 4d48f589d294 2a71366b .config log report syz C general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/11/26 19:54 upstream 644e9524388a 74a66371 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/11/24 02:58 upstream 4312098baf37 12c66417 .config log report info general protection fault in write_special_inodes
ci-qemu-upstream 2022/11/23 05:58 upstream eb7081409f94 75740b3f .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/11/23 01:50 upstream eb7081409f94 9da37ae8 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/11/21 23:26 upstream eb7081409f94 1c576c23 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/11/21 21:55 upstream eb7081409f94 1c576c23 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/11/19 21:19 upstream fe24a97cf254 5bb70014 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/11/16 21:07 upstream 59d0d52c30d4 3a127a31 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/11/16 11:48 upstream 81e7cfa3a9eb 3a127a31 .config log report info general protection fault in write_special_inodes
ci-qemu-upstream 2022/11/12 14:10 upstream 8f2975c2bb4c f42ee5d8 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/11/12 12:44 upstream f9bbe0c99e5b 3ead01ad .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/11/04 08:07 upstream f2f32f8af2b0 6d752409 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/11/03 14:25 upstream b229b6ca5abb 7a2ebf95 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/11/01 08:38 upstream b229b6ca5abb a1d8560a .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/10/31 12:42 upstream b229b6ca5abb 2a71366b .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/10/24 20:50 upstream 247f34f7b803 ff2fe65d .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/10/24 05:08 upstream 247f34f7b803 23bf86af .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/10/18 05:29 upstream 55be6084c8e0 754863b4 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/15 16:51 upstream 55be6084c8e0 67cb024c .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/10/10 00:26 upstream a6afa4199d3d aea5da89 .config log report info general protection fault in write_special_inodes
ci-qemu-upstream 2022/10/08 08:37 upstream 62e6e5940c0c aea5da89 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/10/02 14:12 upstream b357fd1c2afc feb56351 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-root 2022/09/30 12:59 upstream 987a926c1d8a 1d385642 .config log report info general protection fault in write_special_inodes
ci-upstream-kasan-gce-selinux-root 2022/09/29 14:28 upstream c3e0e1e23c70 1d385642 .config log report info general protection fault in write_special_inodes
ci-qemu-upstream-386 2022/11/25 00:22 upstream 08ad43d554ba 74a66371 .config log report info general protection fault in write_special_inodes
ci-qemu-upstream-386 2022/11/22 16:11 upstream eb7081409f94 1c8e10bc .config log report info general protection fault in write_special_inodes
ci-qemu-upstream-386 2022/11/22 05:45 upstream eb7081409f94 1c576c23 .config log report info general protection fault in write_special_inodes
ci-qemu-upstream-386 2022/11/12 07:37 upstream eb037f16f7e8 f42ee5d8 .config log report info general protection fault in write_special_inodes
ci-qemu-upstream-386 2022/10/26 20:24 upstream 98555239e4c3 86777b7f .config log report info general protection fault in write_special_inodes
ci-qemu-upstream-386 2022/10/26 19:26 upstream 4dc12f37a8e9 86777b7f .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/26 18:21 linux-next 9e46a7996732 74a66371 .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/22 18:34 linux-next 15f3bff12cf6 9da37ae8 .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/15 01:21 linux-next 5c92ddca1053 943f4cb8 .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/13 13:19 linux-next f8f60f322f06 3ead01ad .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/13 05:36 linux-next f8f60f322f06 3ead01ad .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/07 00:55 linux-next 0cdb3579f1ee 6d752409 .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/11/01 00:23 linux-next 4d48f589d294 2a71366b .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/24 23:14 linux-next 4d48f589d294 ff2fe65d .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/23 07:46 linux-next 4d48f589d294 c0b80a55 .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/18 20:57 linux-next 4ca786ae6681 b31320fc .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/15 16:49 linux-next aaa11ce2ffc8 67cb024c .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/12 13:38 linux-next aaa11ce2ffc8 16a9c9e0 .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/10 23:45 linux-next aaa11ce2ffc8 aea5da89 .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/09 16:17 linux-next aaa11ce2ffc8 aea5da89 .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/08 19:42 linux-next aaa11ce2ffc8 aea5da89 .config log report info general protection fault in write_special_inodes
ci-upstream-linux-next-kasan-gce-root 2022/10/02 19:35 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in write_special_inodes
* Struck through repros no longer work on HEAD.