syzbot


BUG: corrupted list in percpu_counter_destroy

Status: auto-obsoleted due to no activity on 2024/05/01 12:28
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+6b1a2e744e37db9f50b3@syzkaller.appspotmail.com
First crash: 672d, last: 672d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] BUG: corrupted list in percpu_counter_destroy 0 (1) 2023/02/09 04:24
Last patch testing requests (6)
Created Duration User Patch Repo Result
2024/05/01 12:02 25m retest repro linux-next OK log
2024/02/20 01:43 22m retest repro linux-next error
2023/12/10 04:47 16m retest repro linux-next error
2023/10/01 03:18 19m retest repro linux-next report log
2023/07/23 02:33 13m retest repro linux-next report log
2023/05/14 01:42 23m retest repro linux-next report log

Sample crash report:
sshd[5074]: segfault at 200000001 ip 0000000200000001 sp 00007ffed2745410 error 14 in sshd[563ab7bc0000+b000] likely on CPU 0 (core 0, socket 0)
Code: Unable to access opcode bytes at 0x1ffffffd7.
list_del corruption. prev->next should be ffff88807a4b71e8, but was 0000000200000001. (prev=ffff8880761b16c8)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:59!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5074 Comm: sshd Not tainted 6.2.0-rc6-next-20230203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:__list_del_entry_valid+0x11f/0x1b0 lib/list_debug.c:59
Code: 07 a7 8a e8 f3 09 4b fd 0f 0b 48 89 ca 48 c7 c7 e0 07 a7 8a e8 e2 09 4b fd 0f 0b 4c 89 c2 48 c7 c7 40 08 a7 8a e8 d1 09 4b fd <0f> 0b 48 89 d1 48 c7 c7 c0 08 a7 8a 4c 89 c2 e8 bd 09 4b fd 0f 0b
RSP: 0018:ffffc90003bbfaf8 EFLAGS: 00010086

RAX: 000000000000006d RBX: ffff88807a4b71a0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8168dfbc RDI: 0000000000000005
RBP: ffff88807a4b71a0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000001 R11: 0000000000000000 R12: 0000000000000292
R13: ffff88807a4b71e8 R14: ffff88807a4b71f0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000040048 CR3: 0000000027e6d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_del_entry include/linux/list.h:134 [inline]
 list_del include/linux/list.h:148 [inline]
 percpu_counter_destroy.part.0+0x4f/0x200 lib/percpu_counter.c:198
 percpu_counter_destroy+0x3c/0x50 lib/percpu_counter.c:191
 __mmdrop+0x294/0x470 kernel/fork.c:800
 mmdrop include/linux/sched/mm.h:50 [inline]
 __mmput+0x3fd/0x4c0 kernel/fork.c:1220
 mmput+0x60/0x70 kernel/fork.c:1231
 exit_mm kernel/exit.c:563 [inline]
 do_exit+0x9d7/0x2b60 kernel/exit.c:856
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1019
 get_signal+0x2321/0x25b0 kernel/signal.c:2859
 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
 exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
 irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:310
 exc_page_fault+0xc0/0x170 arch/x86/mm/fault.c:1557
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x200000001
Code: Unable to access opcode bytes at 0x1ffffffd7.
RSP: 002b:00007ffed2745410 EFLAGS: 00010202

RAX: 00000000ffffffff RBX: 0000000200000001 RCX: 00007fec0d6ead83
RDX: fffffffffffffea0 RSI: 0000563ab9bf6f40 RDI: 000000000000000a
RBP: 0000000000040048 R08: 00007ffed27453d0 R09: 00007ffed27453e0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000001 R14: 00007ffed2745458 R15: 00007ffed27454d8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid+0x11f/0x1b0 lib/list_debug.c:59
Code: 07 a7 8a e8 f3 09 4b fd 0f 0b 48 89 ca 48 c7 c7 e0 07 a7 8a e8 e2 09 4b fd 0f 0b 4c 89 c2 48 c7 c7 40 08 a7 8a e8 d1 09 4b fd <0f> 0b 48 89 d1 48 c7 c7 c0 08 a7 8a 4c 89 c2 e8 bd 09 4b fd 0f 0b
RSP: 0018:ffffc90003bbfaf8 EFLAGS: 00010086

RAX: 000000000000006d RBX: ffff88807a4b71a0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8168dfbc RDI: 0000000000000005
RBP: ffff88807a4b71a0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000001 R11: 0000000000000000 R12: 0000000000000292
R13: ffff88807a4b71e8 R14: ffff88807a4b71f0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000040048 CR3: 0000000027e6d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/05 04:16 linux-next 4fafd96910ad be607b78 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root BUG: corrupted list in percpu_counter_destroy
* Struck through repros no longer work on HEAD.