login: 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 *349215 50012 0 0 0x4000000 0 syz-executor.0 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(ffffffff81f459f9,ffffffff81ef283c,36f,ffffffff81f53e28) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff80001494c270,ffff800014a1fde8) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a1fde8) at namei+0x88a sys/kern/vfs_lookup.c:232 domknodat(ffff80001494c270,ffffff9c,20000180,1ffb,0) at domknodat+0xa1 sys/kern/vfs_syscalls.c:1405 syscall(ffff800014a200b0) at syscall+0x541 Xsyscall(6,0,ffffffffffffff96,0,3,a37488ee010) at Xsyscall+0x128 end of kernel end trace frame: 0xa3a1424c880, 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(ffffffff81f459f9,ffffffff81ef283c,36f,ffffffff81f53e28) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff80001494c270,ffff800014a1fde8) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a1fde8) at namei+0x88a sys/kern/vfs_lookup.c:232 domknodat(ffff80001494c270,ffffff9c,20000180,1ffb,0) at domknodat+0xa1 sys/kern/vfs_syscalls.c:1405 syscall(ffff800014a200b0) at syscall+0x541 Xsyscall(6,0,ffffffffffffff96,0,3,a37488ee010) at Xsyscall+0x128 end of kernel end trace frame: 0xa3a1424c880, count: -8 ddb> show registers rdi 0xffffffff81c210d7 db_enter+0x17 rsi 0x460d __ALIGN_SIZE+0x360d rbp 0xffff800014a1fb80 rbx 0xffff800014a1fc30 rdx 0x460e __ALIGN_SIZE+0x360e rcx 0xffff800002781000 rax 0xffff800002781000 r8 0xffff800014a1fb40 r9 0x1 r10 0xffff800001b3cf80 r11 0xd786ba46516714e5 r12 0x3000000008 r13 0xffff800014a1fb90 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a1fb70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=349215 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff80001494c018,0xffffffff82252c30 process=0xffff8000ffff6d30 user=0xffff800014a1b000, vmspace=0xfffffd803f014108 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 50012 76492 2845 0 2 0 syz-executor.0 *50012 349215 2845 0 7 0x4000000 syz-executor.0 44143 446049 45732 0 2 0x2 syz-executor.1 97533 107089 1 0 3 0x100083 ttyin getty 2845 39440 45732 0 3 0x82 nanosleep syz-executor.0 4960 24679 0 0 3 0x14200 bored sosplice 45732 432520 17248 0 3 0x82 thrsleep syz-fuzzer 45732 117286 17248 0 2 0x4000482 syz-fuzzer 45732 847 17248 0 3 0x4000082 thrsleep syz-fuzzer 45732 347002 17248 0 3 0x4000082 thrsleep syz-fuzzer 45732 47598 17248 0 3 0x4000082 thrsleep syz-fuzzer 45732 273354 17248 0 3 0x4000082 kqread syz-fuzzer 45732 243190 17248 0 3 0x4000082 thrsleep syz-fuzzer 45732 224085 17248 0 3 0x4000082 thrsleep syz-fuzzer 17248 125883 32503 0 3 0x10008a pause ksh 32503 144435 17455 0 3 0x92 select sshd 17455 441934 1 0 3 0x80 select sshd 1578 506160 21940 73 3 0x100090 kqread syslogd 21940 98798 1 0 3 0x100082 netio syslogd 23286 486436 1 77 3 0x100090 poll dhclient 32482 308734 1 0 3 0x80 poll dhclient 46377 30308 0 0 2 0x14200 zerothread 56133 118659 0 0 3 0x14200 aiodoned aiodoned 34510 125882 0 0 3 0x14200 syncer update 22620 114975 0 0 3 0x14200 cleaner cleaner 31316 154571 0 0 3 0x14200 reaper reaper 18381 166745 0 0 3 0x14200 pgdaemon pagedaemon 67230 297356 0 0 3 0x14200 bored crynlk 83752 363681 0 0 3 0x14200 bored crypto 9348 71981 0 0 3 0x40014200 acpi0 acpi0 75073 279162 0 0 3 0x14200 bored softnet 48709 118582 0 0 3 0x14200 bored systqmp 6084 375466 0 0 3 0x14200 bored systq 97655 433027 0 0 3 0x40014200 bored softclock 94222 11748 0 0 3 0x40014200 idle0 8558 46786 0 0 3 0x14200 bored smr 1 230233 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 9523 6354K 6373K 78643K 11111 0 0 pcb 23 9K 10K 78643K 790 0 0 rtable 100 3K 4K 78643K 840 0 0 ifaddr 64 15K 16K 78643K 287 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 37 0 0 iov 0 0K 24K 78643K 229 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1190 75K 75K 78643K 1937 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 1K 78643K 141 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 1313 0 0 sigio 0 0K 0K 78643K 14 0 0 proc 44 38K 54K 78643K 810 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 168 0 0 in_multi 33 2K 2K 78643K 200 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 1 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 367 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 81 20K 24K 78643K 3895 0 0 UVM aobj 66 3K 3K 78643K 76 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 43 0 0 NDP 14 0K 0K 78643K 93 0 0 temp 183 2355K 2483K 78643K 7264 0 0 kqueue 0 0K 0K 78643K 8 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 16 0 12 1 0 1 1 0 8 0 inpcbpl 280 610 0 603 2 0 2 2 0 8 1 plimitpl 152 65 0 58 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 tcpcb 544 204 0 200 1 0 1 1 0 8 0 nd6 48 28 0 24 1 0 1 1 0 8 0 ppxss 1128 33 0 33 8 7 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 703 0 514 12 0 12 12 0 8 0 art_table 32 704 0 514 2 0 2 2 0 8 0 art_node 16 148 0 114 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 112 139 0 129 1 0 1 1 0 8 0 shmpl 112 74 0 10 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3644 0 2142 49 0 49 49 0 8 0 ffsino 240 3644 0 2142 89 0 89 89 0 8 0 nchpl 144 5690 0 4021 63 0 63 63 0 8 0 uvmvnodes 72 4001 0 0 73 0 73 73 0 8 0 vnodes 200 4001 0 0 211 0 211 211 0 8 0 namei 1024 17610 0 17609 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 19346 0 19346 17 16 1 6 0 8 1 sigapl 432 1450 0 1437 2 0 2 2 0 8 0 futexpl 56 20681 0 20681 1 0 1 1 0 8 1 knotepl 112 548 0 529 2 1 1 2 0 8 0 kqueuepl 104 361 0 357 1 0 1 1 0 8 0 pipepl 112 954 0 935 4 3 1 2 0 8 0 fdescpl 424 1451 0 1437 2 0 2 2 0 8 0 filepl 120 9260 0 9164 4 0 4 4 0 8 1 lockfpl 104 361 0 361 2 1 1 1 0 8 1 lockfspl 32 241 0 241 2 1 1 1 0 8 1 sessionpl 112 32 0 22 1 0 1 1 0 8 0 pgrppl 48 62 0 52 1 0 1 1 0 8 0 ucredpl 96 1821 0 1814 1 0 1 1 0 8 0 zombiepl 144 1437 0 1437 2 1 1 1 0 8 1 processpl 840 1466 0 1437 4 0 4 4 0 8 0 procpl 600 3050 0 3013 4 0 4 4 0 8 0 sosppl 128 17 0 17 6 6 0 1 0 8 0 sockpl 384 1306 0 1289 3 0 3 3 0 8 1 mcl64k 65536 425 0 425 51 12 39 47 0 8 39 mcl16k 16384 5 0 5 5 5 0 1 0 8 0 mcl12k 12288 34 0 34 8 7 1 1 0 8 1 mcl9k 9216 27 0 27 7 6 1 1 0 8 1 mcl8k 8192 18 0 18 4 4 0 1 0 8 0 mcl4k 4096 82 0 82 6 5 1 1 0 8 1 mcl2k2 2112 12 0 12 6 5 1 1 0 8 1 mcl2k 2048 49992 0 49963 10 5 5 7 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 89481 0 89416 31 21 10 27 0 8 3 bufpl 256 8814 0 4310 282 0 282 282 0 8 0 anonpl 16 177666 0 170003 82 37 45 52 0 62 9 amapchunkpl 152 6212 0 6132 17 12 5 9 0 158 1 amappl16 192 8705 0 8237 96 66 30 36 0 8 6 amappl15 184 261 0 255 1 0 1 1 0 8 0 amappl14 176 372 0 371 2 1 1 1 0 8 0 amappl13 168 30 0 27 1 0 1 1 0 8 0 amappl12 160 721 0 719 1 0 1 1 0 8 0 amappl11 152 174 0 161 1 0 1 1 0 8 0 amappl10 144 166 0 162 2 1 1 1 0 8 0 amappl9 136 328 0 325 1 0 1 1 0 8 0 amappl8 128 250 0 233 1 0 1 1 0 8 0 amappl7 120 71 0 63 1 0 1 1 0 8 0 amappl6 112 58 0 50 1 0 1 1 0 8 0 amappl5 104 1568 0 1558 1 0 1 1 0 8 0 amappl4 96 1346 0 1319 2 1 1 2 0 8 0 amappl3 88 500 0 494 1 0 1 1 0 8 0 amappl2 80 11821 0 11769 2 0 2 2 0 8 0 amappl1 72 35601 0 35192 25 15 10 19 0 8 0 amappl 72 3343 0 3311 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 75 0 10 2 0 2 2 0 8 0 uaddrrnd 24 1451 0 1437 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1451 0 1437 1 0 1 1 0 8 0 vmmpekpl 168 13600 0 13580 2 0 2 2 0 8 0 vmmpepl 168 162012 0 160617 126 48 78 82 0 357 11 vmsppl 264 1450 0 1437 3 2 1 2 0 8 0 pdppl 4096 2908 0 2874 6 1 5 6 0 8 0 pvpl 32 487679 0 476927 181 59 122 138 0 265 25 pmappl 192 1450 0 1437 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 505 0 56 14 0 14 14 0 8 0