syzbot
UBSAN: undefined-behaviour in vhost_vq_reset
Status:
upstream: reported C repro on 2020/09/17 01:38
Reported-by: syzbot+8d8e8804f63dd6b5c44c@syzkaller.appspotmail.com
First crash: 2166d, last: 2131d
Sample crash report:
audit: type=1400 audit(1602764252.246:8): avc: denied { execmem } for pid=6487 comm="syz-executor129" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
================================================================================
UBSAN: Undefined behaviour in drivers/vhost/vhost.c:116:62
load of value 127 is not a valid value for type '_Bool'
CPU: 0 PID: 6489 Comm: syz-executor129 Not tainted 4.19.150-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+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_load_invalid_value.cold+0x63/0x6f lib/ubsan.c:454
vhost_init_is_le drivers/vhost/vhost.c:116 [inline]
vhost_reset_is_le drivers/vhost/vhost.c:143 [inline]
vhost_vq_reset.constprop.0.cold+0x15/0x1a drivers/vhost/vhost.c:325
vhost_dev_init+0x442/0x780 drivers/vhost/vhost.c:463
vhost_vsock_dev_open+0x1c9/0x310 drivers/vhost/vsock.c:629
misc_open+0x372/0x4a0 drivers/char/misc.c:141
chrdev_open+0x266/0x770 fs/char_dev.c:423
do_dentry_open+0x4aa/0x1160 fs/open.c:796
do_last fs/namei.c:3421 [inline]
path_openat+0x7d5/0x2e90 fs/namei.c:3537
do_filp_open+0x18c/0x3f0 fs/namei.c:3567
do_sys_open+0x3b3/0x520 fs/open.c:1085
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441209
Code: e8 fc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 1b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe589ced48 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441209
RDX: 0000000000000002 RSI: 00000000200000c0 RDI: ffffffffffffff9c
RBP: 000000000000a255 R08: 0000000000000004 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401fb0
R13: 0000000000402040 R14: 0000000000000000 R15: 0000000000000000
================================================================================
* Struck through repros no longer work on HEAD.