syzbot


assert failed: c->c_cpu == cc

Status: auto-obsoleted due to no activity on 2022/09/19 03:20
Reported-by: syzbot+257fcc7cf0c1eb569ad2@syzkaller.appspotmail.com
First crash: 845d, last: 845d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
netbsd assert failed: c->c_cpu == cc (2) 1 704d 704d 0/3 auto-obsoleted due to no activity on 2023/02/06 13:48
netbsd assert failed: c->c_cpu == cc (3) 7 119d 173d 0/3 auto-obsoleted due to no activity on 2024/09/13 11:20

Sample crash report:
[ 146.7017243] panic: kernel diagnostic assertion "c->c_cpu == cc" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/kern/kern_timeout.c", line 756 
[ 146.7117107] cpu1: Begin traceback...
[ 146.7317124] vpanic() at netbsd:vpanic+0x2f2 sys/kern/subr_prf.c:293
[ 146.8017124] kern_assert() at netbsd:kern_assert+0x65 sys/arch/amd64/amd64/db_disasm.c:1074
[ 146.8617113] callout_softclock() at netbsd:callout_softclock+0xdbb sys/kern/kern_timeout.c:756
[ 146.9117141] softint_dispatch() at netbsd:softint_dispatch+0x3b5 x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:56 [inline]
[ 146.9117141] softint_dispatch() at netbsd:softint_dispatch+0x3b5 softint_execute sys/kern/kern_softint.c:573 [inline]
[ 146.9117141] softint_dispatch() at netbsd:softint_dispatch+0x3b5 sys/kern/kern_softint.c:818
[ 146.9317132] Skipping crash dump on recursive panic
[ 146.9317132] panic: UBSan: Undefined Behavior in /syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:123:24, member access within misaligned address 0x523 for type 'struct x86_64_frame' which requires 8 byte alignment

[ 146.9517118] Faulted in mid-traceback; aborting...
[ 146.9617122] fatal breakpoint trap in supervisor mode
[ 146.9617122] trap type 1 code 0 rip 0xffffffff80221ab5 cs 0x8 rflags 0x246 cr2 0x6fa6de455000 ilevel 0x8 rsp 0xffff8700af731070
[ 146.9817147] curlwp 0xfffffe725e18ea80 pid 0.25 lowest kstack 0xffff8700af72d2c0
Stopped in pid 0.25 (system) at netbsd:breakpoint+0x5:  leave
?
breakpoint() at netbsd:breakpoint+0x5
db_panic() at netbsd:db_panic+0xec sys/ddb/db_panic.c:69
vpanic() at netbsd:vpanic+0x2f2 sys/kern/subr_prf.c:293
Report() at netbsd:Report+0x3b sys/../common/lib/libc/misc/ubsan.c:1352
HandleTypeMismatch() at netbsd:HandleTypeMismatch+0xfc sys/../common/lib/libc/misc/ubsan.c:432
db_nextframe() at netbsd:db_nextframe+0x837 sys/arch/amd64/amd64/db_machdep.c:123
db_stack_trace_print() at netbsd:db_stack_trace_print+0x281 sys/arch/x86/x86/db_trace.c:277
db_panic() at netbsd:db_panic+0x9d x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:56 [inline]
db_panic() at netbsd:db_panic+0x9d sys/ddb/db_panic.c:59
vpanic() at netbsd:vpanic+0x2f2 sys/kern/subr_prf.c:293
kern_assert() at netbsd:kern_assert+0x65 sys/arch/amd64/amd64/db_disasm.c:1074
callout_softclock() at netbsd:callout_softclock+0xdbb sys/kern/kern_timeout.c:756
softint_dispatch() at netbsd:softint_dispatch+0x3b5 x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:56 [inline]
softint_dispatch() at netbsd:softint_dispatch+0x3b5 softint_execute sys/kern/kern_softint.c:573 [inline]
softint_dispatch() at netbsd:softint_dispatch+0x3b5 sys/kern/kern_softint.c:818
[ 146.9817147] Skipping crash dump on recursive panic
[ 146.9817147] panic: UBSan: Undefined Behavior in /syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:124:14, member access within misaligned address 0x523 for type 'struct x86_64_frame' which requires 8 byte alignment

[ 146.9817147] Faulted in mid-traceback; aborting...
[ 146.9817147] fatal breakpoint trap in supervisor mode
[ 146.9817147] trap type 1 code 0 rip 0xffffffff80221ab5 cs 0x8 rflags 0x246 cr2 0x6fa6de455000 ilevel 0x8 rsp 0xffff8700af72fd70
[ 146.9817147] curlwp 0xfffffe725e18ea80 pid 0.25 lowest kstack 0xffff8700af72d2c0
Stopped in pid 0.25 (system) at netbsd:breakpoint+0x5:  leave

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/21 03:19 netbsd 7ff08c78df49 0fc5c330 .config console log report ci2-netbsd-kubsan assert failed: c->c_cpu == cc
* Struck through repros no longer work on HEAD.