syzbot


general protection fault in receive_buf

Status: auto-closed as invalid on 2021/07/03 00:24
Subsystems: net virt
[Documentation on labels]
First crash: 1095d, last: 1086d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: use-after-free Read in receive_buf (2) net virt 1 356d 356d 0/26 auto-obsoleted due to no activity on 2023/09/20 11:49
upstream KASAN: use-after-free Read in receive_buf kernel 1 440d 440d 0/26 closed as invalid on 2023/02/08 20:19

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffd2c1ffffd41: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x00000960ffffea08-0x00000960ffffea0f]
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.12.0-rc8-next-20210423-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:receive_mergeable drivers/net/virtio_net.c:865 [inline]
RIP: 0010:receive_buf+0xc5c/0x6250 drivers/net/virtio_net.c:1122
Code: 48 89 9c 24 c8 00 00 00 44 89 a4 24 b8 00 00 00 48 8d 48 0a 48 b8 00 00 00 00 00 fc ff df 48 89 ca 48 89 4c 24 70 48 c1 ea 03 <0f> b6 14 02 48 89 c8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 ba
RSP: 0018:ffffc90000007ad8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 000000000000464e RCX: 00000960ffffea0a
RDX: 0000012c1ffffd41 RSI: ffffffff84c2a09d RDI: 0000000000000003
RBP: ffff88801cd94c00 R08: 000000000000001a R09: 0000000000000001
R10: ffffffff84c295d7 R11: 0000000000000000 R12: 000000000000022e
R13: 000000000000000c R14: 0000000000000001 R15: ffff88801cd94c10
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000453680 CR3: 0000000015695000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 virtnet_receive drivers/net/virtio_net.c:1414 [inline]
 virtnet_poll+0x58a/0x1180 drivers/net/virtio_net.c:1521
 __napi_poll+0xaf/0x440 net/core/dev.c:6966
 napi_poll net/core/dev.c:7033 [inline]
 net_rx_action+0x801/0xb40 net/core/dev.c:7120
 __do_softirq+0x29b/0x9fe kernel/softirq.c:559
 invoke_softirq kernel/softirq.c:433 [inline]
 __irq_exit_rcu+0x136/0x200 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 common_interrupt+0xa4/0xd0 arch/x86/kernel/irq.c:240
 </IRQ>
 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:623
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:132 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:109 [inline]
RIP: 0010:acpi_idle_do_entry+0x1c9/0x250 drivers/acpi/processor_idle.c:513
Code: fd 2a 5e f8 84 db 75 ac e8 44 24 5e f8 e8 6f 35 64 f8 e9 0c 00 00 00 e8 35 24 5e f8 0f 00 2d 3e 60 b7 00 e8 29 24 5e f8 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 34 2c 5e f8 48 85 db
RSP: 0018:ffffffff8bc07d60 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffffffff8bcbc540 RSI: ffffffff8916d547 RDI: 0000000000000000
RBP: ffff888140f74864 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff817b0ad8 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888140f74800 R14: ffff888140f74864 R15: ffff88801985a804
 acpi_idle_enter+0x361/0x500 drivers/acpi/processor_idle.c:648
 cpuidle_enter_state+0x1b1/0xc80 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x3e8/0x590 kernel/sched/idle.c:306
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:403
 start_kernel+0x47a/0x49b init/main.c:1089
 secondary_startup_64_no_verify+0xb0/0xbb
Modules linked in:
---[ end trace 6969b58dea6849bf ]---
RIP: 0010:receive_mergeable drivers/net/virtio_net.c:865 [inline]
RIP: 0010:receive_buf+0xc5c/0x6250 drivers/net/virtio_net.c:1122
Code: 48 89 9c 24 c8 00 00 00 44 89 a4 24 b8 00 00 00 48 8d 48 0a 48 b8 00 00 00 00 00 fc ff df 48 89 ca 48 89 4c 24 70 48 c1 ea 03 <0f> b6 14 02 48 89 c8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 ba
RSP: 0018:ffffc90000007ad8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 000000000000464e RCX: 00000960ffffea0a
RDX: 0000012c1ffffd41 RSI: ffffffff84c2a09d RDI: 0000000000000003
RBP: ffff88801cd94c00 R08: 000000000000001a R09: 0000000000000001
R10: ffffffff84c295d7 R11: 0000000000000000 R12: 000000000000022e
R13: 000000000000000c R14: 0000000000000001 R15: ffff88801cd94c10
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000453680 CR3: 0000000015695000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/04 00:20 linux-next e3d35712f85a ad61f371 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in receive_buf
2021/04/24 07:15 linux-next e3d35712f85a 17f0b706 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in receive_buf
* Struck through repros no longer work on HEAD.