panic: kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/mpanic: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_fork.c", line 689 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 382419 43073 0 0 0x4000000 0 syz-executor.1 *307675 27672 0 0 0x4000000 1 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x174 sys/kern/subr_prf.c:208 __assert(ffffffff81f7eb2c,ffffffff81f6b8b7,2b1,ffffffff81f50acf) at __assert+0x2e sys/kern/subr_prf.c:155 proc_trampoline_mp() at proc_trampoline_mp+0x13b end trace frame: 0x0, count: 11 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 kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 879 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x174 sys/kern/subr_prf.c:208 __assert(ffffffff81f7eb2c,ffffffff81f6b8b7,2b1,ffffffff81f50acf) at __assert+0x2e sys/kern/subr_prf.c:155 proc_trampoline_mp() at proc_trampoline_mp+0x13b end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c697f0 rbx 0xffff800020c698a0 rdx 0xffffffff81f89e77 apollo_pio_rec+0x9e22 rcx 0 rax 0 r8 0xffffffff811c43a3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x132d3edd0457e1a1 r12 0x3000000008 r13 0xffff800020c69800 r14 0x104 r15 0x1 rip 0xffffffff81e2e758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c697e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=307675 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020b384c8,0xffffffff82394e00 process=0xffff800020b8cd38 user=0xffff800020c64000, vmspace=0xfffffd807effe870 estcpu=31, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 43073 342049 5234 0 2 0 syz-executor.1 43073 382419 5234 0 7 0x4000000 syz-executor.1 27672 192312 69238 0 2 0 syz-executor.0 27672 183641 69238 0 3 0x4000080 rest syz-executor.0 27672 399848 69238 0 2 0x4000000 syz-executor.0 *27672 307675 69238 0 7 0x4000000 syz-executor.0 5234 246990 19806 0 3 0x82 nanosleep syz-executor.1 69238 481833 19806 0 3 0x82 nanosleep syz-executor.0 49513 515039 1 0 3 0x100083 ttyin getty 85302 266886 0 0 3 0x14200 bored sosplice 19806 520847 48799 0 3 0x82 thrsleep syz-fuzzer 19806 46586 48799 0 3 0x4000082 thrsleep syz-fuzzer 19806 451213 48799 0 3 0x4000082 thrsleep syz-fuzzer 19806 362582 48799 0 3 0x4000082 thrsleep syz-fuzzer 19806 14678 48799 0 3 0x4000082 kqread syz-fuzzer 19806 257696 48799 0 3 0x4000082 thrsleep syz-fuzzer 19806 442851 48799 0 3 0x4000082 thrsleep syz-fuzzer 19806 456892 48799 0 3 0x4000082 thrsleep syz-fuzzer 19806 299485 48799 0 3 0x4000082 thrsleep syz-fuzzer 19806 284138 48799 0 3 0x4000082 thrsleep syz-fuzzer 48799 54594 55470 0 3 0x10008a pause ksh 55470 485667 44505 0 3 0x92 select sshd 44505 498592 1 0 3 0x80 select sshd 39607 171239 98570 74 3 0x100092 bpf pflogd 98570 479451 1 0 3 0x80 netio pflogd 95005 361824 85244 73 3 0x100090 kqread syslogd 85244 290640 1 0 3 0x100082 netio syslogd 92793 155985 1 77 3 0x100090 poll dhclient 48551 209132 1 0 3 0x80 poll dhclient 25187 486024 0 0 2 0x14200 zerothread 98589 234571 0 0 3 0x14200 aiodoned aiodoned 76958 493806 0 0 3 0x14200 syncer update 70100 256316 0 0 3 0x14200 cleaner cleaner 93485 518456 0 0 3 0x14200 reaper reaper 87545 4720 0 0 3 0x14200 pgdaemon pagedaemon 24618 241146 0 0 3 0x14200 bored crynlk 54395 36929 0 0 3 0x14200 bored crypto 63945 462106 0 0 3 0x40014200 acpi0 acpi0 41434 143661 0 0 3 0x40014200 idle1 15720 58982 0 0 3 0x14200 bored softnet 66112 50848 0 0 3 0x14200 bored systqmp 98602 181357 0 0 3 0x14200 bored systq 2381 202797 0 0 3 0x40014200 bored softclock 62422 408532 0 0 3 0x40014200 idle0 98526 234433 0 0 3 0x14200 bored smr 1 153875 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 43073 (syz-executor.1) thread 0xffff800020b39c38 (382419) exclusive rrwlock inode r = 0 (0xfffffd806e2d95f8) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x594 sys/kern/subr_witness.c:1201 #1 _rw_enter+0x45d sys/kern/kern_rwlock.c:280 #2 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #3 VOP_LOCK+0x57 sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 vfs_lookup+0xf5 sys/kern/vfs_lookup.c:387 #6 namei+0x4b2 sys/kern/vfs_lookup.c:224 #7 domknodat+0xa1 sys/kern/vfs_syscalls.c:1405 #8 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #8 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8234a3d0) locked @ /syzkaller/managers/multicore/kernel/sys/sys/syscall_mi.h:90 #0 witness_lock+0x594 sys/kern/subr_witness.c:1201 #1 syscall+0x48b mi_syscall sys/sys/syscall_mi.h:91 [inline] #1 syscall+0x48b sys/arch/amd64/amd64/trap.c:574 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9554 6441K 6441K 78643K 11006 0 0 pcb 25 9K 10K 78643K 444 0 0 rtable 100 3K 4K 78643K 800 0 0 ifaddr 71 15K 15K 78643K 266 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1496 0 0 iov 0 0K 16K 78643K 115 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1203 75K 75K 78643K 1889 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 17 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 141 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 21K 78643K 978 0 0 sigio 0 0K 0K 78643K 9 0 0 proc 57 63K 71K 78643K 695 0 0 subproc 64 65538K 67586K 78643K 476 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 144 0 0 in_multi 33 2K 2K 78643K 217 0 0 ether_multi 1 0K 0K 78643K 10 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 347 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 92 21K 29K 78643K 3984 0 0 UVM aobj 58 3K 3K 78643K 70 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 30 0 0 NDP 16 0K 0K 78643K 88 0 0 temp 199 2380K 2508K 78643K 6595 0 0 kqueue 0 0K 0K 78643K 10 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 16 0 12 1 0 1 1 0 8 0 inpcbpl 280 569 0 562 1 0 1 1 0 8 0 plimitpl 152 57 0 49 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 151 0 111 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 20 0 20 2 2 0 1 0 8 0 tcpcb 544 215 0 211 1 0 1 1 0 8 0 nd6 48 28 0 24 1 0 1 1 0 8 0 ppxss 1128 24 0 24 3 2 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 37 0 25 1 0 1 1 0 8 0 pfstkey 112 37 0 25 1 0 1 1 0 8 0 pfstate 328 37 0 25 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 692 0 504 13 0 13 13 0 8 0 art_table 32 693 0 504 2 0 2 2 0 8 0 art_node 16 148 0 114 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 13 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 139 0 129 1 0 1 1 0 8 0 shmpl 112 68 0 12 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3134 0 1680 48 0 48 48 0 8 1 ffsino 272 3134 0 1680 98 0 98 98 0 8 1 nchpl 144 4690 0 3032 63 1 62 62 0 8 0 uvmvnodes 72 3451 0 0 63 0 63 63 0 8 0 vnodes 200 3451 0 0 182 0 182 182 0 8 0 namei 1024 14524 0 14523 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 15316 0 15316 17 16 1 6 0 8 1 sigapl 432 1143 0 1127 2 0 2 2 0 8 0 futexpl 56 10983 0 10983 1 0 1 1 0 8 1 knotepl 112 464 0 445 1 0 1 1 0 8 0 kqueuepl 104 221 0 217 1 0 1 1 0 8 0 pipepl 112 780 0 761 3 2 1 2 0 8 0 fdescpl 488 1144 0 1127 4 1 3 3 0 8 0 filepl 152 6938 0 6833 6 1 5 6 0 8 0 lockfpl 104 364 0 363 2 1 1 1 0 8 0 lockfspl 32 497 0 496 2 1 1 1 0 8 0 sessionpl 112 32 0 21 1 0 1 1 0 8 0 pgrppl 48 39 0 28 1 0 1 1 0 8 0 ucredpl 96 1583 0 1574 1 0 1 1 0 8 0 zombiepl 144 1127 0 1127 2 1 1 1 0 8 1 processpl 840 1160 0 1127 4 0 4 4 0 8 0 procpl 600 3051 0 3005 5 1 4 5 0 8 0 srpgc 64 72 0 72 5 5 0 1 0 8 0 sosppl 128 16 0 16 4 4 0 1 0 8 0 sockpl 384 942 0 923 3 0 3 3 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 133 0 0 16 0 16 16 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 195 0 0 10 1 9 9 0 8 0 bufpl 256 9109 0 2085 440 0 440 440 0 8 0 anonpl 16 117986 0 109285 66 17 49 49 0 125 12 amapchunkpl 152 6307 0 6220 10 5 5 9 0 158 0 amappl16 192 4781 0 4306 48 16 32 36 0 8 8 amappl15 184 298 0 292 1 0 1 1 0 8 0 amappl14 176 303 0 300 2 1 1 1 0 8 0 amappl13 168 210 0 205 1 0 1 1 0 8 0 amappl12 160 159 0 158 2 1 1 1 0 8 0 amappl11 152 265 0 248 1 0 1 1 0 8 0 amappl10 144 308 0 305 1 0 1 1 0 8 0 amappl9 136 656 0 652 1 0 1 1 0 8 0 amappl8 128 248 0 231 1 0 1 1 0 8 0 amappl7 120 56 0 50 1 0 1 1 0 8 0 amappl6 112 66 0 59 1 0 1 1 0 8 0 amappl5 104 330 0 316 1 0 1 1 0 8 0 amappl4 96 1297 0 1264 2 1 1 2 0 8 0 amappl3 88 394 0 388 1 0 1 1 0 8 0 amappl2 80 8932 0 8862 2 0 2 2 0 8 0 amappl1 72 34750 0 34295 25 15 10 20 0 8 0 amappl 72 3379 0 3342 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 69 0 12 1 0 1 1 0 8 0 uaddrrnd 24 1144 0 1127 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1144 0 1127 1 0 1 1 0 8 0 vmmpekpl 168 13503 0 13478 2 0 2 2 0 8 0 vmmpepl 168 129184 0 127618 113 34 79 81 0 357 9 vmsppl 360 1143 0 1127 2 0 2 2 0 8 0 pdppl 4096 2296 0 2254 6 0 6 6 0 8 0 pvpl 32 365837 0 353754 168 40 128 128 0 265 27 pmappl 224 1143 0 1127 3 2 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 599 0 5 17 0 17 17 0 8 0