syzbot


kernel panic: stack is corrupted in vhost_net_ioctl

Status: fixed on 2020/04/15 17:19
Subsystems: virt kvm net
[Documentation on labels]
Reported-by: syzbot+f2a62d07a5198c819c7b@syzkaller.appspotmail.com
Fix commit: 42d84c8490f9 vhost: Check docket sk_family instead of call getname
First crash: 1621d, last: 1530d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: KASAN: stack-out-of-bounds Write in ax25_getname (log)
Repro: syz .config
  
Discussions (12)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 5.4 01/58] ACPI: watchdog: Allow disabling WDAT at boot 43 (43) 2020/08/30 02:23
[PATCH 3.16 000/245] 3.16.83-rc1 review 260 (260) 2020/04/24 17:54
[PATCH 4.4 00/91] 4.4.218-rc1 review 97 (97) 2020/04/02 14:13
[PATCH 4.14 000/126] 4.14.173-stable review 140 (140) 2020/03/13 16:17
[PATCH 4.9 00/88] 4.9.216-stable review 96 (96) 2020/03/10 21:57
[PATCH 4.19 00/87] 4.19.108-stable review 102 (102) 2020/03/10 21:03
[PATCH AUTOSEL 4.19 01/31] ACPI: watchdog: Allow disabling WDAT at boot 16 (16) 2020/03/05 17:15
[PATCH AUTOSEL 5.5 01/67] ACPI: watchdog: Allow disabling WDAT at boot 45 (45) 2020/03/05 17:12
[PATCH 5.5 000/176] 5.5.8-stable review 201 (201) 2020/03/04 22:14
[PATCH 5.4 000/152] 5.4.24-stable review 160 (160) 2020/03/04 16:52
[PATCH] vhost: Check docket sk_family instead of call getname 3 (3) 2020/02/23 05:43
kernel panic: stack is corrupted in vhost_net_ioctl 0 (2) 2020/02/15 15:33
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2020/02/13 02:47 28m bisect fix upstream job log (0) log
2020/01/14 02:21 19m bisect fix upstream job log (0) log

Sample crash report:
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: vhost_net_ioctl+0x1d83/0x1db0 drivers/vhost/net.c:366
CPU: 0 PID: 8673 Comm: syz-executor239 Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fb/0x318 lib/dump_stack.c:118
 panic+0x264/0x7a9 kernel/panic.c:221
 __stack_chk_fail+0x1f/0x20 kernel/panic.c:667
 vhost_net_ioctl+0x1d83/0x1db0 drivers/vhost/net.c:366
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl fs/ioctl.c:763 [inline]
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl+0x113/0x190 fs/ioctl.c:770
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:770
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440259
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffdeb5890b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440259
RDX: 0000000020f1dff8 RSI: 000000004008af30 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401ae0
R13: 0000000000401b70 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/15 15:32 upstream 2019fc96af22 5d7b90f1 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/11/17 00:14 upstream 6c9594bdd474 d5696d51 .config console log report syz ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.