syzbot
assert failed: (c->c_flags & CALLOUT_PENDING) == 0
Status:
fixed on 2019/09/12 08:30
Reported-by: syzbot+95b252c7c7f5cd2c8f2e@syzkaller.appspotmail.com
Fix commit:
80a06cecc711
Fix race in timer destruction.
First crash: 2765d, last: 2627d
Sample crash report:
login: [ 37.9813454] panic: kernel diagnostic assertion "(c->c_flags & CALLOUT_PENDING) == 0" failed: file "/syzkaller/managers/netbsd/kernel/sys/kern/kern_timeout.c", line 317 callout 0xffffb28012edaaa0: c_func (0xffffffff80f07d12) c_flags (0x102) destroyed from 0xffffffff80f07bdf
[ 37.9950094] cpu0: Begin traceback...
[ 37.9950094] vpanic() at netbsd:vpanic+0x214
[ 38.0013110] _GLOBAL__sub_D_65535_0_cpu_configure() at netbsd:_GLOBAL__sub_D_65535_0_cpu_configure
[ 38.0112920] callout_destroy() at netbsd:callout_destroy+0x118
[ 38.0212739] itimerfree() at netbsd:itimerfree+0x102
[ 38.0312561] timers_free() at netbsd:timers_free+0x2ef
[ 38.0412394] exit1() at netbsd:exit1+0x276
[ 38.0512213] sys_exit() at netbsd:sys_exit+0x6c
[ 38.0612058] syscall() at netbsd:syscall+0x30e
[ 38.0612058] --- syscall (number 1) ---
[ 38.0748190] 740eac4fe47a:
[ 38.0748190] cpu0: End traceback...
[ 38.0827541] dumping to dev 4,1 (offset=0, size=0): not possible
[ 38.0827541] rebooting...
SeaBIOS (version 1.8.2-20190204_181744-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...
* Struck through repros no longer work on HEAD.