syzbot


net boot error: WARNING: refcount bug in __free_pages_ok

Status: upstream: reported on 2024/03/26 22:38
Subsystems: virt
[Documentation on labels]
Reported-by: syzbot+84f677a274bd8b05f6cb@syzkaller.appspotmail.com
Fix commit: mm,page_owner: Fix refcount imbalance
Patched on: [], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce ci2-upstream-usb]
First crash: 24d, last: 5h23m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [virtualization?] net boot error: WARNING: refcount bug in __free_pages_ok 1 (2) 2024/03/27 00:24

Sample crash report:
Key type pkcs7_test registered
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 239)
io scheduler mq-deadline registered
io scheduler kyber registered
io scheduler bfq registered
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: button: Power Button [PWRF]
input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
ACPI: button: Sleep Button [SLPF]
ioatdma: Intel(R) QuickData Technology Driver 5.00
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=118)
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.
virtio_scsi virtio0: 1/0/0 default/read/poll queues
------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 0 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:31
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc3-syzkaller-00214-ge226eade8f50 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:31
Code: b2 00 00 00 e8 27 9f e7 fc 5b 5d c3 cc cc cc cc e8 1b 9f e7 fc c6 05 6c 0c e5 0a 01 90 48 c7 c7 c0 30 1f 8c e8 37 1b aa fc 90 <0f> 0b 90 90 eb d9 e8 fb 9e e7 fc c6 05 49 0c e5 0a 01 90 48 c7 c7
RSP: 0000:ffffc90000066e18 EFLAGS: 00010246
RAX: 092aa88ba0cb1300 RBX: ffff8881436f4e6c RCX: ffff8880166d0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000004 R08: ffffffff815880a2 R09: fffffbfff1c39b48
R10: dffffc0000000000 R11: fffffbfff1c39b48 R12: ffffea0000863dc0
R13: ffffea0000863dc8 R14: 1ffffd400010c7b9 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff88823ffff000 CR3: 000000000e134000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1141 [inline]
 __free_pages_ok+0xc60/0xd90 mm/page_alloc.c:1270
 make_alloc_exact+0xa3/0xf0 mm/page_alloc.c:4829
 vring_alloc_queue drivers/virtio/virtio_ring.c:319 [inline]
 vring_alloc_queue_split+0x20a/0x600 drivers/virtio/virtio_ring.c:1108
 vring_create_virtqueue_split+0xc6/0x310 drivers/virtio/virtio_ring.c:1158
 vring_create_virtqueue+0xca/0x110 drivers/virtio/virtio_ring.c:2683
 setup_vq+0xe9/0x2d0 drivers/virtio/virtio_pci_legacy.c:131
 vp_setup_vq+0xbf/0x330 drivers/virtio/virtio_pci_common.c:189
 vp_find_vqs_msix+0x8b2/0xc80 drivers/virtio/virtio_pci_common.c:331
 vp_find_vqs+0x4c/0x4e0 drivers/virtio/virtio_pci_common.c:408
 virtio_find_vqs include/linux/virtio_config.h:233 [inline]
 virtscsi_init+0x8db/0xd00 drivers/scsi/virtio_scsi.c:887
 virtscsi_probe+0x3ea/0xf60 drivers/scsi/virtio_scsi.c:945
 virtio_dev_probe+0x991/0xaf0 drivers/virtio/virtio.c:311
 really_probe+0x2b8/0xad0 drivers/base/dd.c:656
 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:798
 driver_probe_device+0x50/0x430 drivers/base/dd.c:828
 __driver_attach+0x45f/0x710 drivers/base/dd.c:1214
 bus_for_each_dev+0x239/0x2b0 drivers/base/bus.c:368
 bus_add_driver+0x347/0x620 drivers/base/bus.c:673
 driver_register+0x23a/0x320 drivers/base/driver.c:246
 virtio_scsi_init+0x65/0xe0 drivers/scsi/virtio_scsi.c:1083
 do_one_initcall+0x248/0x880 init/main.c:1243
 do_initcall_level+0x157/0x210 init/main.c:1305
 do_initcalls+0x3f/0x80 init/main.c:1321
 kernel_init_freeable+0x435/0x5d0 init/main.c:1553
 kernel_init+0x1d/0x2b0 init/main.c:1442
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (198):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/16 14:15 net e226eade8f50 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/16 12:46 net 24f4c99e0035 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 22:09 net 75ce9506ee3d 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 11:59 net 75ce9506ee3d c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 10:27 net 460b0d33cf10 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/14 16:52 net 1382e3b6a350 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/13 08:17 net 72041e537caa c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/13 06:33 net 68aba00483c7 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/13 01:20 net 90be7a5ce0e5 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/12 13:51 net 90be7a5ce0e5 27de0a5c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/12 08:05 net 2ae9a8972ce0 27de0a5c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/11 23:52 net 2ae9a8972ce0 478efa7f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/11 16:26 net 4e1ad31ce320 478efa7f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/11 16:26 net 4e1ad31ce320 478efa7f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/11 05:17 net 06dfcd4098cf 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/10 20:04 net 19fa4f2a85d7 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/10 10:36 net 19fa4f2a85d7 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/10 08:59 net 81665adf25d2 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/10 03:07 net 7633c4da919a 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/09 20:21 net cf1b7201df59 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/09 14:01 net faf23006185e 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/09 14:01 net faf23006185e 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/09 04:42 net b46f4eaa4f0e 53df08b6 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/08 21:11 net 7e68708b91da 53df08b6 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/08 15:09 net 7e68708b91da ca620dd8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/08 13:51 net 49563be82afa ca620dd8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/08 12:34 net 58effa347653 ca620dd8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/08 11:17 net e9d47b7b3156 ca620dd8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/07 15:40 net bccb798e07f8 ca620dd8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/06 12:02 net 237f3cf13b20 ca620dd8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/06 06:34 net c88b9b4cde17 ca620dd8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/05 18:36 net c88b9b4cde17 18ea8213 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/05 14:14 net c88b9b4cde17 77230c29 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/05 04:20 net c88b9b4cde17 0ee3535e .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/04 23:00 net 1cfa2f10f4e9 0ee3535e .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/04 23:00 net 1cfa2f10f4e9 0ee3535e .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/04 19:21 net 2e91bb99b9d4 0ee3535e .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/04 11:40 net 72076fc9fe60 51c4dcff .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/04 09:19 net c0de6ab920aa 51c4dcff .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/04 05:49 net 0a6380cb4c6b 51c4dcff .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/03 13:36 net 0a6380cb4c6b fed899ed .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/03 05:04 net b32a09ea7c38 7925100d .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/03 05:03 net b32a09ea7c38 7925100d .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/02 22:41 net ea2a1cfc3b20 7925100d .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/02 06:52 net ea2a1cfc3b20 6baf5069 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/04/02 05:21 net fcf4692fa39e 6baf5069 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/03/30 13:00 net 365af7ace014 6baf5069 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/03/26 21:37 net c1fd3a9433a2 454571b6 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
2024/03/22 22:32 net d24b03535e5e 7a239ce7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net boot error: WARNING: refcount bug in __free_pages_ok
* Struck through repros no longer work on HEAD.