kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Thu Feb 24 01:58:29 PST 2022 OpenBSD/amd64 (ci-openbsd-setuid-6.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.172' (ED25519) to the list of known hosts. 2022/02/24 02:05:02 parsed 1 programs 2022/02/24 02:05:06 executed programs: 0 2022/02/24 02:05:11 executed programs: 189 2022/02/24 02:05:16 executed programs: 385 login: panic: kernel diagnostic assertion "next != NULL && next->start <= entry->end" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c", line 1643 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 350176 19847 32767 0x10 0x4000000 0 syz-executor.0 *516182 19847 32767 0x10 0x4000000 1K syz-executor.0 db_enter() at db_enter+0x18 panic(ffffffff8257189e) at panic+0x177 __assert(ffffffff825ea8fa,ffffffff825488d3,66b,ffffffff825585ce) at __assert+0x25 uvm_fault_unwire_locked(fffffd806ee42458,20000000,20011000) at uvm_fault_unwire_locked+0x2eb uvm_fault_unwire(fffffd806ee42458,20000000,20011000) at uvm_fault_unwire+0x3f sys_sysctl(ffff8000ffff4d20,ffff80002122c218,ffff80002122c270) at sys_sysctl+0x229 syscall(ffff80002122c2e0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2478b64d80, count: 7 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "next != NULL && next->start <= entry->end" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c", line 1643 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff8257189e) at panic+0x177 __assert(ffffffff825ea8fa,ffffffff825488d3,66b,ffffffff825585ce) at __assert+0x25 uvm_fault_unwire_locked(fffffd806ee42458,20000000,20011000) at uvm_fault_unwire_locked+0x2eb uvm_fault_unwire(fffffd806ee42458,20000000,20011000) at uvm_fault_unwire+0x3f sys_sysctl(ffff8000ffff4d20,ffff80002122c218,ffff80002122c270) at sys_sysctl+0x229 syscall(ffff80002122c2e0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2478b64d80, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002122bfa0 rbx 0xffff800020ce9bff rdx 0x3fd rcx 0 rax 0x9f r8 0x101010101010101 r9 0x8080808080808080 r10 0x6a142e60a18ab776 r11 0xb22d407a164eb258 r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81d872c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002122bf90 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=516182 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff4a80,0xffffffff82a4c0b8 process=0xffff8000ffff14e0 user=0xffff800021227000, vmspace=0xfffffd806ee42458 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19847 522595 97718 32767 2 0x10 syz-executor.0 19847 350176 97718 32767 7 0x4000010 syz-executor.0 19847 200215 97718 32767 2 0x4000010 syz-executor.0 *19847 516182 97718 32767 7 0x4000010 syz-executor.0 97718 330292 32011 32767 3 0x90 nanoslp syz-executor.0 32011 33034 62146 0 3 0x82 wait syz-executor.0 62146 483940 73416 0 3 0x82 thrsleep syz-execprog 62146 406554 73416 0 3 0x4000082 nanoslp syz-execprog 62146 26637 73416 0 3 0x4000082 nanoslp syz-execprog 62146 446537 73416 0 3 0x4000082 kqread syz-execprog 62146 111782 73416 0 3 0x4000082 thrsleep syz-execprog 62146 492001 73416 0 3 0x4000082 thrsleep syz-execprog 62146 461741 73416 0 3 0x4000082 thrsleep syz-execprog 62146 97660 73416 0 3 0x4000082 thrsleep syz-execprog 73416 126028 81766 0 3 0x10008a sigsusp ksh 81766 154903 8147 0 3 0x9a kqread sshd 34828 394192 1 0 3 0x100083 ttyin getty 8147 95653 1 0 3 0x88 kqread sshd 84764 489443 11874 73 3 0x1100090 kqread syslogd 11874 227137 1 0 3 0x100082 netio syslogd 66763 127552 1 0 3 0x100080 kqread resolvd 45585 469816 32427 77 3 0x100092 kqread dhcpleased 39221 303375 32427 77 3 0x100092 kqread dhcpleased 32427 482336 1 0 3 0x80 kqread dhcpleased 72251 378128 0 0 3 0x14200 bored smr 29561 311919 0 0 2 0x14200 zerothread 73772 244469 0 0 3 0x14200 aiodoned aiodoned 45431 84574 0 0 3 0x14200 syncer update 81654 413010 0 0 3 0x14200 cleaner cleaner 79468 502449 0 0 3 0x14200 reaper reaper 97253 427908 0 0 3 0x14200 pgdaemon pagedaemon 38852 271794 0 0 3 0x14200 bored viomb 7306 72900 0 0 3 0x40014200 acpi0 acpi0 6080 220877 0 0 3 0x40014200 idle1 5150 377606 0 0 3 0x14200 bored softnet 84945 141672 0 0 3 0x14200 bored systqmp 81173 379735 0 0 3 0x14200 bored systq 20928 119781 0 0 3 0x40014200 bored softclock 60459 109100 0 0 3 0x40014200 idle0 1 130352 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 19847 (syz-executor.0) thread 0xffff8000ffff47e0 (350176) exclusive rwlock futex r = 0 (0xffffffff8299aec0) #0 witness_lock+0x44d #1 sys_futex+0x5c #2 syscall+0x489 #3 Xsyscall+0x128 Process 19847 (syz-executor.0) thread 0xffff8000ffff4d20 (516182) exclusive rwlock amaplk r = 0 (0xfffffd806c519328) #0 witness_lock+0x44d #1 uvm_map_lock_entry+0x36 #2 uvm_fault_unwire_locked+0x1e8 #3 uvm_fault_unwire+0x3f #4 sys_sysctl+0x229 #5 syscall+0x489 #6 Xsyscall+0x128 shared rwlock vmmaplk r = 0 (0xfffffd806ee42470) #0 witness_lock+0x44d #1 uvm_fault_unwire+0x31 #2 sys_sysctl+0x229 #3 syscall+0x489 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82b73a20) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 #2 mi_switch+0x3d3 #3 sleep_finish+0x198 #4 rw_enter+0x35a #5 vm_map_lock_ln+0xda #6 uvmfault_lookup+0xb9 #7 uvm_fault_check+0x603 #8 uvm_fault+0x102 #9 uvm_fault_wire+0x63 #10 sys_sysctl+0x2d8 #11 syscall+0x489 #12 Xsyscall+0x128 exclusive rwlock sysctllk r = 0 (0xffffffff828f0910) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 sys_sysctl+0x1b3 #3 syscall+0x489 #4 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10146 6390K 6419K 78643K 11236 0 pcb 13 8K 8K 78643K 13 0 rtable 84 2K 3K 78643K 144 0 ifaddr 32 8K 8K 78643K 32 0 counters 42 33K 33K 78643K 42 0 ioctlops 0 0K 2K 78643K 26 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1166 73K 73K 78643K 1179 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 495 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 5 13K 17K 78643K 515 0 proc 56 74K 87K 78643K 255 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 22 1K 1K 78643K 22 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 455 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 148 15K 15K 78643K 9738 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 4 0K 0K 78643K 6 0 temp 24 4686K 4750K 78643K 4373 0 kqueue 12 18K 18K 78643K 25 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 22 0 19 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 136 33 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 2 0 1 0 8 0 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 120 4 0 0 1 0 1 1 0 8 0 inpcb 304 29 0 23 1 0 1 1 0 8 0 nd6 48 3 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 144 0 0 9 0 9 9 0 8 0 art_table 32 145 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 semapl 112 493 0 483 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1935 0 541 88 0 88 88 0 8 0 ffsino 272 1935 0 541 94 1 93 94 0 8 0 nchpl 144 2656 0 1044 60 0 60 60 0 8 0 uvmvnodes 80 1944 0 0 40 0 40 40 0 8 0 vnodes 224 1944 0 0 115 0 115 115 0 8 0 namei 1024 6877 0 6877 3 2 1 2 0 8 1 percpumem 16 33 0 0 1 0 1 1 0 8 0 scxspl 216 8292 0 8292 22 21 1 8 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 822 0 792 5 1 4 5 0 8 0 futexpl 64 2369 0 2368 1 0 1 1 0 8 0 knotepl 120 62 0 0 3 1 2 2 0 8 0 kqueuepl 216 21 0 13 2 1 1 2 0 8 0 pipepl 336 102 0 95 2 1 1 1 0 8 0 fdescpl 496 808 0 792 4 1 3 3 0 8 0 filepl 152 1726 0 1661 4 1 3 4 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 67 0 56 1 0 1 1 0 8 0 zombiepl 144 792 0 792 2 1 1 1 0 8 1 processpl 1064 822 0 792 4 1 3 3 0 8 0 procpl 672 2063 0 2023 4 0 4 4 0 8 0 sockpl 480 84 0 62 3 0 3 3 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 56 0 0 7 0 7 7 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 125 0 0 7 0 7 7 0 8 0 bufpl 288 3971 0 130 275 0 275 275 0 8 0 anonpl 24 201339 0 196760 48 8 40 45 0 186 12 amapchunkpl 152 21368 0 21008 20 5 15 19 0 158 1 amappl16 200 1412 0 1332 6 1 5 5 0 8 0 amappl15 192 77 0 73 1 0 1 1 0 8 0 amappl14 184 4 0 3 1 0 1 1 0 8 0 amappl13 176 48 0 45 2 1 1 1 0 8 0 amappl12 168 512 0 508 2 1 1 1 0 8 0 amappl11 160 44 0 34 1 0 1 1 0 8 0 amappl10 152 31 0 29 2 1 1 1 0 8 0 amappl9 144 436 0 433 1 0 1 1 0 8 0 amappl8 136 413 0 393 1 0 1 1 0 8 0 amappl7 128 81 0 73 1 0 1 1 0 8 0 amappl6 120 179 0 161 2 1 1 2 0 8 0 amappl5 112 647 0 637 1 0 1 1 0 8 0 amappl4 104 646 0 624 2 1 1 2 0 8 0 amappl3 96 639 0 627 1 0 1 1 0 8 0 amappl2 88 457 0 415 3 1 2 3 0 8 0 amappl1 80 18929 0 18509 21 9 12 18 0 8 3 amappl 88 8928 0 8813 4 1 3 4 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 808 0 792 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 808 0 792 1 0 1 1 0 8 0 vmmpekpl 168 11206 0 11191 1 0 1 1 0 8 0 vmmpepl 168 72147 0 70983 92 11 81 87 0 357 30 vmsppl 368 807 0 792 3 1 2 3 0 8 0 rwobjpl 56 22789 0 20116 42 4 38 40 0 8 0 pdppl 4096 1623 0 1584 79 40 39 53 0 8 0 pvpl 32 438790 0 431156 265 14 251 258 0 265 189 pmappl 248 807 0 792 3 2 1 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 577 0 47 16 0 16 16 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82900ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82b73818) at __mp_lock+0x122 softintr_dispatch(0) at softintr_dispatch+0x4e Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82b73818) at __mp_lock+0x122 sleep_setup(ffff800021210b70,ffff8000ffff47e0,120,ffffffff8257105b,0) at sleep_setup+0xd3 rwsleep(ffff8000ffff47e0,ffffffff8299aeb0,120,ffffffff8257105b,0) at rwsleep+0xc0 futex_wait(a24c9cbb740,1,0,2) at futex_wait+0x13c sys_futex(ffff8000ffff47e0,ffff800021210d00,ffff800021210d60) at sys_futex+0xf8 syscall(ffff800021210dd0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2522c5d330, count: 2 ddb{0}> trace x86_ipi_db(ffffffff82900ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82b73818) at __mp_lock+0x122 softintr_dispatch(0) at softintr_dispatch+0x4e Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82b73818) at __mp_lock+0x122 sleep_setup(ffff800021210b70,ffff8000ffff47e0,120,ffffffff8257105b,0) at sleep_setup+0xd3 rwsleep(ffff8000ffff47e0,ffffffff8299aeb0,120,ffffffff8257105b,0) at rwsleep+0xc0 futex_wait(a24c9cbb740,1,0,2) at futex_wait+0x13c sys_futex(ffff8000ffff47e0,ffff800021210d00,ffff800021210d60) at sys_futex+0xf8 syscall(ffff800021210dd0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2522c5d330, count: -13 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 panic(ffffffff8257189e) at panic+0x177 __assert(ffffffff825ea8fa,ffffffff825488d3,66b,ffffffff825585ce) at __assert+0x25 uvm_fault_unwire_locked(fffffd806ee42458,20000000,20011000) at uvm_fault_unwire_locked+0x2eb uvm_fault_unwire(fffffd806ee42458,20000000,20011000) at uvm_fault_unwire+0x3f sys_sysctl(ffff8000ffff4d20,ffff80002122c218,ffff80002122c270) at sys_sysctl+0x229 syscall(ffff80002122c2e0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2478b64d80, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff8257189e) at panic+0x177 __assert(ffffffff825ea8fa,ffffffff825488d3,66b,ffffffff825585ce) at __assert+0x25 uvm_fault_unwire_locked(fffffd806ee42458,20000000,20011000) at uvm_fault_unwire_locked+0x2eb uvm_fault_unwire(fffffd806ee42458,20000000,20011000) at uvm_fault_unwire+0x3f sys_sysctl(ffff8000ffff4d20,ffff80002122c218,ffff80002122c270) at sys_sysctl+0x229 syscall(ffff80002122c2e0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2478b64d80, count: -8