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: 2097d, last: 1957d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
netbsd assert failed: c->c_cpu->cc_lwp == curlwp || c->c_cpu->cc_active != c (3) syz 138 512d 1713d 0/3 upstream: reported syz repro on 2020/03/14 15:58
netbsd assert failed: c->c_cpu->cc_lwp == curlwp || c->c_cpu->cc_active != c (2) 2 1804d 1819d 0/3 closed as invalid on 2020/02/21 19:46

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

Crashes (247):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/02/25 21:01 netbsd 5eba7b0ad839 8022bafd console log report syz C ci2-netbsd
2019/07/13 18:28 netbsd ff569f37b359 e6fb0f13 console log report ci2-netbsd
2019/07/13 11:48 netbsd ff569f37b359 e6fb0f13 console log report ci2-netbsd
2019/07/11 09:50 netbsd 77f8c2fb33ca ff7bf04c console log report ci2-netbsd
2019/07/11 06:17 netbsd 77f8c2fb33ca ff7bf04c console log report ci2-netbsd
2019/07/10 19:00 netbsd 77f8c2fb33ca f62e1e85 console log report ci2-netbsd
2019/07/10 14:27 netbsd 6e4b61249aad f62e1e85 console log report ci2-netbsd
2019/07/10 04:18 netbsd 7782b313ab8b f62e1e85 console log report ci2-netbsd
2019/07/08 08:09 netbsd 5dc61a96cade f62e1e85 console log report ci2-netbsd
2019/07/07 07:08 netbsd 243cdbfbfdbf f62e1e85 console log report ci2-netbsd
2019/07/06 13:10 netbsd bb5f3b7247c9 f62e1e85 console log report ci2-netbsd
2019/06/29 13:47 netbsd 4c749045f5f5 7509bf36 console log report ci2-netbsd
2019/06/22 06:47 netbsd 4ad6ffcafd2c 34bf9440 console log report ci2-netbsd
2019/06/21 06:59 netbsd b8a18b79975d 34bf9440 console log report ci2-netbsd
2019/06/20 10:09 netbsd 841ec313576b 34bf9440 console log report ci2-netbsd
2019/05/09 14:22 netbsd 014f8a6c6f91 1ab4c999 console log report ci2-netbsd
2019/05/07 10:43 netbsd 014f8a6c6f91 04e9d8ce console log report ci2-netbsd
2019/04/13 19:21 netbsd def13e54a57f c402d8f1 console log report ci2-netbsd
2019/04/08 19:17 netbsd d4323b20e387 3ef496b7 console log report ci2-netbsd
2019/03/26 09:51 netbsd e1c3c389d697 55684ce1 console log report ci2-netbsd
2019/03/10 23:53 netbsd 5e72195e84e2 12365b99 console log report ci2-netbsd
2019/03/10 22:30 netbsd 5e72195e84e2 12365b99 console log report ci2-netbsd
2019/03/10 19:12 netbsd 5e72195e84e2 12365b99 console log report ci2-netbsd
2019/03/10 16:46 netbsd 5e72195e84e2 12365b99 console log report ci2-netbsd
2019/03/10 13:48 netbsd 5e72195e84e2 12365b99 console log report ci2-netbsd
2019/03/10 09:24 netbsd 0ac2086e7161 12365b99 console log report ci2-netbsd
2019/03/10 07:39 netbsd 0ac2086e7161 12365b99 console log report ci2-netbsd
2019/03/10 06:16 netbsd 0ac2086e7161 12365b99 console log report ci2-netbsd
2019/03/10 04:27 netbsd 0ac2086e7161 12365b99 console log report ci2-netbsd
2019/03/10 02:27 netbsd 0ac2086e7161 12365b99 console log report ci2-netbsd
2019/03/09 22:33 netbsd 5e8a8f92e33b 12365b99 console log report ci2-netbsd
2019/03/09 17:39 netbsd 5e8a8f92e33b 12365b99 console log report ci2-netbsd
2019/03/09 16:23 netbsd 5e8a8f92e33b 12365b99 console log report ci2-netbsd
2019/03/09 15:00 netbsd 5e8a8f92e33b 12365b99 console log report ci2-netbsd
2019/03/09 14:44 netbsd 5e8a8f92e33b 12365b99 console log report ci2-netbsd
2019/03/09 11:32 netbsd 5e8a8f92e33b 12365b99 console log report ci2-netbsd
2019/03/09 10:22 netbsd 3ecbc4785bd9 12365b99 console log report ci2-netbsd
2019/03/09 09:14 netbsd 3ecbc4785bd9 12365b99 console log report ci2-netbsd
2019/03/09 06:07 netbsd 3ecbc4785bd9 12365b99 console log report ci2-netbsd
2019/03/09 05:01 netbsd 3ecbc4785bd9 12365b99 console log report ci2-netbsd
2019/03/09 01:35 netbsd 3ecbc4785bd9 12365b99 console log report ci2-netbsd
2019/03/09 00:21 netbsd 3ecbc4785bd9 12365b99 console log report ci2-netbsd
2019/03/08 20:41 netbsd 57a2d3217659 12365b99 console log report ci2-netbsd
2019/03/08 17:00 netbsd 57a2d3217659 12365b99 console log report ci2-netbsd
2019/03/08 15:14 netbsd 57a2d3217659 12365b99 console log report ci2-netbsd
2019/03/08 13:11 netbsd 57a2d3217659 12365b99 console log report ci2-netbsd
2019/03/08 11:43 netbsd 57a2d3217659 12365b99 console log report ci2-netbsd
2019/03/08 09:36 netbsd 57a2d3217659 12365b99 console log report ci2-netbsd
2019/02/23 18:32 netbsd af876e934dda 9737e71e console log report ci2-netbsd
* Struck through repros no longer work on HEAD.