syzbot


panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/kern_exit.c:LINE, member access wi

Status: closed as dup on 2020/05/03 07:16
Reported-by: syzbot+532264e7d69b34a053f4@syzkaller.appspotmail.com
First crash: 1859d, last: 1806d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
assert failed: pgrp->pg_jobc > 0 C 1621 1464d 1663d

Sample crash report:
[  62.2026249] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/kern_exit.c:356:6, member access within misaligned address 0x300000002 for type 'struct session' which requires 8 byte alignment

[  62.2126285] cpu1: Begin traceback...
[  62.2326543] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336
[  62.2726960] isAlreadyReported() at netbsd:isAlreadyReported
executing program
[  62.3227516] HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0xcc
[  62.3627942] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408
[  62.3928290] exit1() at netbsd:exit1+0x2362 sys/kern/kern_exit.c:356
[  62.4328717] sigexit() at netbsd:sigexit+0x5db sys/kern/kern_sig.c:2254
[  62.4729199] postsig() at netbsd:postsig+0x954 sys/kern/kern_sig.c:2116
[  62.5029492] lwp_userret() at netbsd:lwp_userret+0x3ed sys/kern/kern_lwp.c:1584
[  62.5530062] trap() at netbsd:trap+0x1cdd x86_curlwp sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:79 [inline]
[  62.5530062] trap() at netbsd:trap+0x1cdd KPREEMPT_DISABLE sys/sys/lwp.h:516 [inline]
[  62.5530062] trap() at netbsd:trap+0x1cdd mi_userret sys/sys/userret.h:100 [inline]
[  62.5530062] trap() at netbsd:trap+0x1cdd userret sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/userret.h:81 [inline]
[  62.5530062] trap() at netbsd:trap+0x1cdd sys/arch/amd64/amd64/trap.c:673
[  62.5630163] --- trap (number 6) ---
[  62.5830409] 0:
[  62.5830409] cpu1: End t[  62.5830409] raceback...
[  62.5830409] fatal breakpoint trap in supervisor mode
[  62.5930483] trap type 1 code 0 rip 0xffffffff8021ddbd cs 0x8 rflags 0x286 cr2 0 ilevel 0x8 rsp 0xffff8280a6d7b6b0
[  62.6030566] curlwp 0xffff81fb567da100 pid 1346.5 lowest kstack 0xffff8280a6d782c0
Stopped in pid 1346.5 (syz-executor2332) at     netbsd:breakpoint+0x5:  leave
?
breakpoint() at netbsd:breakpoint+0x5
db_panic() at netbsd:db_panic+0x109 sys/ddb/db_panic.c:67
vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336
isAlreadyReported() at netbsd:isAlreadyReported
H

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/01 16:33 netbsd 2ae3e939786f a76bf83f .config console log report syz C ci2-netbsd-kubsan
2019/10/19 23:31 netbsd c9f201e80713 8c88c9c1 .config console log report syz C ci2-netbsd-kubsan
2019/12/11 22:17 netbsd 1125085584c6 0d368675 .config console log report ci2-netbsd-kubsan
2019/10/19 22:53 netbsd c9f201e80713 8c88c9c1 .config console log report ci2-netbsd-kubsan
* Struck through repros no longer work on HEAD.