panic: kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 879 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *327815 88422 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 __assert(ffffffff81f430c7,ffffffff81ef0713,36f,ffffffff81f51bce) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800014a06bd0,ffff8000149a8a68) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149a8a68) at namei+0x88a sys/kern/vfs_lookup.c:232 dosymlinkat(ffff800014a06bd0,20000040,3,200000c0) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff8000149a8d20) at syscall+0x541 Xsyscall(6,0,fffffffffffffffe,0,3,4bd7251d010) at Xsyscall+0x128 end of kernel end trace frame: 0x4bfc170da30, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 879 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 __assert(ffffffff81f430c7,ffffffff81ef0713,36f,ffffffff81f51bce) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800014a06bd0,ffff8000149a8a68) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149a8a68) at namei+0x88a sys/kern/vfs_lookup.c:232 dosymlinkat(ffff800014a06bd0,20000040,3,200000c0) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff8000149a8d20) at syscall+0x541 Xsyscall(6,0,fffffffffffffffe,0,3,4bd7251d010) at Xsyscall+0x128 end of kernel end trace frame: 0x4bfc170da30, count: -8 ddb> show registers rdi 0xffffffff81c4ed97 db_enter+0x17 rsi 0x40ca __ALIGN_SIZE+0x30ca rbp 0xffff8000149a8800 rbx 0xffff8000149a88b0 rdx 0x40cb __ALIGN_SIZE+0x30cb rcx 0xffff800004194000 rax 0xffff800004194000 r8 0xffff8000149a87c0 r9 0x1 r10 0xffff800001742ec0 r11 0xc98e90a25a255c64 r12 0x3000000008 r13 0xffff8000149a8810 r14 0x100 r15 0x1 rip 0xffffffff81c4ed98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149a87f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=327815 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014a079e0,0xffffffff8225e010 process=0xffff8000149529f0 user=0xffff8000149a3000, vmspace=0xfffffd803f013630 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 88422 290670 90195 0 2 0 syz-executor.1 *88422 327815 90195 0 7 0x4000000 syz-executor.1 83887 394210 1 0 3 0x100083 ttyin getty 24054 5661 15205 0 2 0x2 syz-executor.0 90195 523932 15205 0 2 0x482 syz-executor.1 1306 493020 0 0 3 0x14200 bored sosplice 15205 277710 92283 0 3 0x82 kqread syz-fuzzer 15205 14246 92283 0 2 0x4000482 syz-fuzzer 15205 287650 92283 0 3 0x4000082 thrsleep syz-fuzzer 15205 224442 92283 0 3 0x4000082 thrsleep syz-fuzzer 15205 97449 92283 0 3 0x4000082 thrsleep syz-fuzzer 15205 237074 92283 0 3 0x4000082 thrsleep syz-fuzzer 15205 602 92283 0 3 0x4000082 thrsleep syz-fuzzer 15205 450370 92283 0 3 0x4000082 thrsleep syz-fuzzer 92283 119247 96282 0 3 0x10008a pause ksh 96282 127384 31345 0 3 0x92 select sshd 31345 69169 1 0 3 0x80 select sshd 85515 376461 64444 73 3 0x100090 kqread syslogd 64444 228269 1 0 3 0x100082 netio syslogd 56173 392047 1 77 3 0x100090 poll dhclient 37165 76766 1 0 3 0x80 poll dhclient 56565 113480 0 0 2 0x14200 zerothread 69613 223804 0 0 3 0x14200 aiodoned aiodoned 49863 358425 0 0 3 0x14200 syncer update 52105 429758 0 0 3 0x14200 cleaner cleaner 69907 466199 0 0 3 0x14200 reaper reaper 6000 471298 0 0 3 0x14200 pgdaemon pagedaemon 18247 58643 0 0 3 0x14200 bored crynlk 12199 101272 0 0 3 0x14200 bored crypto 56116 422137 0 0 3 0x40014200 acpi0 acpi0 3070 297462 0 0 3 0x14200 bored softnet 64297 202793 0 0 3 0x14200 bored systqmp 56278 259975 0 0 3 0x14200 bored systq 10032 402060 0 0 3 0x40014200 bored softclock 94349 336447 0 0 3 0x40014200 idle0 44366 334765 0 0 3 0x14200 bored smr 1 387393 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9517 6352K 6370K 78643K 11090 0 0 pcb 23 9K 11K 78643K 709 0 0 rtable 100 3K 3K 78643K 890 0 0 ifaddr 61 14K 15K 78643K 310 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 44 0 0 iov 0 0K 16K 78643K 215 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 76K 78643K 2048 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 24 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 179 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 1220 0 0 sigio 0 0K 0K 78643K 15 0 0 proc 45 38K 54K 78643K 654 0 0 subproc 64 65538K 69634K 78643K 524 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 161 0 0 in_multi 33 2K 2K 78643K 219 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 351 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 82 20K 25K 78643K 3805 0 0 UVM aobj 75 7K 7K 78643K 83 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 56 0 0 NDP 13 0K 0K 78643K 101 0 0 temp 176 2355K 2421K 78643K 7100 0 0 kqueue 0 0K 0K 78643K 21 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 17 0 13 1 0 1 1 0 8 0 inpcbpl 280 656 0 649 1 0 1 1 0 8 0 plimitpl 152 73 0 66 1 0 1 1 0 8 0 rtentry 112 158 0 118 3 1 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 544 236 0 232 1 0 1 1 0 8 0 nd6 48 30 0 26 2 1 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 34 0 34 8 8 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 760 0 569 13 1 12 12 0 8 0 art_table 32 761 0 569 3 1 2 2 0 8 0 art_node 16 157 0 123 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 3 1 0 1 1 0 8 0 semapl 112 175 0 165 1 0 1 1 0 8 0 shmpl 112 81 0 8 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3615 0 2169 47 0 47 47 0 8 0 ffsino 240 3615 0 2169 86 0 86 86 0 8 0 nchpl 144 5546 0 3901 62 0 62 62 0 8 0 uvmvnodes 72 3960 0 0 72 0 72 72 0 8 0 vnodes 200 3960 0 0 209 0 209 209 0 8 0 namei 1024 17391 0 17389 5 4 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 24913 0 24913 16 15 1 6 0 8 1 sigapl 432 1354 0 1341 2 0 2 2 0 8 0 futexpl 56 20374 0 20374 4 3 1 1 0 8 1 knotepl 112 588 0 569 1 0 1 1 0 8 0 kqueuepl 104 370 0 368 1 0 1 1 0 8 0 pipepl 112 842 0 823 3 2 1 2 0 8 0 fdescpl 424 1355 0 1341 2 0 2 2 0 8 0 filepl 120 8838 0 8743 7 3 4 6 0 8 1 lockfpl 104 433 0 433 6 5 1 1 0 8 1 lockfspl 32 561 0 561 6 5 1 1 0 8 1 sessionpl 112 33 0 23 1 0 1 1 0 8 0 pgrppl 48 69 0 59 1 0 1 1 0 8 0 ucredpl 96 2298 0 2291 1 0 1 1 0 8 0 zombiepl 144 1341 0 1341 2 1 1 1 0 8 1 processpl 840 1370 0 1341 4 0 4 4 0 8 0 procpl 600 2913 0 2876 4 0 4 4 0 8 0 sosppl 128 40 0 40 8 7 1 1 0 8 1 sockpl 384 1269 0 1252 8 5 3 4 0 8 1 mcl64k 65536 1576 0 1576 132 99 33 65 0 8 33 mcl16k 16384 7 0 7 6 6 0 1 0 8 0 mcl12k 12288 24 0 24 6 6 0 1 0 8 0 mcl9k 9216 22 0 22 7 6 1 1 0 8 1 mcl8k 8192 15 0 15 6 6 0 1 0 8 0 mcl4k 4096 74 0 74 7 7 0 1 0 8 0 mcl2k2 2112 17 0 17 5 5 0 1 0 8 0 mcl2k 2048 49330 0 49283 14 7 7 13 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 89694 0 89613 77 55 22 38 0 8 11 bufpl 256 11320 0 4431 431 0 431 431 0 8 0 anonpl 16 197033 0 188602 99 48 51 54 0 62 12 amapchunkpl 152 7038 0 6958 27 20 7 14 0 158 1 amappl16 192 8970 0 8492 111 74 37 37 0 8 12 amappl15 184 129 0 124 1 0 1 1 0 8 0 amappl14 176 566 0 563 2 1 1 1 0 8 0 amappl13 168 126 0 123 1 0 1 1 0 8 0 amappl12 160 372 0 369 1 0 1 1 0 8 0 amappl11 152 267 0 254 1 0 1 1 0 8 0 amappl10 144 267 0 266 4 3 1 1 0 8 0 amappl9 136 641 0 637 1 0 1 1 0 8 0 amappl8 128 220 0 203 1 0 1 1 0 8 0 amappl7 120 162 0 156 1 0 1 1 0 8 0 amappl6 112 287 0 279 1 0 1 1 0 8 0 amappl5 104 257 0 246 1 0 1 1 0 8 0 amappl4 96 1274 0 1249 2 1 1 2 0 8 0 amappl3 88 946 0 937 1 0 1 1 0 8 0 amappl2 80 10635 0 10585 2 0 2 2 0 8 0 amappl1 72 34050 0 33644 27 18 9 19 0 8 0 amappl 72 3222 0 3190 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 82 0 8 2 0 2 2 0 8 0 uaddrrnd 24 1355 0 1341 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1355 0 1341 1 0 1 1 0 8 0 vmmpekpl 168 12944 0 12926 2 0 2 2 0 8 0 vmmpepl 168 151163 0 149765 132 56 76 80 0 357 7 vmsppl 264 1354 0 1341 4 3 1 2 0 8 0 pdppl 4096 2716 0 2682 6 1 5 6 0 8 0 pvpl 32 616865 0 605259 319 152 167 242 0 265 61 pmappl 192 1354 0 1341 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 790 0 188 20 1 19 19 0 8 0