syzbot


UBSan: Undefined Behavior in db_nextframe (4)

Status: auto-obsoleted due to no activity on 2024/09/16 14:03
Reported-by: syzbot+869d83d98ee7b072f5cd@syzkaller.appspotmail.com
First crash: 183d, last: 156d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
netbsd UBSan: Undefined Behavior in db_nextframe (2) 1 821d 821d 0/3 auto-obsoleted due to no activity on 2022/11/20 23:49
netbsd UBSan: Undefined Behavior in db_nextframe (3) 1 345d 345d 0/3 auto-obsoleted due to no activity on 2024/03/10 18:16
netbsd UBSan: Undefined Behavior in db_nextframe 2 1008d 1016d 0/3 auto-closed as invalid on 2022/05/18 00:37

Sample crash report:
[ 115.0014448] panic: UBSan: Undefined Behavior in /syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:125:24, member access within misaligned address 0x2 for type 'struct x86_64_frame' which requires 8 byte alignment

[ 115.0014448] Faulted in mid-traceback; aborting...
[ 115.0014448] fatal breakpoint trap in supervisor mode
[ 115.0014448] trap type 1 code 0 rip 0xffffffff80235475 cs 0x8 rflags 0x202 cr2 0x7ef08ed1e700 ilevel 0x7 rsp 0xffffd48248348df0
[ 115.0014448] curlwp 0xffff9643c18110c0 pid 2120.2120 lowest kstack 0xffffd482483452c0
Stopped in pid 2120.2120 (sh) at        netbsd:breakpoint+0x5:  leave
?
breakpoint() at netbsd:breakpoint+0x5
db_panic() at netbsd:db_panic+0xec sys/ddb/db_panic.c:71
vpanic() at netbsd:vpanic+0x2f0 sys/kern/subr_prf.c:288
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+0x790 sys/arch/amd64/amd64/db_machdep.c:125
db_stack_trace_print() at netbsd:db_stack_trace_print+0x281 sys/arch/x86/x86/db_trace.c:278
db_panic() at netbsd:db_panic+0x9d x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:64 [inline]
db_panic() at netbsd:db_panic+0x9d sys/ddb/db_panic.c:61
vpanic() at netbsd:vpanic+0x2f0 sys/kern/subr_prf.c:288
panic() at netbsd:panic+0x49 sys/kern/subr_prf.c:1116
heartbeat() at netbsd:heartbeat+0x7c3 select_patient sys/kern/kern_heartbeat.c:549 [inline]
heartbeat() at netbsd:heartbeat+0x7c3 sys/kern/kern_heartbeat.c:706
hardclock() at netbsd:hardclock+0x1d9 sys/kern/kern_clock.c:348
Xresume_lapic_ltimer() at netbsd:Xresume_lapic_ltimer+0x1e
--- interrupt ---
ipi_wait() at netbsd:ipi_wait+0x10b sys/kern/subr_ipi.c:451
_kernel_lock() at netbsd:_kernel_lock+0x53b sys/kern/kern_lock.c:278
intr_biglock_wrapper() at netbsd:intr_biglock_wrapper+0x23 x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:64 [inline]
intr_biglock_wrapper() at netbsd:intr_biglock_wrapper+0x23 sys/arch/x86/x86/intr.c:676
[ 115.0014448] Skipping crash dump on recursive panic
[ 115.0014448] panic: UBSan: Undefined Behavior in /syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:126:14, member access within misaligned address 0x2 for type 'struct x86_64_frame' which requires 8 byte alignment

[ 115.0014448] Faulted in mid-traceback; aborting...
[ 115.0014448] fatal breakpoint trap in supervisor mode
[ 115.0014448] trap type 1 code 0 rip 0xffffffff80235475 cs 0x8 rflags 0x202 cr2 0x7ef08ed1e700 ilevel 0x8 rsp 0xffffd48248347af0
[ 115.0014448] curlwp 0xffff9643c18110c0 pid 2120.2120 lowest kstack 0xffffd482483452c0
Stopped in pid 2120.2120 (sh) at        netbsd:breakpoint+0x5:  leave

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/18 14:02 netbsd 1cd85761873a 639d6cdf .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan UBSan: Undefined Behavior in db_nextframe
2024/05/31 21:18 netbsd 2864ddb2e91d 0c378259 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan UBSan: Undefined Behavior in db_nextframe
2024/05/22 17:54 netbsd f5ffeae836a2 4d098039 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan UBSan: Undefined Behavior in db_nextframe
* Struck through repros no longer work on HEAD.