syzbot


BUG: corrupted list in list_lru_add

Status: upstream: reported syz repro on 2024/11/22 12:30
Subsystems: mm bcachefs
[Documentation on labels]
Reported-by: syzbot+092ef2e75c24d23f33c4@syzkaller.appspotmail.com
First crash: 179d, last: 5d13h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] [mm?] BUG: corrupted list in list_lru_add 0 (1) 2024/11/22 12:30
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: Dentry still in use in unmount C done 1184 1178d 1191d 2/2 fixed on 2022/02/25 03:20
upstream BUG: unable to handle kernel paging request in list_lru_add mm C done done 11367 308d 620d 27/28 fixed on 2024/08/28 10:02
upstream general protection fault in list_lru_add mm C done 1125 861d 1150d 22/28 fixed on 2023/02/24 13:51
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/04/27 03:06 19m retest repro upstream OK log
2025/02/10 13:15 20m retest repro upstream report log
2024/12/02 12:28 13m retest repro upstream report log

Sample crash report:
(unnamed net_device) (uninitialized): option active_slave: invalid value (bond_slave_1)
 slab gfs2_quotad start ffff8880586a9690 pointer offset 120 size 272
list_add corruption. prev->next should be next (ffff88801e6b6000), but was ffff8880586a9708. (prev=ffff8880586a9708).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:32!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 21375 Comm: syz.5.3873 Not tainted 6.15.0-rc5-syzkaller-00136-g9c69f8884904 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/29/2025
RIP: 0010:__list_add_valid_or_report+0x12b/0x190 lib/list_debug.c:32
Code: 00 00 00 00 fc ff df 48 89 f2 48 c1 ea 03 80 3c 02 00 75 5a 48 8b 16 48 89 f1 48 c7 c7 20 71 f4 8b 48 89 ee e8 e6 80 c6 fc 90 <0f> 0b 48 89 f2 48 89 e9 4c 89 e6 48 c7 c7 a0 71 f4 8b e8 ce 80 c6
RSP: 0018:ffffc900154dfb28 EFLAGS: 00010282
RAX: 0000000000000075 RBX: ffff8880586a9708 RCX: ffffc900148f2000
RDX: 0000000000000000 RSI: ffffffff819aff76 RDI: 0000000000000005
RBP: ffff88801e6b6000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000002 R11: 0000000000000000 R12: ffff8880586a9708
R13: ffff88801e6b6008 R14: ffff88801e6b6000 R15: ffff88801e6b6018
FS:  00007f0a383bb6c0(0000) GS:ffff8881249e8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c42be71 CR3: 00000000661d9000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __list_add_valid include/linux/list.h:88 [inline]
 __list_add include/linux/list.h:150 [inline]
 list_add_tail include/linux/list.h:183 [inline]
 list_lru_add+0xf6/0x2e0 mm/list_lru.c:167
 list_lru_add_obj+0x194/0x2f0 mm/list_lru.c:189
 qd_put+0x119/0x190 fs/gfs2/quota.c:342
 gfs2_quota_sync+0x358/0x570 fs/gfs2/quota.c:1361
 gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:670
 sync_filesystem+0x111/0x290 fs/sync.c:56
 gfs2_reconfigure+0xca/0xf10 fs/gfs2/ops_fstype.c:1550
 reconfigure_super+0x450/0xb60 fs/super.c:1083
 do_remount fs/namespace.c:3368 [inline]
 path_mount+0x1726/0x1f20 fs/namespace.c:4203
 do_mount fs/namespace.c:4224 [inline]
 __do_sys_mount fs/namespace.c:4435 [inline]
 __se_sys_mount fs/namespace.c:4412 [inline]
 __x64_sys_mount+0x28d/0x310 fs/namespace.c:4412
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0a3758e969
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0a383bb038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f0a377b5fa0 RCX: 00007f0a3758e969
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000000
RBP: 00007f0a37610ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000003376039 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0a377b5fa0 R15: 00007fffe5b782d8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_add_valid_or_report+0x12b/0x190 lib/list_debug.c:32
Code: 00 00 00 00 fc ff df 48 89 f2 48 c1 ea 03 80 3c 02 00 75 5a 48 8b 16 48 89 f1 48 c7 c7 20 71 f4 8b 48 89 ee e8 e6 80 c6 fc 90 <0f> 0b 48 89 f2 48 89 e9 4c 89 e6 48 c7 c7 a0 71 f4 8b e8 ce 80 c6
RSP: 0018:ffffc900154dfb28 EFLAGS: 00010282
RAX: 0000000000000075 RBX: ffff8880586a9708 RCX: ffffc900148f2000
RDX: 0000000000000000 RSI: ffffffff819aff76 RDI: 0000000000000005
RBP: ffff88801e6b6000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000002 R11: 0000000000000000 R12: ffff8880586a9708
R13: ffff88801e6b6008 R14: ffff88801e6b6000 R15: ffff88801e6b6018
FS:  00007f0a383bb6c0(0000) GS:ffff8881249e8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c42be71 CR3: 00000000661d9000 CR4: 0000000000350ef0

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/09 20:17 upstream 9c69f8884904 bb813bcc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: corrupted list in list_lru_add
2025/05/04 18:07 upstream e8ab83e34bdc b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: corrupted list in list_lru_add
2024/11/18 12:21 upstream adc218676eef e7bb5d6e .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root BUG: corrupted list in list_lru_add
2025/05/11 15:30 upstream 3ce9925823c7 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: slab-use-after-free Read in list_lru_add
2025/05/09 08:50 upstream 9c69f8884904 bb813bcc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in list_lru_add
2025/04/13 02:52 upstream ecd5d67ad602 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in list_lru_add
* Struck through repros no longer work on HEAD.