<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ð<ž»ÕUþÿ––º>Ðpanic: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/main/kernel/sys/net/if_tun.c", line 315 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *360951 11783 0 0x2 0 0 ifconfig db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff827d347f,13b,ffffffff827b3ae6) at __assert+0x25 sys/kern/subr_prf.c:157 tun_clone_destroy(ffff800000d28800) at tun_clone_destroy+0x234 sys/net/if_tun.c:315 if_clone_destroy(ffff80002ba1ff20) at if_clone_destroy+0x132 sys/net/if.c:1247 sys_ioctl(ffff8000ffff9310,ffff80002ba20030,ffff80002ba20080) at sys_ioctl+0x49e syscall(ffff80002ba20100) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe60f0, 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 *cpu0: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/main/kernel/sys/net/if_tun.c", line 315 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff827d347f,13b,ffffffff827b3ae6) at __assert+0x25 sys/kern/subr_prf.c:157 tun_clone_destroy(ffff800000d28800) at tun_clone_destroy+0x234 sys/net/if_tun.c:315 if_clone_destroy(ffff80002ba1ff20) at if_clone_destroy+0x132 sys/net/if.c:1247 sys_ioctl(ffff8000ffff9310,ffff80002ba20030,ffff80002ba20080) at sys_ioctl+0x49e syscall(ffff80002ba20100) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe60f0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002ba1fdb0 rbx 0x80206979 __kernel_virt_to_phys+0x206979 rdx 0 rcx 0 rax 0xffff8000ffff9310 r8 0x101010101010101 r9 0x8080808080808080 r10 0x29b6614169fa316c r11 0xdd896de98e1319cd r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff81a69eb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002ba1fda0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (ifconfig) pid=360951 stat=onproc flags process=2 proc=0 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff8000fffec598,0xffffffff82cf3498 process=0xffff800021710fc0 user=0xffff80002ba1b000, vmspace=0xfffffd807212e818 estcpu=24, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *11783 360951 34396 0 7 0x2 ifconfig 34396 48890 75529 0 3 0x10008a sigsusp sh 75529 515315 85403 0 3 0x82 wait syz-executor.0 61951 2851 85403 0 3 0x82 piperd syz-executor.3 9971 232527 85403 0 3 0x82 piperd syz-executor.2 47188 457508 85403 0 3 0x82 piperd syz-executor.6 61366 496925 0 0 3 0x14280 nfsidl nfsio 73840 63641 0 0 3 0x14280 nfsidl nfsio 2027 498234 0 0 3 0x14280 nfsidl nfsio 5505 226449 0 0 3 0x14280 nfsidl nfsio 52935 7486 0 0 3 0x14280 nfsidl nfsio 71212 421423 0 0 3 0x14280 nfsidl nfsio 18024 32748 0 0 3 0x14280 nfsidl nfsio 45157 63832 0 0 3 0x14280 nfsidl nfsio 74498 7129 0 0 3 0x14280 nfsidl nfsio 37751 488603 0 0 3 0x14280 nfsidl nfsio 3416 139616 0 0 3 0x14280 nfsidl nfsio 77986 409280 0 0 3 0x14280 nfsidl nfsio 25865 175211 0 0 3 0x14280 nfsidl nfsio 11623 32341 0 0 3 0x14280 nfsidl nfsio 87430 350044 0 0 3 0x14280 nfsidl nfsio 72598 30272 0 0 3 0x14280 nfsidl nfsio 65679 404801 0 0 3 0x14280 nfsidl nfsio 44506 264732 0 0 3 0x14280 nfsidl nfsio 50079 152979 0 0 3 0x14280 nfsidl nfsio 92118 37225 0 0 3 0x14280 nfsidl nfsio 95201 467855 85403 0 3 0x82 piperd syz-executor.7 65059 268978 0 0 3 0x14200 acct acct 55220 425539 85403 0 3 0x82 piperd syz-executor.4 52285 97325 0 0 3 0x14200 bored sosplice 76289 51113 85403 0 3 0x82 piperd syz-executor.5 14193 40176 85403 0 3 0x82 piperd syz-executor.1 85403 197962 55632 0 3 0x82 wait syz-fuzzer 85403 151353 55632 0 2 0x4000482 syz-fuzzer 85403 457692 55632 0 3 0x4000082 wait syz-fuzzer 85403 345437 55632 0 3 0x4000082 thrsleep syz-fuzzer 85403 249717 55632 0 3 0x4000082 wait syz-fuzzer 85403 180807 55632 0 3 0x4000082 wait syz-fuzzer 85403 48284 55632 0 3 0x4000082 wait syz-fuzzer 85403 87795 55632 0 3 0x4000082 thrsleep syz-fuzzer 85403 293716 55632 0 3 0x4000082 wait syz-fuzzer 85403 73385 55632 0 3 0x4000082 thrsleep syz-fuzzer 85403 128703 55632 0 3 0x4000082 thrsleep syz-fuzzer 85403 22642 55632 0 3 0x4000082 wait syz-fuzzer 85403 38018 55632 0 3 0x4000082 wait syz-fuzzer 85403 278695 55632 0 3 0x4000082 thrsleep syz-fuzzer 55632 192507 93042 0 3 0x10008a sigsusp ksh 93042 369845 43907 0 3 0x9a kqread sshd 74773 85432 1 0 3 0x100083 ttyin getty 43907 381115 1 0 3 0x88 kqread sshd 41000 87563 36194 73 3 0x1100090 kqread syslogd 36194 492721 1 0 3 0x100082 netio syslogd 43636 427376 1 0 3 0x100080 kqread resolvd 28150 222514 0 0 3 0x14200 bored smr 22196 287493 0 0 2 0x14200 zerothread 92650 287187 0 0 3 0x14200 aiodoned aiodoned 83121 397745 0 0 3 0x14200 syncer update 9800 374443 0 0 3 0x14200 cleaner cleaner 15548 166060 0 0 3 0x14200 reaper reaper 17516 449719 0 0 3 0x14200 pgdaemon pagedaemon 38075 130539 0 0 3 0x14200 bored viomb 27779 474743 0 0 3 0x40014200 acpi0 acpi0 77407 215085 0 0 3 0x14200 bored softnet 97659 393986 0 0 3 0x14200 bored softnet 91350 343948 0 0 3 0x14200 bored softnet 94305 419756 0 0 3 0x14200 bored softnet 95212 294019 0 0 3 0x14200 bored systqmp 21508 333547 0 0 3 0x14200 bored systq 95031 392237 0 0 2 0x40014200 softclock 85182 343945 0 0 3 0x40014200 idle0 1 35708 0 0 3 0x80082 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 devbuf 10219 6431K 6660K 78643K 12517 0 pcb 13 13K 15K 78643K 639 0 rtable 185 14K 15K 78643K 1186 0 ifaddr 81 22K 23K 78643K 347 0 counters 28 17K 17K 78643K 166 0 ioctlops 0 0K 4K 78643K 436 0 iov 0 0K 32K 78643K 813 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1377 86K 86K 78643K 3543 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 40 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 788 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 12 41K 73K 78643K 3162 0 sigio 0 0K 0K 78643K 153 0 proc 60 51K 75K 78643K 974 0 subproc 104 6K 6K 78643K 289 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 90 0 in_multi 80 5K 7K 78643K 415 0 ether_multi 1 0K 0K 78643K 27 0 mrt 1 0K 0K 78643K 10 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 241 1076K 1076K 78643K 241 0 exec 0 0K 1K 78643K 906 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 8 62K 64K 78643K 10 0 UVM amap 240 83K 96K 78643K 21637 0 UVM aobj 80 3K 3K 78643K 101 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 68 0 NDP 13 0K 1K 78643K 120 0 temp 132 5770K 6798K 78643K 37462 0 kqueue 6 10K 26K 78643K 340 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 331 0 330 5 4 1 3 0 8 0 rtentry 112 359 0 280 4 0 4 4 0 8 0 unpcb 144 8807 0 8801 65 59 6 8 0 8 5 syncache 296 25 0 25 6 5 1 1 0 8 1 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 165 0 165 2 2 0 1 0 8 0 tcpcb 776 1295 0 1291 63 62 1 14 0 8 0 arp 88 50 0 37 1 0 1 1 0 8 0 ipq 40 5 0 5 2 2 0 1 0 8 0 ipqe 40 8 0 8 2 2 0 1 0 8 0 inpcb 336 3731 0 3726 91 84 7 18 0 8 6 nd6 48 78 0 60 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 kcovpl 48 22 0 14 1 0 1 1 0 8 0 ppxss 1160 99 0 99 8 8 0 1 0 8 0 pppxif 1360 79 0 79 6 6 0 1 0 8 0 pfstscr 40 43 0 36 1 0 1 1 0 8 0 pfanchor 1280 688 0 380 32 2 30 32 0 8 0 pfstitem 24 14 0 0 1 0 1 1 0 8 0 pfstkey 128 86 0 81 1 0 1 1 0 8 0 pfstate 352 43 0 36 1 0 1 1 0 8 0 rttmr 136 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 6 0 4 5 2 3 3 0 8 1 art_heap4 256 1815 0 1409 48 20 28 31 0 8 0 art_table 32 1821 0 1413 4 0 4 4 0 8 0 art_node 16 355 0 286 1 0 1 1 0 8 0 sysvmsgpl 40 94 0 77 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 785 0 775 1 0 1 1 0 8 0 shmpl 112 98 0 21 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5842 0 4412 90 0 90 90 0 8 0 ffsino 240 5842 0 4412 85 0 85 85 0 8 0 nchpl 144 10377 0 8748 63 1 62 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 39602 0 39602 8 7 1 3 0 8 1 vmpool 664 17 0 17 4 4 0 1 0 8 0 kstatmem 264 134 0 108 2 0 2 2 0 8 0 scsiplug 72 9 0 9 3 2 1 1 0 8 1 scxspl 216 43174 0 43174 17 16 1 8 0 8 1 plimitpl 152 776 0 762 1 0 1 1 0 8 0 sigapl 424 3453 0 3395 8 0 8 8 0 8 0 futexpl 64 34770 0 34770 7 6 1 1 0 8 1 knotepl 120 62967 0 62901 42 31 11 16 0 8 7 kqueuepl 184 633 0 628 7 6 1 4 0 8 0 pipepl 288 1038 0 1010 19 15 4 7 0 8 1 fdescpl 432 3412 0 3392 10 7 3 4 0 8 0 filepl 120 32763 0 32548 79 66 13 17 0 8 5 lockfpl 104 1056 0 1055 5 3 2 2 0 8 1 lockfspl 48 194 0 193 1 0 1 1 0 8 0 sessionpl 144 37 0 22 1 0 1 1 0 8 0 pgrppl 48 57 0 42 1 0 1 1 0 8 0 ucredpl 104 3537 0 3530 1 0 1 1 0 8 0 zombiepl 144 3395 0 3395 1 0 1 1 0 8 1 processpl 1008 3453 0 3395 10 1 9 9 0 8 0 procpl 696 7987 0 7916 14 5 9 9 0 8 1 sosppl 168 55 0 55 7 6 1 1 0 8 1 sockpl 456 12882 0 12870 335 325 10 31 0 8 8 mcl64k 65536 123 0 123 15 14 1 1 0 8 1 mcl16k 16384 87 0 87 16 15 1 1 0 8 1 mcl12k 12288 85 0 85 16 15 1 1 0 8 1 mcl9k 9216 40 0 40 10 9 1 1 0 8 1 mcl8k 8192 437 0 437 18 17 1 1 0 8 1 mcl4k 4096 368 0 368 15 14 1 1 0 8 1 mcl2k2 2112 16 0 16 9 8 1 1 0 8 1 mcl2k 2048 82810 0 82763 43 35 8 31 0 8 0 mtagpl 96 115 0 115 5 4 1 3 0 8 1 mbufpl 256 189737 0 189601 345 319 26 75 0 8 8 bufpl 288 9996 0 3602 458 0 458 458 0 8 0 anonpl 24 763828 0 750233 201 79 122 167 0 188 0 amapchunkpl 152 66662 0 66074 93 59 34 59 0 158 0 amappl16 200 7071 0 6516 53 23 30 42 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 203 0 193 2 1 1 2 0 8 0 amappl13 176 7 0 6 1 0 1 1 0 8 0 amappl12 168 554 0 552 1 0 1 1 0 8 0 amappl11 160 44 0 39 1 0 1 1 0 8 0 amappl10 152 46 0 37 1 0 1 1 0 8 0 amappl9 144 982 0 981 1 0 1 1 0 8 0 amappl8 136 188 0 131 3 0 3 3 0 8 1 amappl7 128 176 0 158 2 0 2 2 0 8 0 amappl6 120 251 0 236 2 1 1 2 0 8 0 amappl5 112 206 0 202 1 0 1 1 0 8 0 amappl4 104 658 0 632 2 1 1 2 0 8 0 amappl3 96 9214 0 9184 2 0 2 2 0 8 0 amappl2 88 3915 0 3867 3 1 2 3 0 8 0 amappl1 80 78211 0 77707 29 14 15 26 0 8 0 amappl 88 20946 0 20808 5 0 5 5 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 100 0 21 2 0 2 2 0 8 0 uaddrrnd 24 3429 0 3409 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3429 0 3409 1 0 1 1 0 8 0 vmmpekpl 168 30283 0 30234 3 0 3 3 0 8 0 vmmpepl 168 319195 0 317220 246 126 120 153 0 357 10 vmsppl 344 3428 0 3409 3 0 3 3 0 8 0 rwobjpl 24 88142 0 80720 47 1 46 47 0 8 0 pdppl 4096 6864 0 6818 325 269 56 68 0 8 10 pvpl 32 1554130 0 1536044 475 259 216 333 0 265 15 pmappl 216 3428 0 3409 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1593 0 819 24 0 24 24 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff827d347f,13b,ffffffff827b3ae6) at __assert+0x25 sys/kern/subr_prf.c:157 tun_clone_destroy(ffff800000d28800) at tun_clone_destroy+0x234 sys/net/if_tun.c:315 if_clone_destroy(ffff80002ba1ff20) at if_clone_destroy+0x132 sys/net/if.c:1247 sys_ioctl(ffff8000ffff9310,ffff80002ba20030,ffff80002ba20080) at sys_ioctl+0x49e syscall(ffff80002ba20100) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe60f0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff827d347f,13b,ffffffff827b3ae6) at __assert+0x25 sys/kern/subr_prf.c:157 tun_clone_destroy(ffff800000d28800) at tun_clone_destroy+0x234 sys/net/if_tun.c:315 if_clone_destroy(ffff80002ba1ff20) at if_clone_destroy+0x132 sys/net/if.c:1247 sys_ioctl(ffff8000ffff9310,ffff80002ba20030,ffff80002ba20080) at sys_ioctl+0x49e syscall(ffff80002ba20100) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe60f0, count: -8