syzbot


upstream boot error: general protection fault in netdev_queue_update_kobjects

Status: upstream: reported on 2022/08/16 08:35
Reported-by: syzbot+519ff9362a883a7a4865@syzkaller.appspotmail.com
First crash: 52d, last: 47d

Sample crash report:
input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
ACPI: button: Sleep Button [SLPF]
ACPI: \_SB_.LNKC: Enabled at IRQ 11
virtio-pci 0000:00:03.0: virtio_pci: leaving for legacy driver
ACPI: \_SB_.LNKD: Enabled at IRQ 10
virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver
ACPI: \_SB_.LNKB: Enabled at IRQ 10
virtio-pci 0000:00:06.0: virtio_pci: leaving for legacy driver
virtio-pci 0000:00:07.0: virtio_pci: leaving for legacy driver
N_HDLC line discipline registered with maxframe=4096
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
00:05: ttyS2 at I/O 0x3e8 (irq = 6, base_baud = 115200) is a 16550A
00:06: ttyS3 at I/O 0x2e8 (irq = 7, base_baud = 115200) is a 16550A
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
ACPI: bus type drm_connector registered
[drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[drm] Initialized vkms 1.0.0 20180514 for vkms on minor 1
Console: switching to colour frame buffer device 128x48
platform vkms: [drm] fb0: vkmsdrmfb frame buffer device
usbcore: registered new interface driver udl
brd: module loaded
loop: module loaded
zram: Added device: zram0
null_blk: disk nullb0 created
null_blk: module loaded
Guest personality initialized and is inactive
VMCI host device registered (name=vmci, major=10, minor=120)
Initialized host personality
usbcore: registered new interface driver rtsx_usb
usbcore: registered new interface driver viperboard
usbcore: registered new interface driver dln2
usbcore: registered new interface driver pn533_usb
nfcsim 0.2 initialized
usbcore: registered new interface driver port100
usbcore: registered new interface driver nfcmrvl
Loading iSCSI transport class v2.0-870.
scsi host0: Virtio SCSI HBA
st: Version 20160209, fixed bufsize 32768, s/g segs 256
Rounding down aligned max_sectors from 4294967295 to 4294967288
db_root: cannot open: /etc/target
slram: not enough parameters.
ftl_cs: FTL header not found.
wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
eql: Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)
MACsec IEEE 802.1AE
tun: Universal TUN/TAP device driver, 1.6
general protection fault, probably for non-canonical address 0xffff000000000800: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0xfff8200000004000-0xfff8200000004007]
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.0.0-rc1-syzkaller-00017-g3cc40a443a04 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:freelist_dereference mm/slub.c:347 [inline]
RIP: 0010:get_freepointer mm/slub.c:354 [inline]
RIP: 0010:get_freepointer_safe mm/slub.c:368 [inline]
RIP: 0010:slab_alloc_node mm/slub.c:3211 [inline]
RIP: 0010:slab_alloc mm/slub.c:3251 [inline]
RIP: 0010:kmem_cache_alloc_trace+0x164/0x3e0 mm/slub.c:3282
Code: 8b 51 08 48 8b 01 48 83 79 10 00 48 89 44 24 08 0f 84 bf 01 00 00 48 85 c0 0f 84 b6 01 00 00 48 8b 7d 00 8b 4d 28 40 f6 c7 0f <48> 8b 1c 08 0f 85 c2 01 00 00 48 8d 4a 08 65 48 0f c7 0f 0f 94 c0
RSP: 0000:ffffc90000067810 EFLAGS: 00010246
RAX: ffff000000000000 RBX: 0000000000000000 RCX: 0000000000000800
RDX: 0000000000003268 RSI: 0000000000000dc0 RDI: 000000000003dce0
RBP: ffff888011842140 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000dc0 R14: 0000000000000a20 R15: 0000000000000dc0
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff88823ffff000 CR3: 000000000bc8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kmalloc include/linux/slab.h:600 [inline]
 kzalloc include/linux/slab.h:733 [inline]
 kobject_uevent_env+0x230/0x1640 lib/kobject_uevent.c:524
 netdev_queue_add_kobject net/core/net-sysfs.c:1677 [inline]
 netdev_queue_update_kobjects+0x3d1/0x4e0 net/core/net-sysfs.c:1718
 register_queue_kobjects net/core/net-sysfs.c:1779 [inline]
 netdev_register_kobject+0x330/0x400 net/core/net-sysfs.c:2019
 register_netdevice+0xe01/0x1680 net/core/dev.c:10070
 virtnet_probe+0x1378/0x2f30 drivers/net/virtio_net.c:3929
 virtio_dev_probe+0x577/0x870 drivers/virtio/virtio.c:305
 call_driver_probe drivers/base/dd.c:530 [inline]
 really_probe+0x249/0xb90 drivers/base/dd.c:609
 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:748
 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:778
 __driver_attach+0x223/0x550 drivers/base/dd.c:1150
 bus_for_each_dev+0x147/0x1d0 drivers/base/bus.c:301
 bus_add_driver+0x4c9/0x640 drivers/base/bus.c:618
 driver_register+0x220/0x3a0 drivers/base/driver.c:240
 virtio_net_driver_init+0x93/0xd2 drivers/net/virtio_net.c:4108
 do_one_initcall+0xfe/0x650 init/main.c:1296
 do_initcall_level init/main.c:1369 [inline]
 do_initcalls init/main.c:1385 [inline]
 do_basic_setup init/main.c:1404 [inline]
 kernel_init_freeable+0x6b1/0x73a init/main.c:1611
 kernel_init+0x1a/0x1d0 init/main.c:1500
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Modules linked in:
----------------
Code disassembly (best guess):
   0:	8b 51 08             	mov    0x8(%rcx),%edx
   3:	48 8b 01             	mov    (%rcx),%rax
   6:	48 83 79 10 00       	cmpq   $0x0,0x10(%rcx)
   b:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
  10:	0f 84 bf 01 00 00    	je     0x1d5
  16:	48 85 c0             	test   %rax,%rax
  19:	0f 84 b6 01 00 00    	je     0x1d5
  1f:	48 8b 7d 00          	mov    0x0(%rbp),%rdi
  23:	8b 4d 28             	mov    0x28(%rbp),%ecx
  26:	40 f6 c7 0f          	test   $0xf,%dil
