syzbot


usb-testing boot error: WARNING: refcount bug in __reset_page_owner

Status: upstream: reported on 2024/03/26 08:25
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+73c1dfb19c10b7e49777@syzkaller.appspotmail.com
Fix commit: f5c12105c15f mm,page_owner: fix refcount imbalance
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte 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 ci2-upstream-fs ci2-upstream-kcsan-gce], missing on: [ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-net-next-test-gce ci2-upstream-usb]
First crash: 30d, last: 2d17h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] usb-testing boot error: WARNING: refcount bug in __reset_page_owner 3 (4) 2024/04/20 09:28

Sample crash report:
ACPI: PCI: Interrupt link LNKB configured for IRQ 10
ACPI: PCI: Interrupt link LNKC configured for IRQ 11
ACPI: PCI: Interrupt link LNKD configured for IRQ 11
ACPI: PCI: Interrupt link LNKS configured for IRQ 9
iommu: Default domain type: Translated
iommu: DMA domain TLB invalidation policy: lazy mode
SCSI subsystem initialized
ACPI: bus type USB registered
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
mc: Linux media interface: v0.10
videodev: Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
NET: Registered PF_BLUETOOTH protocol family
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
NET: Registered PF_ATMPVC protocol family
NET: Registered PF_ATMSVC protocol family
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
NetLabel:  unlabeled traffic allowed by default
nfc: nfc_init: NFC Core ver 0.1
NET: Registered PF_NFC protocol family
PCI: Using ACPI for IRQ routing
pci 0000:00:05.0: vgaarb: setting as boot VGA device
pci 0000:00:05.0: vgaarb: bridge control possible
pci 0000:00:05.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
clocksource: Switched to clocksource kvm-clock
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
TOMOYO: 2.6.0
Mandatory Access Control activated.
AppArmor: AppArmor Filesystem Enabled
pnp: PnP ACPI init
pnp: PnP ACPI: found 7 devices
clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
NET: Registered PF_INET protocol family
IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 0 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0x1ed/0x210 lib/refcount.c:31
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc2-syzkaller-00092-g684e9f5f97eb #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: 86 e8 07 3d ca fe 90 0f 0b 90 90 e9 c3 fe ff ff e8 c8 0b 04 ff c6 05 f3 83 3f 07 01 90 48 c7 c7 00 2c e7 86 e8 e4 3c ca fe 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 f2 df 55 ff e9 44 fe ff ff
RSP: 0000:ffffc9000001fba0 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8118c1a9
RDX: ffff8881012b0000 RSI: ffffffff8118c1b6 RDI: 0000000000000001
RBP: ffff888106ad001c R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888106ad001c
R13: 0000000000000000 R14: 0000000000000059 R15: ffff888106679f28
FS:  0000000000000000(0000) GS:ffff8881f6400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff88823ffff000 CR3: 000000000829e000 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+0x5d0/0xbd0 mm/page_alloc.c:1270
 make_alloc_exact+0x165/0x260 mm/page_alloc.c:4829
 alloc_large_system_hash+0x4e0/0x640 mm/mm_init.c:2530
 inet_hashinfo2_init+0x4b/0xd0 net/ipv4/inet_hashtables.c:1193
 tcp_init+0xba/0x9f0 net/ipv4/tcp.c:4710
 inet_init+0x419/0x6f0 net/ipv4/af_inet.c:2029
 do_one_initcall+0x128/0x700 init/main.c:1238
 do_initcall_level init/main.c:1300 [inline]
 do_initcalls init/main.c:1316 [inline]
 do_basic_setup init/main.c:1335 [inline]
 kernel_init_freeable+0x69d/0xca0 init/main.c:1548
 kernel_init+0x1c/0x2b0 init/main.c:1437
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243
 </TASK>

Crashes (120):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/18 15:37 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 684e9f5f97eb af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/18 08:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d122e6d27e4 af24b050 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/17 14:48 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d122e6d27e4 acc528cb .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/16 16:36 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d122e6d27e4 18f6e127 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/16 03:28 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d122e6d27e4 0d592ce4 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/15 13:10 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d122e6d27e4 b9af7e61 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/12 15:29 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d122e6d27e4 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/12 15:29 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d122e6d27e4 c8349e48 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/12 03:10 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d122e6d27e4 27de0a5c .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/11 13:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d122e6d27e4 33b9e058 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/11 02:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 1a395af9d53c 33b9e058 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/10 12:19 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 1a395af9d53c 4320ec32 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/09 19:44 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 1a395af9d53c 171ec371 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/09 16:16 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 1a395af9d53c f3234354 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/09 16:16 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 1a395af9d53c f3234354 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/09 02:37 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3295f1b866bf f3234354 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/08 12:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3295f1b866bf 53df08b6 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/06 02:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3295f1b866bf ca620dd8 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/05 12:55 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3295f1b866bf 77230c29 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/04 15:54 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3295f1b866bf 0ee3535e .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/04 13:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5bab5dc780c9 0ee3535e .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/04 10:03 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5bab5dc780c9 0ee3535e .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/03 16:23 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5bab5dc780c9 51c4dcff .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/03 02:42 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5bab5dc780c9 7925100d .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/02 14:11 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5bab5dc780c9 eb2966c4 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/04/01 15:29 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5bab5dc780c9 6baf5069 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/30 02:05 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a 6baf5069 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/29 04:59 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a c52bcb23 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/29 04:59 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a c52bcb23 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/28 13:57 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a e91187ee .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/28 13:57 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a e91187ee .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/28 13:57 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a e91187ee .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/27 20:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a 120789fd .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/27 20:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a 120789fd .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/27 20:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a 120789fd .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/27 07:51 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a 454571b6 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/27 07:51 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a 454571b6 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/27 07:51 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ef83531c8e4a 454571b6 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 19:49 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e589e59202d 454571b6 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 19:49 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e589e59202d 454571b6 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 19:49 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e589e59202d 454571b6 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 16:29 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e589e59202d bcd9b39f .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 16:29 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e589e59202d bcd9b39f .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 16:29 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e589e59202d bcd9b39f .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 10:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 7713350c9d55 bcd9b39f .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 10:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 7713350c9d55 bcd9b39f .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 10:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 7713350c9d55 bcd9b39f .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 00:53 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 4cece7649650 bcd9b39f .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/26 00:53 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 4cece7649650 bcd9b39f .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
2024/03/22 08:18 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 8e938e398669 7a239ce7 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-usb usb-testing boot error: WARNING: refcount bug in __reset_page_owner
* Struck through repros no longer work on HEAD.