syzbot
assert failed: c->c_cpu->cc_lwp == curlwp || c->c_cpu->cc_active != c
Status:
fixed on 2019/08/25 05:45
Reported-by: syzbot+d58da99969f58c1a024a@syzkaller.appspotmail.com
Fix commit:
80a06cecc711
Fix race in timer destruction.
First crash: 2753d, last: 2613d
Sample crash report:
[ 36.4573968] panic: kernel diagnostic assertion "c->c_cpu->cc_lwp == curlwp || c->c_cpu->cc_active != c" failed: file "/syzkaller/managers/netbsd/kernel/sys/kern/kern_timeout.c", line 318
[ 36.4573968] cpu0: Begin traceback...
[ 36.4674211] vpanic() at netbsd:vpanic+0x214
[ 36.4674211] _GLOBAL__sub_D_65535_0_cpu_configure() at netbsd:_GLOBAL__sub_D_65535_0_cpu_configure
[ 36.4874675] callout_destroy() at netbsd:callout_destroy+0xcb
[ 36.4974896] itimerfree() at netbsd:itimerfree+0x102
[ 36.5075256] timers_free() at netbsd:timers_free+0x2ef
[ 36.5181832] exit1() at netbsd:exit1+0x276
[ 36.5278241] sys_exit() at netbsd:sys_exit+0x6c
[ 36.5379931] syscall() at netbsd:syscall+0x30e
[ 36.5478798] --- syscall (number 1) ---
[ 36.5576223] 766d0d2fe47a:
[ 36.5576223] cpu0: End traceback...
[ 36.5576223] dumping to dev 4,1 (offset=0, size=0): not possible
[ 36.5576223] rebooting...
SeaBIOS (version 1.8.2-20181029_212248-google)
Total RAM Size = 0x00000001e0000000 = 7680 MiB
CPUs found: 2 Max CPUs supported: 2
found virtio-scsi at 0:3
virtio-scsi vendor='Google' product='PersistentDisk' rev='1' type=0 removable=0
virtio-scsi blksize=512 sectors=4194304 = 2048 MiB
drive 0x000f2a00: PCHS=0/0/0 translation=lba LCHS=520/128/63 s=4194304
Booting from Hard Disk 0...
>> NetBSD/x86 BIOS Boot, Revision 5.10 (Tue Jul 17 14:59:51 UTC 2018) (from NetBSD 8.0)
>> Memory: 639/3144640 k
1. Boot normally
2. Boot single user
3. Disable ACPI
4. Disable ACPI and SMP
5. Drop to boot prompt
* Struck through repros no longer work on HEAD.