* 2a:	48 8b 1c 08          	mov    (%rax,%rcx,1),%rbx <-- trapping instruction
  2e:	0f 85 c2 01 00 00    	jne    0x1f6
  34:	48 8d 4a 08          	lea    0x8(%rdx),%rcx
  38:	65 48 0f c7 0f       	cmpxchg16b %gs:(%rdi)
  3d:	0f 94 c0             	sete   %al

Crashes (26):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/08/17 04:23 upstream 3cc40a443a04 4e72d229 .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-smack-root 2022/08/17 03:19 upstream 3cc40a443a04 4e72d229 .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-root 2022/08/17 01:43 upstream 3cc40a443a04 7a7cb304 .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/17 01:26 upstream 3cc40a443a04 7a7cb304 .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/15 09:06 upstream 568035b01cfb 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-smack-root 2022/08/15 08:32 upstream 568035b01cfb 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/15 07:10 upstream 9f162193d6e4 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-root 2022/08/15 06:53 upstream 9f162193d6e4 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-root 2022/08/15 06:53 upstream 9f162193d6e4 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-root 2022/08/14 21:30 upstream 5d6a0f4da927 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/14 20:07 upstream 5d6a0f4da927 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-smack-root 2022/08/14 06:12 upstream aea23e7c464b 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/14 05:54 upstream aea23e7c464b 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/14 04:15 upstream f6eb0fed6a39 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-root 2022/08/14 03:25 upstream f6eb0fed6a39 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/13 03:23 upstream 69dac8e431af 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/13 03:23 upstream 69dac8e431af 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-root 2022/08/13 01:37 upstream 4a9350597aff 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-smack-root 2022/08/13 00:17 upstream 4a9350597aff 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-root 2022/08/12 23:22 upstream 4a9350597aff 402cd70d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/12 22:41 upstream 4a9350597aff 402cd70d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce 2022/08/12 22:41 upstream 4a9350597aff 402cd70d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-386 2022/08/15 08:00 upstream 568035b01cfb 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-386 2022/08/14 05:20 upstream aea23e7c464b 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-386 2022/08/13 03:40 upstream 69dac8e431af 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
ci-upstream-kasan-gce-386 2022/08/13 02:02 upstream 4a9350597aff 8dfcaa3d .config log report upstream boot error: general protection fault in netdev_queue_update_kobjects
* Struck through repros no longer work on HEAD.