syzbot


WARNING: refcount bug in __reset_page_owner

Status: fixed on 2024/05/22 23:46
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+98c1a1753a0731df2dd4@syzkaller.appspotmail.com
Fix commit: f5c12105c15f mm,page_owner: fix refcount imbalance
First crash: 68d, last: 33d
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [mm?] WARNING: refcount bug in __reset_page_owner 3 (5) 2024/04/20 09:22
[PATCH v2 1/2] mm,page_owner: Fix refcount imbalance 8 (8) 2024/03/21 10:36
Re: [PATCH] mm,page_owner: Fix recursion 1 (1) 2024/03/19 10:51
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/03/20 08:06 23m penguin-kernel@i-love.sakura.ne.jp patch upstream OK log

Sample crash report:
------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 0 PID: 110 at lib/refcount.c:31 refcount_warn_saturate+0x1ed/0x210 lib/refcount.c:31
Modules linked in:
CPU: 0 PID: 110 Comm: kswapd0 Not tainted 6.9.0-rc4-syzkaller-00113-g2668e3ae2ef3 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
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:ffffc9000161f150 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81503349
RDX: ffff88801bbcc880 RSI: ffffffff81503356 RDI: 0000000000000001
RBP: ffff88802b9fe36c R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff88802b9fe36c
R13: 0000000000000000 R14: 00000000046a0213 R15: ffff8880186378a8
FS:  0000000000000000(0000) GS:ffff88806b200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcf7d13bb90 CR3: 000000001f502000 CR4: 0000000000350ef0
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_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
 free_unref_folios+0x256/0xad0 mm/page_alloc.c:2536
 shrink_folio_list+0x27c9/0x3f00 mm/vmscan.c:1495
 evict_folios+0x6e6/0x1bb0 mm/vmscan.c:4537
 try_to_shrink_lruvec+0x618/0x9b0 mm/vmscan.c:4733
 shrink_one+0x3f8/0x7c0 mm/vmscan.c:4772
 shrink_many mm/vmscan.c:4835 [inline]
 lru_gen_shrink_node mm/vmscan.c:4935 [inline]
 shrink_node+0x231f/0x3a80 mm/vmscan.c:5894
 kswapd_shrink_node mm/vmscan.c:6704 [inline]
 balance_pgdat+0x9a0/0x19a0 mm/vmscan.c:6895
 kswapd+0x5ea/0xbf0 mm/vmscan.c:7164
 kthread+0x2c1/0x3a0 kernel/kthread.c:388
 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 (93128):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/19 16:10 upstream 2668e3ae2ef3 af24b050 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/18 19:58 upstream 8cd26fd90c1a af24b050 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/18 17:20 upstream 8cd26fd90c1a af24b050 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/18 13:20 upstream 8cd26fd90c1a af24b050 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/17 12:37 upstream 96fca68c4fbf 18f6e127 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/17 11:49 upstream 96fca68c4fbf 18f6e127 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/17 08:50 upstream 96fca68c4fbf 18f6e127 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/16 03:20 upstream 96fca68c4fbf 0d592ce4 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/15 16:04 upstream 0bbac3facb5d 459f4b00 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/14 03:34 upstream fa4022cb7361 c8349e48 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/12 08:42 upstream 00dcf5d862e8 27de0a5c .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/09 12:12 upstream 20cb38a7af88 56086b24 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/09 01:31 upstream fec50db7033e f3234354 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/09 00:21 upstream fec50db7033e f3234354 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/08 14:29 upstream fec50db7033e 7591ebb5 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/08 03:58 upstream 9fe30842a90b ca620dd8 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/07 04:08 upstream f2f80ac80987 ca620dd8 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/06 05:51 upstream e8b0ccb2a787 ca620dd8 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/05 14:15 upstream c88b9b4cde17 47d9c0ed .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/05 11:38 upstream c88b9b4cde17 47d9c0ed .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/02 15:29 upstream 026e680b0a08 f861ecca .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/31 15:13 upstream 712e14250dd2 6baf5069 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/31 10:25 upstream 712e14250dd2 6baf5069 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/30 22:11 upstream 486291a0e624 6baf5069 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/30 07:30 upstream 4535e1a4174c 6baf5069 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/29 16:51 upstream 317c7bc0ef03 c52bcb23 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/29 13:16 upstream 317c7bc0ef03 c52bcb23 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/29 09:53 upstream 317c7bc0ef03 c52bcb23 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/17 13:15 upstream 741e9d668aa5 d615901c .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/15 16:22 upstream e5eb28f6d1af d615901c .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/18 01:00 upstream 4b6b51322118 bd38b692 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/15 22:05 upstream 0bbac3facb5d 459f4b00 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/12 10:08 upstream 00dcf5d862e8 27de0a5c .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/08 02:19 upstream 9fe30842a90b ca620dd8 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/07 01:41 upstream f2f80ac80987 ca620dd8 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/04 19:30 upstream c85af715cac0 0ee3535e .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/02 05:50 upstream 026e680b0a08 6baf5069 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/11 14:01 upstream e8c39d0f57f3 3023abf0 .config console log report syz [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/08 20:14 upstream fec50db7033e 7591ebb5 .config console log report syz [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/06 00:24 upstream e8b0ccb2a787 ca620dd8 .config console log report syz [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/03/28 15:06 upstream 8d025e2092e2 ceaf7ddd .config console log report syz [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/03 14:31 upstream 3e92c1e6cd87 9d2a90af .config console log report syz [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/03/28 18:32 upstream 8d025e2092e2 ceaf7ddd .config console log report syz [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 15:57 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 15:32 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 15:02 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 14:42 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 13:06 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 10:03 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 09:39 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 09:23 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 09:06 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 07:13 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 06:59 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 05:03 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 03:28 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 02:59 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in __reset_page_owner
2024/04/19 16:56 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 16:20 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 14:00 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 13:37 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 13:21 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 12:35 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 12:02 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 11:38 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 11:17 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 10:38 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 10:21 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 10:03 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 09:54 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 08:44 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 08:26 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 07:52 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 07:36 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 06:24 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 05:52 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 05:31 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 04:52 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 04:33 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 04:22 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 04:02 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 03:44 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 02:42 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 02:07 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
2024/04/19 01:45 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in __reset_page_owner
* Struck through repros no longer work on HEAD.