syzbot


upstream boot error: WARNING: refcount bug in __free_pages_ok

Status: fixed on 2024/05/22 23:46
Subsystems: virt
[Documentation on labels]
Reported-by: syzbot+70f57d8a3ae84934c003@syzkaller.appspotmail.com
Fix commit: f5c12105c15f mm,page_owner: fix refcount imbalance
First crash: 272d, last: 238d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [virtualization?] upstream boot error: WARNING: refcount bug in __free_pages_ok 10 (14) 2024/04/20 09:22
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/03/21 12:07 21m stefanha@redhat.com git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 217b2119b9e260609958db413876f211038f00ee error
2024/03/20 11:30 15m stefanha@redhat.com git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4bedfb314bdd85c1662ecc46fa25b33b998f994d OK
2024/03/19 18:59 8h54m stefanha@redhat.com git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 52998cdd8d3438df9a77c858a827b8932da1bb28 OK

Sample crash report:
Asymmetric key parser 'pkcs8' registered
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
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: 1 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:31
Modules linked in:
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc4-syzkaller-00113-g2668e3ae2ef3 #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 87 04 e7 fc 5b 5d e9 d0 ad db 06 e8 7b 04 e7 fc c6 05 59 7e e4 0a 01 90 48 c7 c7 80 33 1f 8c e8 e7 80 a9 fc 90 <0f> 0b 90 90 eb d9 e8 5b 04 e7 fc c6 05 36 7e e4 0a 01 90 48 c7 c7
RSP: 0018:ffffc90000066e18 EFLAGS: 00010246
RAX: e1c9ee813b9cb500 RBX: ffff88814076e99c RCX: ffff8880166c8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000004 R08: ffffffff815880a2 R09: fffffbfff1c39b48
R10: dffffc0000000000 R11: fffffbfff1c39b48 R12: ffffea0000848dc0
R13: ffffea0000848dc8 R14: 1ffffd40001091b9 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000000e134000 CR4: 0000000000350ef0
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+0xc1/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+0x8dd/0xd00 drivers/scsi/virtio_scsi.c:887
 virtscsi_probe+0x3ea/0xf60 drivers/scsi/virtio_scsi.c:945
 virtio_dev_probe+0x993/0xaf0 drivers/virtio/virtio.c:311
 really_probe+0x2ba/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+0x23b/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+0x69/0xe0 drivers/scsi/virtio_scsi.c:1083
 do_one_initcall+0x24a/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+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (1463):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/19 00:27 upstream 2668e3ae2ef3 af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 23:50 upstream 2668e3ae2ef3 af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 22:41 upstream 2668e3ae2ef3 af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 19:57 upstream 2668e3ae2ef3 af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 18:16 upstream 360a348fd7fe af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 12:29 upstream 8cd26fd90c1a af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 10:47 upstream 8cd26fd90c1a af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 08:27 upstream 8cd26fd90c1a af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 08:27 upstream 8cd26fd90c1a af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 03:47 upstream 8cd26fd90c1a bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 02:28 upstream 8cd26fd90c1a acc528cb .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 00:30 upstream 4b6b51322118 bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/17 23:21 upstream 4b6b51322118 bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/17 21:28 upstream 4b6b51322118 bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/17 20:20 upstream 96fca68c4fbf bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/17 18:12 upstream 4b6b51322118 acc528cb .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/17 18:12 upstream 4b6b51322118 acc528cb .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/17 16:57 upstream 96fca68c4fbf bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/17 15:19 upstream 96fca68c4fbf acc528cb .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/17 00:14 upstream 96fca68c4fbf 18f6e127 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/16 22:32 upstream 96fca68c4fbf 18f6e127 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/16 17:06 upstream 96fca68c4fbf 18f6e127 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/16 17:05 upstream 96fca68c4fbf 18f6e127 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/16 04:09 upstream 96fca68c4fbf 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/16 02:57 upstream cef27048e5c2 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 23:08 upstream 96fca68c4fbf b9af7e61 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 21:36 upstream 0bbac3facb5d 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 20:34 upstream cef27048e5c2 b9af7e61 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 20:34 upstream cef27048e5c2 b9af7e61 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 13:40 upstream 0bbac3facb5d b9af7e61 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 04:08 upstream 0bbac3facb5d c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/14 23:51 upstream 72374d71c315 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/14 21:53 upstream 72374d71c315 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/14 19:40 upstream 72374d71c315 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/14 18:08 upstream 399f4dae683a c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/14 18:03 upstream 399f4dae683a c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/13 22:39 upstream 7efd0a74039f c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/03/21 09:42 upstream 23956900041d 6753db5c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/03/20 07:20 upstream a4145ce1e7bc a485f239 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/03/19 17:16 upstream d95fcdf4961d baa80228 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/03/19 04:59 upstream b3603fcb79b1 baa80228 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/03/15 07:26 upstream e5eb28f6d1af d615901c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 18:54 upstream 360a348fd7fe af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 04:57 upstream 8cd26fd90c1a bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/18 01:24 upstream 4b6b51322118 bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/16 21:25 upstream 96fca68c4fbf 18f6e127 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/16 06:23 upstream 96fca68c4fbf 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/16 02:22 upstream cef27048e5c2 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/15 01:15 upstream 0bbac3facb5d c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/14 21:15 upstream 399f4dae683a c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream boot error: WARNING: refcount bug in __free_pages_ok
2024/04/14 01:16 upstream 7efd0a74039f c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream boot error: WARNING: refcount bug in __free_pages_ok
* Struck through repros no longer work on HEAD.