last executing test programs: 506.441376ms ago: executing program 6 (id=7): r0 = syz_open_pts() r1 = openat$pf(0xffffffffffffff9c, &(0x7f00000002c0), 0x2, 0x0) pipe(&(0x7f0000000000)={0xffffffffffffffff, 0xffffffffffffffff}) write(r2, &(0x7f00000002c0)="7c84cf179279b50eda5dd1951a661d2e3a20851082c188f8b3d8a063d2025ff0d27a44bc29bdcac27fcb7aaa95cb2007be22c5553cd2f66a1f419a83d4275218a89d7a7803f069d851ff628dd309c40f6e3c932af00cb6219ae6e21d2c28d492cd5404b16dfa627d93b1e8ad2ea49d2344c1a3b234bd6f1c70fd4252844a6e6ab7b8997bc55fa22ce951ee038d289078b95510b0f2473ce1348434f0ec4a885ee84fd08fc50f08ca7991af3f8c322b496466f804c4b700cc9391855bd0ee339196de2b5ec2d8425c711d3f9e051eb055d45c693d7549712f5284a9fbca7d15c5bf1a9c8e3b3c1a43983056782e046c29e3d57082f7743b8bf6d994cd3c26c85609eaa11e6f7bc4", 0xfffffdaf) sendto$unix(r2, &(0x7f0000000180)="5a51121630538d8df7008baabde46901b9623190088c91222a76f1a4b7d048e333cb11d8fd0205392021dd1aad7bcd1befa7f4264f42387d0c38571c1c543dc837db5d7a8e90ce47b4171e8ecda6fad1a8669dc7069d767c6f6239bccac15ef463bab0c080a87e2e59544d84428c87a17711c63e0a58d9aec1def60846", 0x7d, 0x401, 0x0, 0x0) ioctl$TIOCSETA(r1, 0x80d04466, &(0x7f0000000040)={0x4000001, 0xe, 0x800009, 0x7012, "8800200002000000583006830500956800", 0x10001ab6, 0x10000000}) syz_emit_ethernet(0xe, &(0x7f0000000000)=ANY=[@ANYBLOB="0000000000000001"]) writev(0xffffffffffffffff, &(0x7f0000000580)=[{&(0x7f0000000000)="c886b4d3e0", 0x5}], 0x1) syz_emit_ethernet(0x138, &(0x7f0000000000)=ANY=[@ANYBLOB="ff02"]) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x1) r3 = socket(0x2, 0x2, 0x0) bind(r3, &(0x7f0000000000), 0x10) connect$unix(r3, &(0x7f0000000000), 0x10) dup3(0xffffffffffffffff, 0xffffffffffffffff, 0x0) sendto$inet(r3, 0x0, 0x0, 0x0, 0x0, 0x0) ioctl$TIOCSETA(r0, 0x802c7414, &(0x7f00000000c0)={0x7b, 0xfffffff6, 0x5, 0x3, "a51cfb42d122f2451a71b1e986151fcf05d8298f", 0x3, 0x1}) setegid(0xffffffffffffffff) r4 = getegid() setresgid(r4, r4, r4) sendmsg$unix(0xffffffffffffffff, &(0x7f0000001700)={&(0x7f00000000c0), 0x1c, 0x0}, 0x0) sysctl$net_inet_tcp(0x0, 0x0, &(0x7f00000000c0)="9b18", 0x0, 0x0, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) r5 = socket(0x18, 0x1, 0x0) close(r5) socket(0x18, 0x2, 0x0) sendmsg$unix(r5, &(0x7f0000001700)={0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x406}, 0x0) syz_emit_ethernet(0xb8, &(0x7f0000000200)=ANY=[@ANYBLOB="ffffffffffffffffffffffff0800450000aa0067000000119078ffffffffac1400aa00009078006600007ece73b20003192e34557614197e848921653c2d12e8f9f30a87d356c4155235945219eb0ff8e0a9359aba00ab2c766a8d2538109e965677ae2a3f0b9557b60bec5eac4fdae4810dafbc70c2bf4eac84c8f89d2efa342f6e4c6a3505d550818844bcbac315ca5b22a5f91f2d139b2a394514b499b21a10005f9bf7aba72ced9e09fc39ad99b31ff325b6432e2dde4c8fbb0aa7fc2444"]) ioctl$BIOCFLUSH(r1, 0x20004268) fstat(r3, &(0x7f0000000100)={0x0, 0x0, 0x0, 0x0, 0x0}) setuid(r6) 472.285057ms ago: executing program 5 (id=6): r0 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000080), 0x100, 0x0) ioctl$BIOCSBLEN(r0, 0xc0044266, &(0x7f00000000c0)=0x34) ioctl$BIOCSETIF(r0, 0x8020426c, &(0x7f0000000500)={'tap', 0x0}) sysctl$net_inet_udp(&(0x7f0000000040)={0x4, 0x2, 0x11, 0x2}, 0x4, 0x0, 0x0, 0xffffffffffffffff, 0x0) poll(&(0x7f0000000000)=[{0xffffffffffffffff, 0x6}], 0x1, 0x1) pread(r0, &(0x7f0000000600)="e7077b6629e0397383eaeac9193e79db7bbbad786e7bbb921dff532158d0b49a3e7de9f2d8fdefa9e6fddc16bcd369b9fc28dc5e", 0x34, 0x8000000000000005) ioctl$BIOCSETIF(0xffffffffffffffff, 0x8020426c, &(0x7f0000000100)={'tap', 0x0}) r1 = socket$inet(0x2, 0x3, 0x0) ioctl$FIONREAD(r1, 0x80206979, &(0x7f0000000100)) 464.00614ms ago: executing program 1 (id=2): ioctl$WSMUXIO_REMOVE_DEVICE(0xffffffffffffffff, 0x80085762, &(0x7f0000000040)={0x1}) sysctl$hw(&(0x7f0000000040)={0x6, 0x16}, 0x2, &(0x7f00000000c0), 0x0, 0x0, 0x0) mknod(&(0x7f0000000000)='./file0\x00', 0x2000, 0x6381) r0 = open(&(0x7f0000000080)='./file0\x00', 0x0, 0x0) ioctl$FIONREAD(r0, 0x4004667f, &(0x7f00000000c0)) mknod(&(0x7f0000000040)='./file0\x00', 0x6000, 0xe02) recvfrom$unix(0xffffffffffffff9c, &(0x7f0000000380)=""/21, 0x15, 0x3043, &(0x7f00000003c0)=@file={0x3, 0x1, './file0\x00'}, 0xa) ioctl$BIOCGETIF(r0, 0x4020426b, &(0x7f0000000140)={""/16, @ifru_broadaddr=@un=@abs}) r1 = open(&(0x7f0000000200)='./file0\x00', 0x1, 0x0) sendto(r1, &(0x7f0000000280)="faf8f47b6f7e0d003973169acf972cea8bae44289b85898d059626f3f058d7e533d18118d07b3ed72aea62cc6c31885c0346cce04e44b7bfd10d1263ac8fa3c9c77940d18e311e511966093d6dd87bcfb645f9c08da394c4fe9c09a349cdf0950f8bcced8ad4a3593a42840bc20a6e16885a9f5415f4ba2d83b268504f59035d488212f457e9bf5f8e86779e64c8e6c9675e3b6c38a1df03e79fd2b087ef599102b1bd7320bf079b6151aa56995d9a327cd7d0af57b5d1a2", 0xb8, 0xe, &(0x7f0000000340)=@in6={0x1c, 0x18, 0x3, 0x9, "247779d4992a9feef0e4ebbe801cf91b", 0x2}, 0x1c) setuid(0xee01) write(r1, &(0x7f0000000240)="ab", 0x1) r2 = socket(0x18, 0xc003, 0x3a) setsockopt(r2, 0x29, 0x6c, &(0x7f0000000040), 0x4) setsockopt$inet6_MRT6_ADD_MIF(r2, 0x29, 0x66, &(0x7f0000000000)={0x0, 0x1, 0x10, 0x1}, 0xc) r3 = openat$pf(0xffffffffffffff9c, &(0x7f00000001c0), 0x1, 0x0) getdents(r3, 0x0, 0x0) sysctl$net_inet6_ip6(&(0x7f0000000180)={0x4, 0x18, 0x29, 0x34}, 0x4, 0x0, &(0x7f0000000100), 0x0, 0x0) 454.827741ms ago: executing program 2 (id=3): mknod(&(0x7f0000000200)='./file0\x00', 0x2000, 0x412dff) r0 = open(&(0x7f0000000380)='./file0\x00', 0x80000000000206, 0x4ebfac6bbaf79e5) writev(r0, &(0x7f0000000140)=[{&(0x7f0000000080)='#', 0x1}, {&(0x7f0000000040)="2187", 0x2}], 0x2) open(&(0x7f0000000000)='./file0\x00', 0x2, 0x167) r1 = socket$inet(0x2, 0x3, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) ktrace(&(0x7f0000000000)='./file0\x00', 0x4, 0x538, 0x0) recvmmsg(r1, &(0x7f0000002380)={{0x0, 0x0, 0x0, 0x0, 0x0}}, 0x38, 0x1882, 0x0) 429.407889ms ago: executing program 0 (id=1): r0 = socket(0x18, 0x3, 0x85) syz_open_pts() syz_open_pts() sysctl$kern(&(0x7f0000000000)={0x1, 0x4d}, 0x2, 0x0, 0x0, &(0x7f0000001440)="02000000", 0x4) syz_open_pts() r1 = socket(0x18, 0x2, 0x0) ioctl$BIOCSETIF(0xffffffffffffffff, 0x8020426c, &(0x7f00000001c0)={'tap', 0x0}) ioctl$FIONREAD(r1, 0x8020699d, &(0x7f00000001c0)) sendmmsg(r0, &(0x7f0000000240)={{&(0x7f0000000180)=@in6={0x1c, 0x18, 0x3, 0x9, "2e1dc94e421fe749babb0b503b26e15b", 0x8}, 0x1c, 0x0, 0x0, &(0x7f0000000040)=[{0xd4, 0x29, 0xbe, "354f51319cb38dfe96761ef5bf404ba4c7e3b8cc532553d96869ff487de9a13d8ba6e6180983c824a7632557bb7ac1fabcec8c6c62e47c9770328401a6cd05ad5572b55db3e419649d557a6f2ec635c1a6c4afddde67f4d4fcef41b29dd1762c513580b4bb1ea7fa3ce0dee358954f2482d37cf4f984ee1116896ca070fd12cc5ae54ba6e5d8e009ad24e28a44ce8e6d31772affe8151266482cf0f76b7196ccce67bcd1fe635c5be2c302dd6811f0c56a335fabc5c92c5208aa00408a9a5129fe0c3aed7a"}], 0xd4}}, 0x38, 0x0) 424.089292ms ago: executing program 2 (id=9): r0 = syz_open_pts() ioctl$TIOCSETA(r0, 0x802c7414, &(0x7f0000000000)={0xffffffff, 0x10001, 0x7fff, 0xaf7d, "37ff6e25efa8296c4a1fc272b5fac8bba488ee6e", 0xffffff81, 0x11400000}) ioctl$VMM_IOC_RESETCPU(0xffffffffffffff9c, 0x82405605, &(0x7f0000000100)={0x0, 0x9, {[0xfffffbfffffffffb, 0x1, 0x0, 0x100200000, 0x4, 0x7, 0xdf60, 0xffffffffffffffff, 0x0, 0x4, 0x93, 0xfffffffffffffff8, 0xffffffffffffffff, 0x200000000002, 0xd, 0x4, 0xfffffffffffffffe, 0x400000000100], [0xfffffffffffffffe, 0x6, 0xfffffffffffffffa, 0x20200001, 0xc, 0x100000000007b98, 0x800, 0x9, 0x0, 0xfffffffffffffffe], [0x100000001, 0x8000, 0x40000002, 0x0, 0xb, 0x11000, 0xffffffff00000000], [0x9, 0x1fffffffffb, 0x80000004, 0x4000000, 0xfffffffffffffffe, 0x90000000], [{0x0, 0x0, 0x0, 0x7d06}, {0x9, 0x80000000, 0x5}, {0x4, 0x8, 0xfffffefe, 0x280}, {0x3, 0x4, 0x5, 0xffffffffffffffff}, {0x4000, 0x2, 0x7d, 0x8}, {0x4, 0x9, 0x9, 0x2000000000000000}, {0x5, 0x0, 0xfffffff7, 0xe}, {0xe, 0x100, 0x1, 0x22a}], {0x801, 0x8, 0x80000006, 0x3}, {0xfffe, 0x6, 0x6d5, 0x6}}}) r1 = kqueue() kevent(r1, &(0x7f0000000040), 0x9ae8, 0x0, 0x91, 0x0) ioctl$BIOCSETIF(0xffffffffffffffff, 0x8020426c, &(0x7f00000001c0)={'tap', 0x0}) r2 = socket(0x1, 0x2, 0x0) ioctl$FIONREAD(r2, 0xc02069b6, &(0x7f00000001c0)) writev(0xffffffffffffffff, &(0x7f0000000240)=[{&(0x7f0000000200)="10", 0x1}], 0x1) r3 = socket$inet(0x2, 0x2, 0x0) setsockopt$inet_opts(r3, 0x0, 0x200000000000c, &(0x7f0000000240)="ea00070100000000", 0xc) setsockopt$inet_opts(r3, 0x0, 0x200000000000c, &(0x7f0000000240)="ea00000100000000", 0x8) close(r1) 273.864765ms ago: executing program 2 (id=10): mknod(&(0x7f0000000200)='./file0\x00', 0x2000, 0x4287e) mknod(&(0x7f0000000240)='./bus\x00', 0x2000, 0x654) r0 = open(&(0x7f0000000000)='./bus\x00', 0x0, 0x0) poll(&(0x7f0000000180)=[{r0, 0x84}], 0x1, 0x400) closefrom(r0) r1 = open(&(0x7f0000000100)='./file0\x00', 0x70e, 0x0) pwrite(r1, &(0x7f0000000240)="f45a7121", 0x4, 0x4) mknod(&(0x7f0000000040)='./file0\x00', 0x6000, 0xe02) r2 = open(&(0x7f0000000200)='./file0\x00', 0x0, 0x9) preadv(r2, &(0x7f00000003c0)=[{&(0x7f0000000a40)=""/198, 0xc6}], 0x1, 0x1000) 184.545865ms ago: executing program 0 (id=11): symlink(&(0x7f0000000000)='.\x00', &(0x7f0000000040)='./file0\x00') unveil(&(0x7f00000000c0)='./file0/file0/..\x00', &(0x7f0000000100)='c\x00') r0 = open(&(0x7f0000000140)='./file0\x00', 0x0, 0x0) ioctl$TIOCSETA(r0, 0xc0205603, &(0x7f0000000040)={0xe64, 0x4, 0x6, 0x80000000, "97f3b45700", 0x2000, 0xffffffff}) syz_emit_ethernet(0xe, &(0x7f0000000200)=ANY=[@ANYBLOB="0000000000000001", @ANYRES32]) writev(0xffffffffffffffff, &(0x7f0000000580)=[{&(0x7f0000000000)="c886b4d3e0", 0x5}], 0x1) syz_emit_ethernet(0x138, &(0x7f0000000000)=ANY=[@ANYBLOB="ff02"]) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x1) r1 = socket(0x2, 0x2, 0x0) bind(r1, &(0x7f0000000000), 0x10) r2 = openat$wskbd(0xffffffffffffff9c, &(0x7f00000014c0), 0x1, 0x0) ioctl$WSKBDIO_GETENCODINGS(r2, 0xc0105715, &(0x7f0000001540)={0x400000000000013b, &(0x7f0000001500)=[0x0, 0x0, 0x0]}) connect$unix(r1, &(0x7f0000000000), 0x10) chmod(&(0x7f0000000040)='.\x00', 0x35e) setuid(0xee01) mkdirat(0xffffffffffffff9c, &(0x7f0000000340)='./file0\x00', 0xc4) chdir(&(0x7f0000000100)='./file0\x00') rename(&(0x7f00000003c0)='.\x00', &(0x7f0000000400)='.\x00') sendto$inet(r1, 0x0, 0x0, 0x0, 0x0, 0x0) unveil(&(0x7f0000000480)='./file0/file1\x00', &(0x7f00000004c0)='c\x00') execve(&(0x7f0000000180)='./file0\x00', 0x0, 0x0) r3 = openat$pf(0xffffffffffffff9c, &(0x7f0000000080), 0x14982, 0x0) r4 = socket(0x2, 0x400000000002, 0x0) setsockopt(r4, 0x0, 0x7, &(0x7f0000000080)="c5f5d915", 0x4) ioctl$DIOCCLRSTATUS(r3, 0xc0284416, &(0x7f00000006c0)={'./file0\x00', 0x0, 0x3, 0x8, 0x1800, 0x3}) 165.982635ms ago: executing program 3 (id=4): mknodat(0xffffffffffffff9c, &(0x7f0000000000)='./bus\x00', 0x2000, 0x4804) mknod(&(0x7f0000000140)='./bus\x00', 0x2000, 0x7) open(&(0x7f0000000080)='./bus/file1\x00', 0x80, 0x143) r0 = getpgrp() r1 = openat$pf(0xffffffffffffff9c, &(0x7f0000000000), 0x80, 0x0) socketpair$unix(0x1, 0x1, 0x0, &(0x7f0000000180)={0xffffffffffffffff, 0xffffffffffffffff}) sendmsg$unix(r3, &(0x7f00000000c0)={0x0, 0x0, 0x0, 0x0, &(0x7f0000000100)=ANY=[@ANYBLOB="28000000ffff000001"], 0x28}, 0x0) closefrom(r3) r4 = dup2(r2, r3) ioctl$DRM_IOCTL_MODE_GETFB2(0xffffffffffffffff, 0xc06864ce, &(0x7f0000000000)={0x0, 0x6, 0x3, 0x34324241, 0x2, [], [0x1, 0x2, 0x0, 0x5], [0x2, 0xffff0797, 0x0, 0x2], [0x3, 0xfff, 0x7, 0x1]}) recvmmsg(r2, &(0x7f0000000000)={{0x0, 0x0, 0x0, 0x0, 0x0}, 0xfffffffd}, 0x38, 0x2000, 0x0) poll(&(0x7f0000000340)=[{r3, 0x4}, {r4, 0x1}, {r3, 0x10}, {r4, 0x40}, {r2, 0x100}, {r3, 0x100}, {r3, 0x2}, {r3, 0x4}, {r4, 0x26}], 0x9, 0x10001) recvmsg(r2, &(0x7f0000002700)={0x0, 0x0, &(0x7f0000001680)=[{&(0x7f0000000240)=""/184, 0x4f}], 0x1, 0x0}, 0x1040) r5 = socket(0x1, 0x2, 0x0) madvise(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x2) open$dir(&(0x7f00000000c0)='./file0\x00', 0xf02, 0x186) r6 = open$dir(&(0x7f00000000c0)='./file0\x00', 0x2, 0x0) pwritev(r6, &(0x7f0000000080)=[{&(0x7f0000000000)="1cd2d176f4b8f82c1d09936270286ea75b958983a9f15438392f4d2feb0900000000000ef962", 0xa8269}], 0x1, 0x80c) ioctl$FIONREAD(r5, 0x40047307, &(0x7f00000001c0)) ioctl$TIOCSETA(r1, 0xc148445e, &(0x7f0000000300)={0x10, 0x8, 0x0, 0x0, "97a2224ff1c14a06ebb178926cc9795a6b47c1d1", 0x2b, 0xfffffffe}) sysctl$vfs_nfs(&(0x7f0000000900)={0xa, 0x2, 0x1}, 0x3, 0x0, &(0x7f0000001940), 0x0, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x4) sysctl$vfs_nfs(&(0x7f0000000900)={0xa, 0x2, 0x1}, 0x3, &(0x7f0000000940), &(0x7f0000001940), 0x0, 0x0) getsid(r0) 85.026476ms ago: executing program 0 (id=12): r0 = openat$bpf(0xffffffffffffff9c, 0x0, 0x100, 0x0) ioctl$BIOCSBLEN(r0, 0xc0044266, &(0x7f00000000c0)=0x34) ioctl$BIOCSETIF(r0, 0x8020426c, &(0x7f0000000500)={'tap', 0x0}) pread(r0, &(0x7f0000000600)="e7077b6629e0397383eaeac9193e79db7bbbad786e7bbb921dff532158d0b49a3e7de9f2d8fdefa9e6fddc16bcd369b9fc28dc5e", 0x34, 0x8000000000000005) ioctl$BIOCSETIF(0xffffffffffffffff, 0x8020426c, &(0x7f0000000100)={'tap', 0x0}) r1 = socket$inet(0x2, 0x3, 0x0) ioctl$FIONREAD(r1, 0x80206979, &(0x7f0000000100)) 0s ago: executing program 1 (id=13): setreuid(0xee00, 0x0) (async, rerun: 32) sysctl$kern(&(0x7f0000000000)={0x1, 0x41}, 0x2, &(0x7f0000000180)="9fd89469b873b9e275915aacbd125bfb11eeaa8e358440e677717a0aa6a9a3532404c4b94356e9a313755880a973477b678c5b64cc3abd9fa2b309d97f61c7b0d2d090e2749a346e46729b2664e326ea5919d64d2b5d05bee30b994dc358193e41306a25a2bbf1b13cf46c53998838506e03429962e3d5e28f17db5d01ce7fa6b8106a7003fd44741c7b3b16ab5c7ca2406dc6caccba9435881c2845a4a6a82f4b9e5954b2f2b51216140373909dba57e5ad644b11ee07c56791a3c29a813a73d63ea6e32493f74d949743ea431f0a21e16fd6fd1ea8cb7a6c23bb1a1f787ca80b53ac3a3f49e8f30dce3313fbb28d5139a5c10e08", &(0x7f00000002c0)=0xf5, &(0x7f0000000300)="7da2af14b9b674cd7df35c0214bcd8ce62345d6a71eeb9c46023ed66c7ec348550d2dcb0488f7b318bdaf1a492f513961decb94e779c3ed2973ac5269bc8de9f936888", 0x43) (rerun: 32) setresuid(0x0, 0xffffffffffffffff, 0xffffffffffffffff) open(&(0x7f0000000140)='./file0\x00', 0x10686, 0x8) (async) ktrace(&(0x7f0000000280)='./file0\x00', 0x4, 0x40000928, 0x0) (async) r0 = getuid() seteuid(r0) (async) ktrace(&(0x7f00000000c0)='./file0\x00', 0x2, 0x200c, 0x0) kernel console output (not intermixed with test programs): Warning: Permanently added '10.128.0.233' (ED25519) to the list of known hosts. panic: chgproccnt: procs < 0 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 221390 54200 0 0x10 0 0 syz-executor *314032 54200 0 0x10 0x4000000 1K syz-executor db_enter() at db_enter+0x25 panic(ffffffff834ddfab) at panic+0x1e5 chgproccnt(ee00,ffffffff) at chgproccnt+0xcc sys_setresuid(ffff80002f3a74e8,ffff80003c427060,ffff80003c426fb0) at sys_setresuid+0x577 syscall(ffff80003c427060) at syscall+0xb17 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6d47b0d6d40, count: 9 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: chgproccnt: procs < 0 ddb{1}> trace db_enter() at db_enter+0x25 panic(ffffffff834ddfab) at panic+0x1e5 chgproccnt(ee00,ffffffff) at chgproccnt+0xcc sys_setresuid(ffff80002f3a74e8,ffff80003c427060,ffff80003c426fb0) at sys_setresuid+0x577 syscall(ffff80003c427060) at syscall+0xb17 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6d47b0d6d40, count: -6 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c426e20 rbx 0xffff8000299aee07 rdx 0 rcx 0xffff80002f3a74e8 rax 0xffff8000299adff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xcb7cee48b4557b90 r11 0x42c70c2e858d8db2 r12 0xffff8000299aec08 r13 0 r14 0 r15 0x1 rip 0xffffffff82e68e25 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c426e10 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=314032 pid=54200 tcnt=3 stat=onproc flags process=10 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002f3a7250,0xffffffff83ab07f8 process=0xffff80002a38d358 user=0xffff80003c422000, vmspace=0xfffffd806c69fb88 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 54200 221390 23780 0 7 0x10 syz-executor 54200 143977 23780 0 2 0x4000010 syz-executor *54200 314032 23780 0 7 0x4000010 syz-executor 64298 231130 46234 0 2 0x100002 ndp 46234 106375 74344 0 3 0x10008a sigsusp sh 71503 234439 31493 0 2 0x100002 arp 94929 53667 67682 0 3 0x80 nanoslp syz-executor 94929 249683 67682 0 3 0x4000000 clonelk syz-executor 76470 280209 43895 0 3 0 vmmaplk syz-executor 76470 414009 43895 0 2 0x4000000 syz-executor 31493 306176 51024 0 3 0x10008a sigsusp sh 52388 412119 90671 0 2 0 syz-executor 52388 404399 90671 0 3 0x4000000 clonelk syz-executor 52388 231796 90671 0 3 0x4000080 fsleep syz-executor 85579 38665 70359 0 3 0x90 nanoslp syz-executor 85579 347912 70359 0 3 0x4000090 pipewr syz-executor 85579 79488 70359 0 3 0x4000090 fsleep syz-executor 85579 357857 70359 0 3 0x4000090 fsleep syz-executor 74344 54996 92576 0 3 0x82 wait syz-executor 70359 14954 92576 0 3 0x82 nanoslp syz-executor 90671 460630 92576 0 3 0x82 nanoslp syz-executor 51024 119728 92576 0 3 0x82 wait syz-executor 43895 126797 92576 0 3 0x82 nanoslp syz-executor 27797 478445 92576 0 3 0x82 nanoslp syz-executor 23780 455320 92576 0 3 0x82 nanoslp syz-executor 67682 456824 92576 0 3 0x82 nanoslp syz-executor 92576 124719 5829 0 3 0x82 kqread syz-executor 5829 309958 73679 0 3 0x10008a sigsusp ksh 73679 412270 28081 0 3 0x98 kqread sshd-session 28081 115746 33698 0 3 0x92 kqread sshd-session 4039 241517 1 0 3 0x100083 ttyin getty 33698 49045 1 0 3 0x88 kqread sshd 58753 468732 36100 74 3 0x1100092 bpf pflogd 36100 182521 1 0 3 0x80 sbwait pflogd 21122 5043 32025 73 3 0x1100090 kqread syslogd 32025 207283 1 0 3 0x100082 sbwait syslogd 27473 360468 1 0 3 0x100080 kqread resolvd 45956 308121 27798 77 3 0x100092 kqread dhcpleased 55121 508510 27798 77 3 0x100092 kqread dhcpleased 27798 237480 1 0 3 0x80 kqread dhcpleased 94015 388895 0 0 3 0x14200 bored smr 5967 238719 0 0 2 0x14200 zerothread 24964 367680 0 0 3 0x14200 aiodoned aiodoned 42332 310291 0 0 3 0x14200 syncer update 59266 26472 0 0 3 0x14200 cleaner cleaner 85473 30669 0 0 3 0x14200 reaper reaper 24396 168004 0 0 3 0x14200 pgdaemon pagedaemon 88302 15034 0 0 3 0x14200 bored viomb 96369 375928 0 0 3 0x40014200 acpi0 acpi0 57824 279995 0 0 3 0x40014200 idle1 14670 494148 0 0 3 0x14200 bored softnet1 65681 61793 0 0 3 0x14200 bored softnet0 91891 144956 0 0 3 0x14200 bored systqmp 28775 469400 0 0 3 0x14200 bored systq 96422 273831 0 0 3 0x14200 tmoslp softclockmp 76146 488381 0 0 3 0x40014200 tmoslp softclock 90242 480979 0 0 3 0x40014200 idle0 1 313848 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 54200 (syz-executor) thread 0xffff80002f3a74e8 (314032) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83aa7780) #0 witness_lock+0x5f1 #1 __mp_acquire_count+0x58 #2 malloc+0xe3 #3 uid_find+0xab #4 chgproccnt+0x39 #5 sys_setresuid+0x577 #6 syscall+0xb17 #7 Xsyscall+0x128 Process 76470 (syz-executor) thread 0xffff80002f3a6558 (414009) exclusive rwlock vmmaplk r = 0 (0xfffffd806f3e5c78) #0 witness_lock+0x5f1 #1 rw_do_enter_read+0x3e8 #2 uvmfault_lookup+0x122 #3 uvm_fault_check+0x4f #4 uvm_fault+0x106 #5 kpageflttrap+0x2f4 #6 kerntrap+0x19d #7 alltraps_kern_meltdown+0x7b #8 _copyin+0x5b #9 ffs_write+0x769 #10 VOP_WRITE+0x101 #11 vn_write+0x248 #12 dofilewritev+0x2bd #13 sys_pwritev+0xe3 #14 syscall+0xbd4 #15 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd800e97ea08) #0 witness_lock+0x5f1 #1 rw_do_enter_write+0x419 #2 rrw_enter+0xc6 #3 VOP_LOCK+0xbd #4 vn_lock+0xa4 #5 vn_write+0x18f #6 dofilewritev+0x2bd #7 sys_pwritev+0xe3 #8 syscall+0xbd4 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11063 12153K 12155K 166960K 12159 0 pcb 17 12K 12K 166960K 20 0 rtable 219 6K 6K 166960K 321 0 pf 37 18K 18K 166960K 50 0 ifaddr 42 7K 7K 166960K 45 0 ifgroup 60 2K 2K 166960K 62 0 sysctl 1 1K 9K 166960K 6 0 counters 72 37K 37K 166960K 74 0 ioctlops 0 0K 4K 166960K 1483 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1294 81K 81K 166960K 1366 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 20 73K 89K 166960K 137 0 proc 71 115K 147K 166960K 547 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 2 0 in_multi 89 6K 6K 166960K 91 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 375 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 255 171K 176K 166960K 3227 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 47 94K 104K 166960K 1265 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 27 1K 1K 166960K 28 0 temp 34 9074K 9138K 166960K 4037 0 kqueue 14 22K 22K 166960K 26 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 32 0 27 1 0 1 1 0 8 0 rtentry 176 102 0 1 5 0 5 5 0 8 0 unpcb 144 37 0 18 1 0 1 1 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 8 0 4 1 0 1 1 0 8 0 arp 136 17 0 0 1 0 1 1 0 8 0 inpcb 328 74 0 63 1 0 1 1 0 8 0 nd6 152 20 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 1 0 1 1 0 1 1 0 8 1 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 18 0 0 1 0 1 1 0 8 0 pfstkey 128 18 0 0 1 0 1 1 0 8 0 pfstate 448 18 0 0 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 410 0 0 26 0 26 26 0 8 0 art_table 40 411 0 0 5 0 5 5 0 8 0 art_node 32 102 0 10 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1577 0 107 92 0 92 92 0 8 0 ffsino 296 1577 0 107 114 0 114 114 0 8 0 nchpl 144 1777 0 75 64 0 64 64 0 8 0 vnodes 216 1666 0 0 93 0 93 93 0 8 0 namei 1024 5368 0 5368 2 1 1 1 0 8 1 percpumem 16 52 0 1 1 0 1 1 0 8 0 kstatmem 264 30 0 2 2 0 2 2 0 8 0 scxspl 216 6058 0 6058 3 2 1 3 1 8 1 plimitpl 152 27 0 10 1 0 1 1 0 8 0 sigapl 424 449 0 399 7 0 7 7 0 8 0 knotepl 120 63 0 0 2 0 2 2 0 8 0 kqueuepl 224 22 0 11 1 0 1 1 0 8 0 pipepl 344 123 0 95 3 0 3 3 0 8 0 fdescpl 528 433 0 399 3 0 3 3 0 8 0 filepl 160 1555 0 1329 10 0 10 10 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 22 0 13 1 0 1 1 0 8 0 pgrppl 48 30 0 13 1 0 1 1 0 8 0 ucredpl 104 88 0 72 1 0 1 1 0 8 0 zombiepl 144 403 0 402 2 1 1 1 0 8 0 processpl 1232 449 0 399 5 0 5 5 0 8 1 procpl 664 467 0 408 6 0 6 6 0 8 0 sockpl 752 144 0 109 4 0 4 4 0 8 0 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 114 0 0 15 0 15 15 0 8 0 mcl2k 2048 12 0 0 2 0 2 2 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 114 0 0 8 0 8 8 0 8 0 bufpl 280 2305 0 105 158 0 158 158 0 8 0 anonpl 32 3876 0 0 32 0 32 32 0 246 0 amapchunkpl 152 8654 0 8147 20 0 20 20 0 158 0 amappl16 200 1844 0 1825 5 4 1 5 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 447 0 444 1 0 1 1 0 8 0 amappl13 176 122 0 108 1 0 1 1 0 8 0 amappl12 168 682 0 650 2 0 2 2 0 8 0 amappl11 160 21 0 21 2 2 0 1 0 8 0 amappl10 152 67 0 52 1 0 1 1 0 8 0 amappl9 144 267 0 266 1 0 1 1 0 8 0 amappl8 136 118 0 115 1 0 1 1 0 8 0 amappl7 128 141 0 126 1 0 1 1 0 8 0 amappl6 120 183 0 180 1 0 1 1 0 8 0 amappl5 112 111 0 101 1 0 1 1 0 8 0 amappl4 104 283 0 264 1 0 1 1 0 8 0 amappl3 96 1469 0 1350 3 0 3 3 0 8 0 amappl2 88 563 0 502 2 0 2 2 0 8 0 amappl1 80 9152 0 8487 16 2 14 15 0 8 0 amappl 88 2522 0 2348 4 0 4 4 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 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 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 433 0 399 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 433 0 399 1 0 1 1 0 8 0 vmmpekpl 168 5343 0 5307 2 0 2 2 0 8 0 vmmpepl 168 36416 0 34412 90 2 88 88 0 357 0 vmsppl 488 432 0 399 5 0 5 5 0 8 0 rwobjpl 80 13530 0 12420 24 1 23 24 0 8 0 pdppl 4096 873 0 798 95 18 77 83 0 8 2 pvpl 32 10138 0 0 82 0 82 82 0 265 0 pmappl 256 432 0 399 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 259 0 23 7 0 7 7 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83915ff0) at x86_ipi_db+0x27 x86_ipi_handler() at x86_ipi_handler+0xd9 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83aa6f80) at __mp_lock+0x192 softintr_dispatch(0) at softintr_dispatch+0x125 dosoftint(0) at dosoftint+0x54 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x758d7d596330, count: 8 ddb{0}> trace x86_ipi_db(ffffffff83915ff0) at x86_ipi_db+0x27 x86_ipi_handler() at x86_ipi_handler+0xd9 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83aa6f80) at __mp_lock+0x192 softintr_dispatch(0) at softintr_dispatch+0x125 dosoftint(0) at dosoftint+0x54 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x758d7d596330, count: -7 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 panic(ffffffff834ddfab) at panic+0x1e5 chgproccnt(ee00,ffffffff) at chgproccnt+0xcc sys_setresuid(ffff80002f3a74e8,ffff80003c427060,ffff80003c426fb0) at sys_setresuid+0x577 syscall(ffff80003c427060) at syscall+0xb17 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6d47b0d6d40, count: 9 ddb{1}> trace db_enter() at db_enter+0x25 panic(ffffffff834ddfab) at panic+0x1e5 chgproccnt(ee00,ffffffff) at chgproccnt+0xcc sys_setresuid(ffff80002f3a74e8,ffff80003c427060,ffff80003c426fb0) at sys_setresuid+0x577 syscall(ffff80003c427060) at syscall+0xb17 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6d47b0d6d40, count: -6