syzbot


https://github.com/google/kmsan.git test error: kernel BUG at mm/kmsan/kmsan.c:LINE!

Status: closed as invalid on 2018/06/14 09:26
Subsystems: virt
[Documentation on labels]
First crash: 2630d, last: 2630d

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
Not allocated shadow for addr ffff8801d3b2c000 (page ffffea000af63080)
Attempted to access 110 bytes
------------[ cut here ]------------
kernel BUG at mm/kmsan/kmsan.c:1378!
invalid opcode: 0000 [#1] SMP PTI
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.17.0+ #5
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kmsan_get_shadow_address+0x1ce/0x1f0 mm/kmsan/kmsan.c:1377
RSP: 0018:ffff88021fc0eee8 EFLAGS: 00010082
RAX: 000000000000001d RBX: 0000000000000740 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000
RBP: ffff88021fc0ef00 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: ffffffff86575280 R12: ffff8801d3b2c000
R13: 000000000000006e R14: 0000000000000001 R15: 000000000000006e
FS:  0000000000000000(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f079cbb4f70 CR3: 00000001b65a2000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 kmsan_internal_memset_shadow mm/kmsan/kmsan.c:172 [inline]
 kmsan_internal_unpoison_shadow+0x5c/0xe0 mm/kmsan/kmsan.c:209
 kmsan_unpoison_shadow+0x66/0xb0 mm/kmsan/kmsan.c:223
 virtqueue_get_buf_ctx+0x73f/0xa20 drivers/virtio/virtio_ring.c:759
 virtqueue_get_buf+0x72/0x90 drivers/virtio/virtio_ring.c:766
 free_old_xmit_skbs drivers/net/virtio_net.c:1233 [inline]
 start_xmit+0x293/0x29c0 drivers/net/virtio_net.c:1398
 __netdev_start_xmit include/linux/netdevice.h:4087 [inline]
 netdev_start_xmit include/linux/netdevice.h:4096 [inline]
 xmit_one net/core/dev.c:3053 [inline]
 dev_hard_start_xmit+0x5f6/0xc80 net/core/dev.c:3069
 sch_direct_xmit+0x578/0x8f0 net/sched/sch_generic.c:327
 qdisc_restart net/sched/sch_generic.c:399 [inline]
 __qdisc_run+0x1822/0x3730 net/sched/sch_generic.c:410
 __dev_xmit_skb net/core/dev.c:3244 [inline]
 __dev_queue_xmit+0x2069/0x3540 net/core/dev.c:3552
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3617
 neigh_hh_output include/net/neighbour.h:472 [inline]
 neigh_output include/net/neighbour.h:480 [inline]
 ip_finish_output2+0x12a8/0x1480 net/ipv4/ip_output.c:229
 ip_finish_output+0xcbc/0x1000 net/ipv4/ip_output.c:317
 NF_HOOK_COND include/linux/netfilter.h:277 [inline]
 ip_output+0x505/0x5d0 net/ipv4/ip_output.c:405
 dst_output include/net/dst.h:444 [inline]
 ip_local_out net/ipv4/ip_output.c:124 [inline]
 ip_queue_xmit+0x1b0f/0x1d00 net/ipv4/ip_output.c:504
 tcp_transmit_skb+0x3db5/0x5350 net/ipv4/tcp_output.c:1176
 tcp_send_ack+0x7e8/0x900 net/ipv4/tcp_output.c:3621
 tcp_delack_timer_handler+0x5d0/0xac0 net/ipv4/tcp_timer.c:276
 tcp_delack_timer+0x1ae/0x350 net/ipv4/tcp_timer.c:303
 call_timer_fn+0x280/0x5d0 kernel/time/timer.c:1326
 expire_timers kernel/time/timer.c:1363 [inline]
 __run_timers+0xd96/0x11b0 kernel/time/timer.c:1666
 run_timer_softirq+0x43/0x70 kernel/time/timer.c:1692
 __do_softirq+0x592/0x979 kernel/softirq.c:285
 invoke_softirq kernel/softirq.c:365 [inline]
 irq_exit+0x202/0x240 kernel/softirq.c:405
 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:525
 smp_apic_timer_interrupt+0x64/0x90 arch/x86/kernel/apic/apic.c:1055
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:863
 </IRQ>
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:55 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:97 [inline]
RIP: 0010:default_idle+0x20b/0x3e0 arch/x86/kernel/process.c:500
RSP: 0018:ffffffff8ac0fd90 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff8801fd432f18 RBX: 0000000000000000 RCX: ffff880000000000
RDX: ffff8801fd032f18 RSI: aaaaaaaaaaaab000 RDI: ffffea0000000000
RBP: ffffffff8ac0fdc8 R08: 0000000001080020 R09: 0000000000000002
R10: 000000099a740380 R11: ffffffff89fef830 R12: ffffffff8ac0fe2f
R13: ffffffff8ac372c0 R14: ffffffff8ac0fe2c R15: ffffffff8ac37b98
 arch_cpu_idle+0x26/0x30 arch/x86/kernel/process.c:491
 default_idle_call kernel/sched/idle.c:93 [inline]
 cpuidle_idle_call kernel/sched/idle.c:153 [inline]
 do_idle+0x36d/0x830 kernel/sched/idle.c:262
 cpu_startup_entry+0x45/0x50 kernel/sched/idle.c:368
 rest_init+0x1c1/0x1f0 init/main.c:443
 start_kernel+0x1110/0x1120 init/main.c:740
 x86_64_start_reservations arch/x86/kernel/head64.c:453 [inline]
 x86_64_start_kernel+0xe4/0xf0 arch/x86/kernel/head64.c:434
 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:242
Code: 75 29 48 c7 c7 59 38 97 8a 31 c0 e8 ad 4e 80 ff 80 3c 25 f8 93 53 8b 00 75 11 48 c7 c7 89 38 97 8a 31 c0 4c 89 fe e8 92 4e 80 ff <0f> 0b eb fe 48 3d ff ff ff 1f 0f 87 a2 fe ff ff 48 8b 1c 25 10 
RIP: kmsan_get_shadow_address+0x1ce/0x1f0 mm/kmsan/kmsan.c:1377 RSP: ffff88021fc0eee8
---[ end trace 3bf66dda5e270b3b ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/08 19:10 https://github.com/google/kmsan.git master d6c351f832e3 866118af .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.