syzbot


upstream boot error: WARNING: refcount bug in __reset_page_owner

Status: fixed on 2024/05/22 23:46
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+41bbfdb8d41003d12c0f@syzkaller.appspotmail.com
Fix commit: f5c12105c15f mm,page_owner: fix refcount imbalance
First crash: 204d, last: 169d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH v4 2/4] mm,page_owner: Fix refcount imbalance 5 (5) 2024/05/06 16:30
[syzbot] [mm?] upstream boot error: WARNING: refcount bug in __reset_page_owner 2 (3) 2024/04/20 09:22
[PATCH v3 2/3] mm,page_owner: Fix refcount imbalance 1 (1) 2024/03/26 06:30
[PATCH v2 1/2] mm,page_owner: Fix refcount imbalance 8 (8) 2024/03/21 10:36

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: 1 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0x1ed/0x210 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+0x1ed/0x210 lib/refcount.c:31
Code: 8b e8 37 a4 d0 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 98 35 0e fd c6 05 e5 3b 09 0b 01 90 48 c7 c7 40 f4 6e 8b e8 14 a4 d0 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 02 59 69 fd e9 44 fe ff ff
RSP: 0000:ffffc900000673c0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81503349
RDX: ffff888016ac0000 RSI: ffffffff81503356 RDI: 0000000000000001
RBP: ffff8881476a2e3c R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff8881476a2e3c
R13: 0000000000000000 R14: 0000000005c400b9 R15: ffff888140652d88
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000000d57a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __refcount_dec include/linux/refcount.h:336 [inline]
 refcount_dec include/linux/refcount.h:351 [inline]
 dec_stack_record_count mm/page_owner.c:228 [inline]
 __reset_page_owner+0x2ea/0x370 mm/page_owner.c:266
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1141 [inline]
 __free_pages_ok+0x5a9/0xbf0 mm/page_alloc.c:1270
 make_alloc_exact+0x165/0x260 mm/page_alloc.c:4829
 vring_alloc_queue drivers/virtio/virtio_ring.c:319 [inline]
 vring_alloc_queue+0xc1/0x110 drivers/virtio/virtio_ring.c:311
 vring_alloc_queue_split+0x186/0x510 drivers/virtio/virtio_ring.c:1108
 vring_create_virtqueue_split+0xe8/0x280 drivers/virtio/virtio_ring.c:1158
 vring_create_virtqueue+0xd7/0x140 drivers/virtio/virtio_ring.c:2683
 setup_vq+0x123/0x2f0 drivers/virtio/virtio_pci_legacy.c:131
 vp_setup_vq+0xb1/0x380 drivers/virtio/virtio_pci_common.c:189
 vp_find_vqs_msix+0x661/0xe30 drivers/virtio/virtio_pci_common.c:331
 vp_find_vqs+0x58/0x560 drivers/virtio/virtio_pci_common.c:408
 virtio_find_vqs include/linux/virtio_config.h:233 [inline]
 virtscsi_init+0x459/0x9f0 drivers/scsi/virtio_scsi.c:887
 virtscsi_probe+0x3b2/0xdd0 drivers/scsi/virtio_scsi.c:945
 virtio_dev_probe+0x5ff/0x9b0 drivers/virtio/virtio.c:311
 call_driver_probe drivers/base/dd.c:578 [inline]
 really_probe+0x23e/0xa90 drivers/base/dd.c:656
 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:798
 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:828
 __driver_attach+0x283/0x580 drivers/base/dd.c:1214
 bus_for_each_dev+0x13c/0x1d0 drivers/base/bus.c:368
 bus_add_driver+0x2ed/0x640 drivers/base/bus.c:673
 driver_register+0x15c/0x4b0 drivers/base/driver.c:246
 virtio_scsi_init+0x77/0x100 drivers/scsi/virtio_scsi.c:1083
 do_one_initcall+0x128/0x700 init/main.c:1243
 do_initcall_level init/main.c:1305 [inline]
 do_initcalls init/main.c:1321 [inline]
 do_basic_setup init/main.c:1340 [inline]
 kernel_init_freeable+0x69d/0xca0 init/main.c:1553
 kernel_init+0x1c/0x2b0 init/main.c:1442
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (555):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/19 02:14 upstream 2668e3ae2ef3 af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/19 01:04 upstream 2668e3ae2ef3 af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/18 20:48 upstream 360a348fd7fe af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/18 13:39 upstream 8cd26fd90c1a af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/18 08:39 upstream 8cd26fd90c1a af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/18 06:07 upstream 8cd26fd90c1a bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/18 04:23 upstream 8cd26fd90c1a bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/17 23:56 upstream 4b6b51322118 bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/17 22:47 upstream 4b6b51322118 bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/17 19:46 upstream 96fca68c4fbf bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/17 18:37 upstream 96fca68c4fbf bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/17 18:37 upstream 96fca68c4fbf bd38b692 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/17 00:50 upstream 96fca68c4fbf 18f6e127 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/16 23:41 upstream 96fca68c4fbf 18f6e127 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/16 05:50 upstream 96fca68c4fbf 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/16 03:35 upstream 96fca68c4fbf 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/16 01:48 upstream cef27048e5c2 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/15 22:45 upstream 0bbac3facb5d 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/15 20:27 upstream 0bbac3facb5d 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/15 20:27 upstream 0bbac3facb5d 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/15 02:28 upstream 0bbac3facb5d c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/14 22:30 upstream 72374d71c315 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/14 18:42 upstream 399f4dae683a c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/13 23:58 upstream 7efd0a74039f c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/13 19:25 upstream fa4022cb7361 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/13 05:00 upstream 8f2c057754b2 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/13 03:05 upstream 8f2c057754b2 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/12 19:34 upstream 5939d45155bb 27de0a5c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/12 19:34 upstream 5939d45155bb 27de0a5c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/12 17:23 upstream 5939d45155bb 27de0a5c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/12 09:52 upstream 586b5dfb51b9 27de0a5c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/12 05:00 upstream 586b5dfb51b9 478efa7f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/11 21:09 upstream 00dcf5d862e8 478efa7f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/11 15:49 upstream e8c39d0f57f3 478efa7f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/11 15:48 upstream e8c39d0f57f3 478efa7f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/11 13:44 upstream e8c39d0f57f3 478efa7f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/11 08:20 upstream e8c39d0f57f3 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/11 03:42 upstream 9875c0beb8ad 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/11 00:43 upstream a6189a740779 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/10 22:27 upstream 2c71fdf02a95 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/10 19:29 upstream 2c71fdf02a95 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/09 23:26 upstream 2c71fdf02a95 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/09 21:35 upstream 2c71fdf02a95 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/09 18:30 upstream 20cb38a7af88 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/09 15:59 upstream 20cb38a7af88 56086b24 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/04/09 02:30 upstream 20cb38a7af88 53df08b6 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/03/18 03:31 upstream f6cef5f8c37f d615901c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream boot error: WARNING: refcount bug in __reset_page_owner
2024/03/15 09:15 upstream e5eb28f6d1af d615901c .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream boot error: WARNING: refcount bug in __reset_page_owner
* Struck through repros no longer work on HEAD.