panic: kernel diagnostic assertion "part >= 0 && part < MAXPARTITIONS" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/subr_disk.c", line 1169 Stopped at db_enter+37: addq $8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 178163 26473 0 0 0 0 syz-executor *267859 26473 0 0 0x4000000 1K syz-executor db_enter() at db_enter+37 panic(ffffffff833a13e1) at panic+485 __assert(ffffffff833de65a,ffffffff833bbce4,491,ffffffff833cf36a) at __assert+41 disk_openpart(ffff8000001a1048,13,2000,1) at disk_openpart+525 sdopen(d13,11,2000,ffff8000fffeb4e0) at sdopen+609 spec_open(ffff80003a00fc28) at spec_open+729 VOP_OPEN(fffffd8060a43530,11,fffffd80097fd410,ffff8000fffeb4e0) at VOP_OPEN+139 vn_open(ffff80003a00fe70,11,0) at vn_open+1696 doopenat(ffff8000fffeb4e0,ffffff9c,200000000080,10,0,ffff80003a010020) at doopenat+859 syscall(ffff80003a0100d0) at syscall+3028 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0x1707efe57b0, count: 4 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 "part >= 0 && part < MAXPARTITIONS" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/subr_disk.c", line 1169 ddb{1}> trace db_enter() at db_enter+37 panic(ffffffff833a13e1) at panic+485 __assert(ffffffff833de65a,ffffffff833bbce4,491,ffffffff833cf36a) at __assert+41 disk_openpart(ffff8000001a1048,13,2000,1) at disk_openpart+525 sdopen(d13,11,2000,ffff8000fffeb4e0) at sdopen+609 spec_open(ffff80003a00fc28) at spec_open+729 VOP_OPEN(fffffd8060a43530,11,fffffd80097fd410,ffff8000fffeb4e0) at VOP_OPEN+139 vn_open(ffff80003a00fe70,11,0) at vn_open+1696 doopenat(ffff8000fffeb4e0,ffffff9c,200000000080,10,0,ffff80003a010020) at doopenat+859 syscall(ffff80003a0100d0) at syscall+3028 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0x1707efe57b0, count: -11 ddb{1}> show registers rdi 0 rsi 1 rbp 18446603337194338800 rbx 18446603336919477767 rdx 18446603336242544384 rcx 18446603340516078816 rax 18446603336919474160 r8 72340172838076673 r9 9259542123273814144 r10 16076865473345529037 r11 16988609592048782728 r12 18446603336919477256 r13 0 r14 0 r15 1 rip 18446744071584093749 db_enter+37 cs 8 rflags 582 rsp 18446603337194338784 ss 16 db_enter+37: addq $8,%rsp ddb{1}> show proc PROC (syz-executor) tid=267859 pid=26473 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffeb778,0xffff8000fffeafc0 process=0xffff8000fffece88 user=0xffff80003a00b000, vmspace=0xfffffd806bab3208 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 50998 406318 96066 0 2 0 syz-executor 50998 223241 96066 0 3 0x4000080 fsleep syz-executor 52145 141373 31633 0 2 0 syz-executor 52145 370259 31633 0 3 0x4000080 fsleep syz-executor 26473 178163 45481 0 7 0 syz-executor *26473 267859 45481 0 7 0x4000000 syz-executor 28734 221493 75338 0 2 0 syz-executor 28734 285238 75338 0 3 0x4000080 kqread syz-executor 302 182423 89032 0 2 0 syz-executor 302 161633 89032 0 3 0x4000080 fsleep syz-executor 15275 467579 39199 0 2 0 syz-executor 15275 85384 39199 0 3 0x4000080 fsleep syz-executor 33144 155277 96007 -1 2 0x10 syz-executor 33144 517689 96007 -1 3 0x4000090 msgwait syz-executor 33144 363030 96007 -1 3 0x4000090 rest syz-executor 33144 293066 96007 -1 2 0x4000010 syz-executor 96066 488076 67986 0 3 0x82 nanoslp syz-executor 89032 208324 67986 0 3 0x82 nanoslp syz-executor 75338 299974 67986 0 3 0x82 nanoslp syz-executor 96007 248291 67986 0 3 0x82 nanoslp syz-executor 87503 70388 67986 0 2 0x2 syz-executor 31633 277325 67986 0 3 0x82 nanoslp syz-executor 39199 437207 67986 0 3 0x82 nanoslp syz-executor 45481 8265 67986 0 3 0x82 nanoslp syz-executor 67986 144055 74062 0 3 0x82 kqread syz-executor 74062 290475 76635 0 3 0x10008a sigsusp ksh 76635 326341 1226 0 3 0x98 kqread sshd-session 1226 226829 20621 0 3 0x92 kqread sshd-session 78694 324965 1 0 3 0x100083 ttyopn getty 20621 298515 1 0 3 0x88 kqread sshd 996 515517 76090 74 3 0x1100092 bpf pflogd 76090 63320 1 0 3 0x80 sbwait pflogd 72435 215799 974 73 3 0x1100090 kqread syslogd 974 206818 1 0 3 0x100082 sbwait syslogd 41159 360116 1 0 3 0x100080 kqread resolvd 81951 449154 30430 77 3 0x100092 kqread dhcpleased 58275 336995 30430 77 3 0x100092 kqread dhcpleased 30430 242819 1 0 3 0x80 kqread dhcpleased 259 138758 0 0 2 0x40014200 smr 47122 492380 0 0 2 0x14200 zerothread 66029 308168 0 0 3 0x14200 aiodoned aiodoned 26556 338490 0 0 3 0x14200 syncer update 47411 211812 0 0 3 0x14200 cleaner cleaner 32774 135537 0 0 3 0x14200 reaper reaper 70861 81443 0 0 3 0x14200 pgdaemon pagedaemon 51421 265917 0 0 3 0x14200 bored viomb 34979 342892 0 0 3 0x40014200 acpi0 acpi0 90034 413608 0 0 3 0x40014200 idle1 48838 474045 0 0 3 0x14200 bored softnet1 32684 301996 0 0 3 0x14200 bored softnet0 30473 314217 0 0 3 0x14200 smrbar systqmp 17750 205352 0 0 3 0x14200 bored systq 78695 4981 0 0 3 0x14200 tmoslp softclockmp 53085 438130 0 0 3 0x40014200 tmoslp softclock 33826 4904 0 0 3 0x40014200 idle0 1 27729 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 26473 (syz-executor) thread 0xffff8000fffeb4e0 (267859) exclusive rwlock dklk r = 0 (0xffff8000001a1070) #0 witness_lock+1521 #1 rw_do_enter_write+1049 #2 sdopen+406 #3 spec_open+729 #4 VOP_OPEN+139 #5 vn_open+1696 #6 doopenat+859 #7 syscall+3028 #8 Xsyscall+296 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838b74c8) #0 witness_lock+1521 #1 doopenat+837 #2 syscall+3028 #3 Xsyscall+296 Process 30473 (systqmp) thread 0xffff8000ffffe530 (314217) shared rwlock systqmp r = 0 (0xffffffff838137f8) #0 witness_lock+1521 #1 taskq_thread+298 #2 proc_trampoline+16 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10211 11161K 11353K 166960K 11515 0 pcb 18 17K 18K 166960K 114 0 rtable 217 7K 7K 166960K 377 0 pf 36 18K 82K 166960K 66 0 ifaddr 43 7K 8K 166960K 57 0 ifgroup 55 2K 2K 166960K 76 0 sysctl 4 1K 9K 166960K 10 0 counters 68 36K 37K 166960K 90 0 ioctlops 0 0K 4K 166960K 1560 0 iov 0 0K 4K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1345 85K 85K 166960K 1593 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 5 0 dirhash 12 2K 3K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 93K 166960K 323 0 sigio 0 0K 0K 166960K 6 0 proc 72 115K 164K 166960K 554 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 15 0 in_multi 98 7K 7K 166960K 109 0 ether_multi 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 390 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 238 159K 169K 166960K 4855 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 42 84K 108K 166960K 1452 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 14 0 NDP 12 0K 2K 166960K 34 0 temp 42 8659K 8738K 166960K 10020 0 kqueue 14 22K 28K 166960K 56 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 109 0 106 3 0 3 3 0 8 2 rtentry 176 119 0 21 6 0 6 6 0 8 0 unpcb 144 135 0 118 2 0 2 2 0 8 1 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 43 0 38 1 0 1 1 0 8 0 arp 136 20 0 3 1 0 1 1 0 8 0 inpcb 328 453 0 443 9 0 9 9 0 8 8 nd6 152 25 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 8 0 8 1 0 1 1 0 8 1 pppxif 1504 2 0 2 1 0 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pffrag 232 3 0 0 1 0 1 1 0 482 0 pffrnode 88 3 0 0 1 0 1 1 0 8 0 pffrent 40 3 0 0 1 0 1 1 0 8 0 pfosfp 40 1429 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfstitem 24 32 0 0 1 0 1 1 0 8 0 pfstkey 128 34 0 2 2 0 2 2 0 8 0 pfstate 448 32 0 1 4 0 4 4 0 8 0 pfrule 1344 24 0 19 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 498 0 16 31 0 31 31 0 8 0 art_table 40 499 0 16 5 0 5 5 0 8 0 art_node 32 120 0 22 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semapl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2021 0 511 96 0 96 96 0 8 0 ffsino 296 2021 0 511 117 0 117 117 0 8 0 nchpl 144 2462 0 761 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 2192 0 0 122 0 122 122 0 8 0 namei 1024 8012 0 8012 1 0 1 1 0 8 1 percpumem 16 60 0 11 1 0 1 1 0 8 0 kstatmem 264 38 0 12 3 0 3 3 0 8 1 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scxspl 216 12887 0 12887 10 2 8 8 1 8 8 plimitpl 152 91 0 73 1 0 1 1 0 8 0 sigapl 424 632 0 585 7 1 6 7 0 8 0 knotepl 120 311 0 0 10 0 10 10 0 8 0 kqueuepl 224 123 0 113 3 1 2 3 0 8 1 pipepl 344 143 0 116 4 0 4 4 0 8 1 fdescpl 528 616 0 585 3 0 3 3 0 8 0 filepl 160 3478 0 3259 15 0 15 15 0 8 5 lockfpl 104 87 0 85 1 0 1 1 0 8 0 lockfspl 48 42 0 40 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 36 0 19 1 0 1 1 0 8 0 ucredpl 104 558 0 543 1 0 1 1 0 8 0 zombiepl 144 585 0 585 1 0 1 1 0 8 1 processpl 1232 632 0 585 5 1 4 5 0 8 0 procpl 664 990 0 934 6 0 6 6 0 8 0 sosppl 176 3 0 3 1 0 1 1 0 8 1 sockpl 752 702 0 672 13 2 11 13 0 8 8 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 120 0 0 15 0 15 15 0 8 0 mcl2k 2048 35 0 0 5 0 5 5 0 8 0 mtagpl 96 6 0 0 1 0 1 1 0 8 0 mbufpl 256 175 0 0 11 0 11 11 0 8 0 bufpl 280 5244 0 126 366 0 366 366 0 8 0 anonpl 32 9675 0 0 78 0 78 78 0 246 0 amapchunkpl 152 14298 0 13831 29 0 29 29 0 158 9 amappl16 200 2716 0 2686 23 5 18 22 0 8 9 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 5 0 5 1 1 0 1 0 8 0 amappl13 176 420 0 419 1 0 1 1 0 8 0 amappl12 168 977 0 935 3 0 3 3 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 53 0 39 1 0 1 1 0 8 0 amappl9 144 283 0 283 1 1 0 1 0 8 0 amappl8 136 24 0 22 1 0 1 1 0 8 0 amappl7 128 81 0 79 1 0 1 1 0 8 0 amappl6 120 299 0 286 1 0 1 1 0 8 0 amappl5 112 75 0 65 1 0 1 1 0 8 0 amappl4 104 417 0 388 1 0 1 1 0 8 0 amappl3 96 2389 0 2301 4 1 3 3 0 8 0 amappl2 88 728 0 653 2 0 2 2 0 8 0 amappl1 80 10027 0 9442 15 0 15 15 0 8 2 amappl 88 4086 0 3926 5 0 5 5 0 92 1 uvmvnodes 80 109 0 0 3 0 3 3 0 8 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 254 0 254 2 1 1 1 0 8 1 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 616 0 585 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 616 0 585 1 0 1 1 0 8 0 vmmpekpl 168 6866 0 6830 3 0 3 3 0 8 0 vmmpepl 168 47337 0 45446 103 0 103 103 0 357 10 vmsppl 488 615 0 585 5 0 5 5 0 8 1 rwobjpl 80 16433 0 15420 30 1 29 29 0 8 0 pdppl 4096 1239 0 1170 99 28 71 85 0 8 2 pvpl 32 18229 0 0 148 0 148 148 0 265 0 pmappl 256 615 0 585 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 277 0 30 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+39: addq $8,%rsp x86_ipi_db(ffffffff83868ff0) at x86_ipi_db+39 x86_ipi_handler() at x86_ipi_handler+217 Xresume_lapic_ipi() at Xresume_lapic_ipi+39 __mp_lock(ffffffff838b72c0) at __mp_lock+402 softintr_dispatch(0) at softintr_dispatch+293 dosoftint(0) at dosoftint+84 Xsoftclock() at Xsoftclock+39 end of kernel end trace frame: 0x7d7ca3f85040, count: 8 ddb{0}> trace x86_ipi_db(ffffffff83868ff0) at x86_ipi_db+39 x86_ipi_handler() at x86_ipi_handler+217 Xresume_lapic_ipi() at Xresume_lapic_ipi+39 __mp_lock(ffffffff838b72c0) at __mp_lock+402 softintr_dispatch(0) at softintr_dispatch+293 dosoftint(0) at dosoftint+84 Xsoftclock() at Xsoftclock+39 end of kernel end trace frame: 0x7d7ca3f85040, count: -7 ddb{0}> machine ddbcpu 1 Stopped at db_enter+37: addq $8,%rsp db_enter() at db_enter+37 panic(ffffffff833a13e1) at panic+485 __assert(ffffffff833de65a,ffffffff833bbce4,491,ffffffff833cf36a) at __assert+41 disk_openpart(ffff8000001a1048,13,2000,1) at disk_openpart+525 sdopen(d13,11,2000,ffff8000fffeb4e0) at sdopen+609 spec_open(ffff80003a00fc28) at spec_open+729 VOP_OPEN(fffffd8060a43530,11,fffffd80097fd410,ffff8000fffeb4e0) at VOP_OPEN+139 vn_open(ffff80003a00fe70,11,0) at vn_open+1696 doopenat(ffff8000fffeb4e0,ffffff9c,200000000080,10,0,ffff80003a010020) at doopenat+859 syscall(ffff80003a0100d0) at syscall+3028 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0x1707efe57b0, count: 4 ddb{1}> trace db_enter() at db_enter+37 panic(ffffffff833a13e1) at panic+485 __assert(ffffffff833de65a,ffffffff833bbce4,491,ffffffff833cf36a) at __assert+41 disk_openpart(ffff8000001a1048,13,2000,1) at disk_openpart+525 sdopen(d13,11,2000,ffff8000fffeb4e0) at sdopen+609 spec_open(ffff80003a00fc28) at spec_open+729 VOP_OPEN(fffffd8060a43530,11,fffffd80097fd410,ffff8000fffeb4e0) at VOP_OPEN+139 vn_open(ffff80003a00fe70,11,0) at vn_open+1696 doopenat(ffff8000fffeb4e0,ffffff9c,200000000080,10,0,ffff80003a010020) at doopenat+859 syscall(ffff80003a0100d0) at syscall+3028 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0x1707efe57b0, count: -11