syzbot


general protection fault in write_special_inodes

Status: auto-closed as invalid on 2022/04/17 17:52
Reported-by: syzbot+4d7d93c0532d80779f40@syzkaller.appspotmail.com
First crash: 858d, last: 858d
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 (2) jfs 13 462d 573d 0/1 upstream: reported on 2022/09/30 10:08
upstream general protection fault in write_special_inodes jfs C inconclusive 1242 5h15m 572d 0/26 upstream: reported C repro on 2022/09/30 22:26
linux-4.14 general protection fault in write_special_inodes 1 828d 828d 0/1 auto-closed as invalid on 2022/05/17 18:49
linux-4.14 general protection fault in write_special_inodes (2) jfs 6 415d 447d 0/1 upstream: reported on 2023/02/02 17:54

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
bridge0: port 3(team0) entered disabled state
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 13570 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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:ffff8880438dfbb8 EFLAGS: 00010206
device team0 entered promiscuous mode
RAX: 0000000000000006 RBX: ffff8880b24ade00 RCX: ffffffff817ce639
RDX: 0000000000000000 RSI: ffffffff817ce5d8 RDI: 0000000000000030
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff817ce7c0
R13: 0000000000000000 R14: ffff88809c17c040 R15: ffff8880438dfdd0
FS:  0000555556a75400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
device team_slave_0 entered promiscuous mode
CR2: 00007f93a522d090 CR3: 00000000b0cc6000 CR4: 00000000003426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lmLogSync+0x414/0x6e0 fs/jfs/jfs_logmgr.c:958
 jfs_syncpt+0x78/0x90 fs/jfs/jfs_logmgr.c:1062
 jfs_sync_fs+0x80/0xa0 fs/jfs/super.c:718
device team_slave_1 entered promiscuous mode
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem+0x105/0x250 fs/sync.c:64
 generic_shutdown_super+0x70/0x370 fs/super.c:442
 kill_block_super+0x97/0xf0 fs/super.c:1185
 deactivate_locked_super+0x94/0x160 fs/super.c:329
bridge0: port 3(team0) entered blocking state
 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
bridge0: port 3(team0) entered forwarding state
RIP: 0033:0x7f10cf108307
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd06f48788 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f10cf108307
RDX: 00007ffd06f4885a RSI: 000000000000000a RDI: 00007ffd06f48850
RBP: 00007ffd06f48850 R08: 00000000ffffffff R09: 00007ffd06f48620
R10: 0000555556a76903 R11: 0000000000000246 R12: 00007f10cf160172
R13: 00007ffd06f49910 R14: 0000555556a76810 R15: 00007ffd06f49950
Modules linked in:
---[ end trace 34d165aff4ae612b ]---
RIP: 0010:write_special_inodes+0xa6/0x170 fs/jfs/jfs_logmgr.c:221
netlink: 'syz-executor.5': attribute type 10 has an invalid length.
device team0 left promiscuous mode
device team_slave_0 left promiscuous mode
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
device team_slave_1 left promiscuous mode
RSP: 0018:ffff8880438dfbb8 EFLAGS: 00010206
RAX: 0000000000000006 RBX: ffff8880b24ade00 RCX: ffffffff817ce639
bridge0: port 3(team0) entered disabled state
bond0: team0 is up - this may be due to an out of date ifenslave
RDX: 0000000000000000 RSI: ffffffff817ce5d8 RDI: 0000000000000030
netlink: 'syz-executor.5': attribute type 10 has an invalid length.
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
x_tables: arp_tables: CLASSIFY target: used from hooks INPUT, but only usable from FORWARD/OUTPUT
bridge0: port 3(team0) entered blocking state
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff817ce7c0
bridge0: port 3(team0) entered disabled state
R13: 0000000000000000 R14: ffff88809c17c040 R15: ffff8880438dfdd0
device team0 entered promiscuous mode
device team_slave_0 entered promiscuous mode
FS:  0000555556a75400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
device team_slave_1 entered promiscuous mode
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
bridge0: port 3(team0) entered blocking state
bridge0: port 3(team0) entered forwarding state
CR2: 00007f3a05791710 CR3: 00000000b0cc6000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
netlink: 'syz-executor.5': attribute type 10 has an invalid length.
----------------
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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/18 17:51 linux-4.19.y 3f8a27f9e27b 44068e19 .config console log report info ci2-linux-4-19 general protection fault in write_special_inodes
* Struck through repros no longer work on HEAD.