syzbot


BUG: corrupted list in __percpu_counter_init

Status: moderation: reported on 2022/11/20 19:17
Reported-by: syzbot+da394d6b03f414523e27@syzkaller.appspotmail.com
First crash: 81d, last: 81d

Sample crash report:
list_add corruption. next->prev should be prev (ffff80000d692f08), but was 509cbac6cd31b835. (next=ffff000114ea3268).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:29!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 27121 Comm: syz-executor.0 Not tainted 6.1.0-rc5-syzkaller-32269-g9500fc6e9e60 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __list_add_valid+0x9c/0xb8 lib/list_debug.c:27
lr : __list_add_valid+0x9c/0xb8 lib/list_debug.c:27
sp : ffff800014fc3a10
x29: ffff800014fc3a10 x28: ffff0000c02c8000 x27: 0000000000000000
x26: 0000000000008000 x25: 0000000000000000 x24: 0000000000000000
x23: ffff000114ea3268 x22: ffff80000d692f08 x21: 0000000000000000
x20: ffff000126bce300 x19: ffff000126bce2b8 x18: 00000000000000c0
x17: 3830663239366430 x16: ffff80000dc18158 x15: ffff0000c02c8000
x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c02c8000
x11: ff808000081c6510 x10: 0000000000000000 x9 : dd545169f3e68f00
x8 : dd545169f3e68f00 x7 : ffff80000c0b2b74 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : ffff0001fefddcc8 x1 : 0000000100000001 x0 : 0000000000000075
Call trace:
 __list_add_valid+0x9c/0xb8 lib/list_debug.c:27
 __list_add include/linux/list.h:69 [inline]
 list_add include/linux/list.h:88 [inline]
 __percpu_counter_init+0xe0/0x134 lib/percpu_counter.c:158
 fprop_local_init_percpu+0x34/0x88 lib/flex_proportions.c:172
 wb_init+0x1e0/0x328 mm/backing-dev.c:310
 cgwb_bdi_init mm/backing-dev.c:614 [inline]
 bdi_init+0xcc/0x118 mm/backing-dev.c:789
 bdi_alloc+0x40/0xbc mm/backing-dev.c:800
 super_setup_bdi_name+0x4c/0x120 fs/super.c:1585
 super_setup_bdi+0x50/0x8c fs/super.c:1612
 v9fs_fill_super fs/9p/vfs_super.c:76 [inline]
 v9fs_mount+0x1a4/0x568 fs/9p/vfs_super.c:137
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1531
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x890 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584
Code: f001b780 91266c00 aa0803e1 94aa87a5 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-gce-arm64 2022/11/16 19:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] BUG: corrupted list in __percpu_counter_init
* Struck through repros no longer work on HEAD.