last executing test programs: 189.560985ms ago: executing program 7 (id=8): r0 = socket(0x11, 0x3, 0x0) sendto$unix(r0, 0x0, 0x0, 0xe, 0x0, 0x0) writev(r0, &(0x7f0000000640)=[{&(0x7f0000000140)="939ad0fd926006d106375832dbc85095d4e6c30a3ae08ccdc257b4157458bb63885a4b08f2067238dda15f957dcb075f15370e38dc4b802281206886eb7d507a3d8d1faff3d517b1a003dd681e804130c1d39efb80f32f7ae9e102499bf7a3718a13d1b88190b6f7b15d1fc3cd32743d1084a1a6c9349f16adc4a20236a92540322accf2caddc5f98b590b71c4d31d353b9de34f921df44633b9857f66a65edb508c804ee26fe26ad78a3a8f85d1bfe37f8f337a1625deffbd38a8dc8b5f927b96c415d9c9bf534271f7eb4c46ef22b8dbddaad6153a9f1c2055fa21feea5d53f1ad3b72b1b7", 0xe6}, {&(0x7f0000000480)="9228955ad0e76eb8533e2022d950e306f91372bc93459b2e829b2752f36eb8007e53daeb67e6347d242304d889a4d59ccace3b17d8c81e20531640a0691892b6b0e2908dd3326e568283d349ed342aeff33f272b0709b9c891cf28caf1328c0d591facd1599e02996bb2b88b203d2917f8868ec7a6b3d336f8be6bf804c38c8c9cd9b270a0b5a3d96c1c955f303675e0e2faf1a1fc64e4a6b40d78c077ce62ff60ed6fca27fc66bb300aef061e18b0333d2b11f374a5a57ee73cdd4ce8f52be32736d3f187601aca50c8db896cd9db54140b635e41a94667911b8e12a5", 0xdd}, {&(0x7f0000000580)="4bf98289569f3f0034165ee55613280a81472a007c5b8067c49f55ef54a51582762b6c4d69c78d5b5458f5a100284a9f2d22ddec9df70c8eff2affb625b67193b899fa46617a8207f6f9d132c25f75ce8447df764f71cd24f188e95f11e5f06d60b455b756603c5a5c11a6856110f4e0213739d33bff81", 0x77}, {&(0x7f0000000600)="f487f04dea35a04294191e36e903ad3c7e7873068f35a73d4533c53f329d6a68451891f14461702b6157", 0x2a}], 0x4) r1 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000040), 0x10000, 0x0) ioctl$BIOCSETF(r1, 0x80104267, &(0x7f00000000c0)={0x2, &(0x7f0000000100)=[{0x2d, 0x0, 0x6, 0x6}, {0x100, 0x2b, 0xf7, 0x8000007c}]}) recvmmsg(r0, &(0x7f0000000440)={{&(0x7f0000000000)=@un=@abs, 0x8, &(0x7f0000000380)=[{&(0x7f0000000080)=""/50, 0x32}, {&(0x7f0000000280)=""/226, 0xe2}], 0x2, &(0x7f00000003c0)=""/65, 0x41}, 0x101}, 0x38, 0x2, 0x0) 188.053702ms ago: executing program 6 (id=7): readv(0xffffffffffffffff, &(0x7f0000000000)=[{&(0x7f0000000100)=""/4085, 0xff5}], 0x1) setrlimit(0x3, &(0x7f0000000080)={0x0, 0x7}) (async) pipe2(&(0x7f0000001100)={0xffffffffffffffff, 0xffffffffffffffff}, 0x0) readv(r1, &(0x7f0000001140)=[{&(0x7f00000012c0)=""/47, 0x2f}], 0x1) (async) listen(0xffffffffffffffff, 0x7fff) shutdown(0xffffffffffffffff, 0x1) (async) accept(0xffffffffffffffff, 0x0, 0x0) (async) getgroups(0x7, &(0x7f0000001280)=[0x0, 0x0, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0x0]) (async) mknod(&(0x7f00000015c0)='./file0\x00', 0x2000, 0x0) (async) chmod(&(0x7f0000001600)='./file0\x00', 0x23f) setuid(0xee01) r7 = open(&(0x7f0000001640)='./file0\x00', 0x70e, 0x24) fcntl$getown(r7, 0x5) setresgid(r6, 0x0, r5) (async) setresgid(r3, r2, r4) (async) close(r0) r8 = shmget$private(0x0, 0x4000, 0x40a, &(0x7f0000ffc000/0x4000)=nil) shmat(r8, &(0x7f0000ffe000/0x1000)=nil, 0x1000) (async, rerun: 32) writev(r1, &(0x7f00000011c0)=[{&(0x7f0000001200)="19", 0xfffffe98}], 0x1) (async, rerun: 32) open$dir(&(0x7f00000000c0)='./file0\x00', 0xf02, 0x186) sysctl$net_inet_icmp(&(0x7f0000001180)={0x4, 0x2, 0x1, 0x5}, 0x4, &(0x7f0000001300)="38f0690909af64494b92d2440baea983c2522d3654d864fd9b0313911d64d5ac18a58537d61457eaabce616401249d7d850e441f39411070842899e91cb0be0704bc4bcf9dc9502d3a290158b5c2f0e9de28d53c852626158b24dd4a6d58dccea807b6b317fe62df0a8968e116bba8e248d8c086dff6eeba96efa8f153f52e870a4ff32ec566beb2341b6ecb5ed852c68b51a22f6dae297faaa4fd3e526e6b70e788493d8e8b23f3fd74d2e930ecc6c2e39ddb2ec4b9b3be368431a7547e4268ce3c135143305e526b8120ce13a1cb2168f41a", &(0x7f0000001400)=0xd3, &(0x7f0000001440)="d28ca18027cef01923f40cb177db12e1401cd39eafd046d49a13096a95dac1edcd37afe54266f91aa693f57a3c648ddd0a48977d5d5efafca67722ffeea4e1718216abf529f5b36cd7843fbab6432a4ee462190782e5c403c269143405f22a344e24a4565be42dced21a50bafe4b47dc978a3af91a30dc98b8c8e6", 0x7b) shmctl$IPC_STAT(0x0, 0x2, &(0x7f00000014c0)=""/3) (async) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) syz_emit_ethernet(0x0, 0x0) (async, rerun: 64) r9 = socket(0x18, 0x2, 0x0) (rerun: 64) setsockopt(r9, 0x1000000029, 0x2e, &(0x7f0000001500)="ebffcbff13b9fd812eaa4e713048e69931929648", 0x14) mmap(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x3, 0x5012, 0xffffffffffffffff, 0x0) (async, rerun: 32) sendmsg(r9, &(0x7f0000001540)={&(0x7f0000001580)=@in6={0x1c, 0x18, 0x0, 0x1, "fffffffe00", 0x100}, 0x1c, 0x0, 0x0, 0x0}, 0xa) (async, rerun: 32) setuid(0xffffffffffffffff) 181.207324ms ago: executing program 1 (id=2): r0 = kqueue() r1 = openat$pf(0xffffffffffffff9c, &(0x7f0000000000), 0x81, 0x0) ioctl$TIOCSETA(r1, 0xc450444d, &(0x7f0000000040)={0x2f, 0xffffffff, 0x40, 0x76, "97a2224ff1ebb1000000000000000000ff00", 0xfffffffc, 0xb}) kevent(r0, &(0x7f0000000080)=[{{}, 0xfffffffffffffffb, 0x4d, 0x80, 0x0, 0x800000000000}, {{r1}, 0x2, 0x1, 0x40000000, 0x80, 0x1}, {{r1}, 0xfffffffffffffff7, 0x9, 0x1, 0x5, 0x1}, {{r1}, 0xfffffffffffffffd, 0x1, 0x2, 0x3ff, 0x4}], 0xe97e4ef, 0x0, 0x4, 0x0) sysctl$hw(&(0x7f0000000100)={0x6, 0x13}, 0x2, 0x0, 0x0, 0x0, 0x0) kevent(r0, &(0x7f0000000180), 0x3ff, 0x0, 0x8000800, 0x0) 174.085801ms ago: executing program 2 (id=3): ioctl$DIOCGETSTATE(0xffffffffffffffff, 0xc1084413, &(0x7f0000000100)={{0x8, './file0\x00', [{[@v6=@rand_addr="47b44d0f0c0dae2266d46680cf2035b9", @v6=@mcast2], [0x8, 0xfff1], 0x6, 0x18}, {[@v4=@remote={0xac, 0x14, 0x0}, @v4=@loopback], [0x3], 0x4a}], {{0xffff, 0x80, 0x7, 0xfff}, 0x106, 0x1, 0x80, 0x8, 0x7, 0x6, 0x6}, {{0x8, 0xfd, 0xff, 0xb07}, 0xa76, 0x8, 0x40000004, 0xff, 0xfb, 0xfc, 0x4}, @v4=@remote={0xac, 0x14, 0x0}, 0x4008, 0x1, 0x80004, 0x7, 0x9, [[0x5, 0xd], [0x100001, 0x9]], [[0x80007], [0x5, 0x203]], 0x4, [0x207], 0x6, 0x31, 0x4, 0x2, 0x20, 0x1, 0x85, 0x4, 0x2, 0xff, 0x3, 0x0, "00c3"}}) r0 = openat$pf(0xffffffffffffff9c, &(0x7f0000000240), 0x82, 0x0) setitimer(0x2, &(0x7f0000000280)={{0x3, 0x122800000000009}, {0x6, 0x8020000000000000}}, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x4) ioctl$TIOCSETA(r0, 0xcd60441a, &(0x7f00000002c0)={0x8, 0x104, 0x8001, 0x403, "200000000a00000f000000aff0338a614fc6d700", 0x8, 0x7}) socket(0x11, 0x3, 0x0) setrlimit(0x8, &(0x7f00000000c0)={0x5, 0x8000000000000001}) socketpair$unix(0x1, 0x2, 0x0, 0x0) 2.171662ms ago: executing program 6 (id=9): ioctl$WSMOUSEIO_SCALIBCOORDS(0xffffffffffffffff, 0x81205724, &(0x7f0000000140)={0xf0, 0x9, 0x3, 0x200101, 0x4, 0x5, 0x3, 0x10, [{0x5, 0xc, 0x8000008, 0x8}, {0x4, 0x3ff, 0x6}, {0x100006, 0x1, 0x1, 0x22}, {0x2003, 0x8004, 0xa, 0xffffeffe}, {0x7, 0x0, 0xd1, 0xffff}, {0xd9b, 0x6, 0x14000009, 0x1}, {0x4, 0x7, 0x7, 0x70}, {0x1, 0x3, 0x9f3d835c, 0xfffffffc}, {0x481, 0x0, 0x34, 0x2}, {0xfefffc04, 0x44, 0x6, 0x7fff}, {0x20000008, 0xff77, 0xa38c000, 0xe3}, {0xcb, 0x40, 0x200, 0x5}, {0x2100df, 0x6, 0x3, 0x1}, {0x1, 0x9, 0x9, 0x800}, {0x7, 0x8, 0x27, 0x5}, {0xa, 0xd655, 0x3, 0x6}]}) ioctl$BIOCSETWF(0xffffffffffffffff, 0x80104277, &(0x7f0000000280)={0x48, &(0x7f0000000340)}) (async) ioctl$BIOCSETWF(0xffffffffffffffff, 0x80104277, &(0x7f0000000280)={0x48, &(0x7f0000000340)}) r0 = socket(0x11, 0x3, 0x0) sendto$unix(r0, &(0x7f00000005c0)="b100050160000004000000000700000002008106cfa1e4fffdf96ecfc73fd3357ae36caa0416fa4f376b36acf00b7805be301e4991f7c8cf5f3fc303ebe1aa5323edeb51e2f0ca3ebbc257699a1f1302000000000000007d026ba8af6300371c2102000000720fd38bfbb770c1f5a8aec872ea772ec58904000000008d9800361b1257aba9c500022012010000de5000"/177, 0xb1, 0x800, 0x0, 0x33) r1 = socket(0x18, 0x3, 0x0) ioctl$FIONREAD(r1, 0xc0106924, &(0x7f0000000380)) setgid(0xffffffffffffffff) (async) setgid(0xffffffffffffffff) setregid(0xffffffffffffffff, 0x0) ioctl$FIONREAD(r1, 0x8080691a, &(0x7f00000003c0)) (async) ioctl$FIONREAD(r1, 0x8080691a, &(0x7f00000003c0)) getgroups(0x7, &(0x7f0000000580)=[0x0, 0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff, 0xffffffffffffffff, 0x0]) (async) getgroups(0x7, &(0x7f0000000580)=[0x0, 0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff, 0xffffffffffffffff, 0x0]) setresgid(r4, r5, 0x0) setegid(0x0) setresgid(r3, 0x0, r2) setrlimit(0x1, &(0x7f0000000000)={0xfffffffffffffffd, 0xffffffffffffffff}) socketpair$unix(0x1, 0x2, 0x0, &(0x7f00000000c0)) (async) socketpair$unix(0x1, 0x2, 0x0, &(0x7f00000000c0)={0xffffffffffffffff, 0xffffffffffffffff}) sendmsg$unix(r7, &(0x7f0000000340)={0x0, 0x7b, 0x0, 0x0, &(0x7f0000000400)=ANY=[@ANYBLOB="28000000ffff000001"], 0x28, 0x1}, 0x8) (async) sendmsg$unix(r7, &(0x7f0000000340)={0x0, 0x7b, 0x0, 0x0, &(0x7f0000000400)=ANY=[@ANYBLOB="28000000ffff000001"], 0x28, 0x1}, 0x8) write(r7, 0x0, 0x0) recvmsg(r6, &(0x7f0000000440)={0x0, 0x0, 0x0, 0x0, 0x0}, 0x800) r8 = open(&(0x7f0000000040)='./file1\x00', 0x18289, 0x176) write(r8, &(0x7f0000000080)="b96abcf5ac7cffa09ea845315c0d853a14", 0xffffff1c) writev(r8, &(0x7f0000000300)=[{&(0x7f0000000100)="2fe8833a7ce202105c", 0x9}], 0x1) (async) writev(r8, &(0x7f0000000300)=[{&(0x7f0000000100)="2fe8833a7ce202105c", 0x9}], 0x1) r9 = dup(r8) lseek(r9, 0xfffffffffffffff7, 0x2) (async) lseek(r9, 0xfffffffffffffff7, 0x2) mknod(&(0x7f00000002c0)='./file1\x00', 0x2000, 0x437d) socket$inet(0x2, 0x3, 0x39) (async) r10 = socket$inet(0x2, 0x3, 0x39) setsockopt$inet_opts(r10, 0x0, 0x200000000000c, &(0x7f0000000480)="eaef125c00000000", 0x8) writev(r10, &(0x7f00000004c0)=[{&(0x7f0000000500)="498fdc7727c073f0", 0x8}], 0x1) (async) writev(r10, &(0x7f00000004c0)=[{&(0x7f0000000500)="498fdc7727c073f0", 0x8}], 0x1) setsockopt$inet_opts(r10, 0x0, 0x200000000000c, &(0x7f0000000540)="eaef125c00000000", 0xc) getgroups(0x0, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x4) 1.507344ms ago: executing program 1 (id=10): r0 = openat$pf(0xffffffffffffff9c, &(0x7f0000000040), 0x2, 0x0) recvmmsg(0xffffffffffffffff, 0x0, 0x0, 0x0, 0x0) setrlimit(0x8, &(0x7f0000000100)={0x42, 0x62}) r1 = syz_open_pts() close(r1) syz_open_pts() ioctl$DIOCRADDADDRS(r0, 0xc4504443, &(0x7f0000000b80)={{'./file0\x00', './file0\x00', 0x1, 0x3}, &(0x7f00000003c0)=[{@local={0xac, 0x14, 0x0}, '\x00', './file0\x00', 0x4, 0x963, 0x32, 0x7, 0xe9, 0x10, 0x3}, {@local={0xac, 0x14, 0x0}, '\x00', './file0\x00', 0xfff, 0x1, 0x1a, 0xfe, 0x2, 0x81, 0x4}, {@loopback, '\x00', './file0\x00', 0x5d461172, 0x5, 0x1a, 0xee, 0x8, 0x6, 0x7}], 0x8000, 0x3, 0x29, 0x8, 0xb, 0x7, 0x8, 0x2}) ioctl$TIOCSETAF(r1, 0x802c7416, &(0x7f0000000300)={0x42b78a, 0xffff, 0x8007, 0xffffffb7, "000000020005000000000062b3d252339875c0ec", 0xdca9, 0x10000}) writev(r1, &(0x7f0000000340)=[{&(0x7f0000000380)="34eb4cd59e8456ebc0881681c60e1cd9e0bf01b618b3cb934394c5951c1db0fd943a", 0xff99}], 0x1) sysctl$net_inet_etherip(&(0x7f00000000c0)={0x4, 0x2, 0x6c, 0x2}, 0x4, 0x0, 0x0, 0x0, 0x0) sendmsg$unix(0xffffffffffffffff, &(0x7f0000000140)={0x0, 0x0, &(0x7f0000000000)=[{&(0x7f0000000b40)="825a4f47c21e6ed7eda0f5903abf65b18d7c51f78b06ccffb40500000000000000000000fafd3493776665d4cd12c63d34", 0x31}], 0x1, 0x0, 0x0, 0x8}, 0x3) getsockopt$SO_PEERCRED(0xffffffffffffff9c, 0xffff, 0x1022, &(0x7f0000000080)={0x0}, 0xc) r3 = openat$audio(0xffffffffffffff9c, &(0x7f0000000480), 0x800, 0x0) writev(r3, &(0x7f0000000840)=[{&(0x7f00000004c0)}, {&(0x7f0000000500)="78cabdc4bae9f3838530cd7c9cad5c989ae2af5c82fc9f595ac6f89edef9ed59c31742b2e2a17c54e108435ea811a920c2863001aae1cc56a835bfbedade0306d9804e6989ead6fe9357242ebc4498136a791874df793a241d940652d522351424321dc3", 0x64}, {&(0x7f0000000580)="4ae039d4b75f6977b957d7859c661f7fd25cd828e2c924f155037923264a2006dc0a8f59f75f2ad792c9b195e0b91d819350aab0a1c780fdc39bab09d2a935a4c7348db8", 0x44}, {&(0x7f0000000600)="8f3363cf4d767345408f86d228def7b0e29d118222671750ad180bdde0504176e2440547f9f9e18fe6379ce2257574624d8d5aec6c50b3f93d275d30d4dd28eddfedaa6aaf9d44553bebff933327d6654603079d50a261fad8e4fe312771799e9c3207669f85d1a667e2734c55eca67f3fa18ab02ec24f0073fec0630d3f73a32a973a2a59375394238f803c7c9cc75a1df11fb80895affea29f286124b8d630567db7a9997f08718a11e7858f275225af37017d7d52a8f423130685ffe95f407d8ea548f3decc9db5", 0xc9}, {&(0x7f0000000700)="78b38d2fb6d71d1dc330faf6680247f949", 0x11}, {&(0x7f0000000780)="1f6f328839595c1f49bbb18f5fb75865261157ee6911ee5778049d0b99c57ea2e3ec47cf92881aae271eaaa7d9d696eac1fa1c88eec5cfa90348ff924a9b49468bb6116442fa95669e9afc0bc360867d1f0c36a05174f45f7f4efa60ee7a727cf1a664b2db404e33b2037509d79fb162496dc4ec49c71838546a4896e1cbbbc7517cf3be15cb2c7484aa6a67edd76751258883c0ca586ebe229a65f3a45eac5cb1d00c9c28b14721f8cd2bc9ee1843a4416f1b4a8935eb3a93441ccfa8", 0xbd}], 0x6) setuid(r2) ioctl$DIOCGETSTATES(0xffffffffffffff9c, 0xc0104419, &(0x7f00000002c0)={0x1, &(0x7f0000000180)=[{0x0, ""/16, [{[@v4=@rand_addr, @v6=@mcast2]}, {[@v4=@broadcast, @v6=@empty]}], {}, {}, @v4=@multicast2}]}) mknod(&(0x7f00000004c0)='./file0\x00', 0x2000, 0x1e5f) r4 = open(&(0x7f00000008c0)='./file0\x00', 0x8000, 0x4c) ioctl$WSMOUSEIO_SCALIBCOORDS(0xffffffffffffffff, 0x81205724, &(0x7f0000000900)={0x0, 0xffffaf35, 0x7f, 0x5, 0x4c, 0x3, 0x3, 0x10, [{0x10000002, 0x3e, 0x3, 0x3}, {0xfffffff3, 0xfffffffe, 0x9, 0x6}, {0x20007, 0x8000b8a, 0xffffff79, 0x9}, {0x8, 0x6, 0x2, 0x6}, {0x2, 0x8, 0x5, 0x800007}, {0x20002, 0xa, 0x8, 0x95}, {0x30a4, 0x1, 0x200004fb, 0x3bc00000}, {0xa, 0xf, 0x6664, 0x8d}, {0xfffffffd, 0xe2b5, 0x40000005, 0x9}, {0xb, 0x2cf, 0x410001, 0x1ff}, {0x1e7, 0xeb8a, 0x9280, 0x4}, {0x1016, 0x8001, 0x9, 0x2d0b}, {0x8, 0x400004f6, 0x80002001, 0x408}, {0x29a71718, 0x4, 0x7, 0x68}, {0x0, 0xf8f, 0x2}, {0x1, 0x800bd39, 0xf778, 0x80008}]}) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) ioctl$VNDIOCSET(r4, 0x80184404, &(0x7f0000000a40)={0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) ioctl$VNDIOCSET(r4, 0x80044403, &(0x7f0000000a80)={0x0, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0x0}) r5 = socket$inet(0x2, 0x8003, 0x0) shutdown(r5, 0x2) r6 = dup3(r1, r1, 0x10002) ioctl$KDDISABIO(r6, 0x20004b3d) ioctl$TIOCSETA(r0, 0xc4504443, &(0x7f0000000740)={0x0, 0x2, 0x1, 0x8, "01d03cf80047c1d100000000000000cc00", 0x3, 0x4}) 1.217196ms ago: executing program 7 (id=11): ioctl$TIOCSETA(0xffffffffffffff9c, 0x802c7414, &(0x7f0000000080)={0x2, 0x9, 0x800, 0x7, "c64daeb160dd9094895a4b0a722462b0321c3ad1", 0x9, 0xc}) r0 = openat$pf(0xffffffffffffff9c, &(0x7f00000001c0), 0x1, 0x0) r1 = kqueue() r2 = kqueue1(0x10000) kevent(r2, &(0x7f00000000c0)=[{{r0}, 0xffffffffffffffff, 0xa0, 0x1, 0x2, 0x100}, {{r1}, 0xfffffffffffffffe, 0x1b, 0x1, 0x9, 0x8}, {{r0}, 0xfffffffffffffffa, 0x0, 0x2, 0x9, 0x2}, {{}, 0xfffffffffffffffb, 0x996de5d8a0474475, 0x4, 0x2, 0x2}, {{r0}, 0xfffffffffffffff7, 0x0, 0x8, 0x7, 0x7}], 0x10001, &(0x7f0000000280), 0xfffa4961, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) r3 = socket$inet(0x2, 0x2, 0x0) seteuid(0xffffffffffffffff) r4 = getppid() kill(r4, 0x13) setsockopt$inet_opts(r3, 0x0, 0x200000000000a, &(0x7f0000000000)="83", 0x1) setsockopt$inet_opts(r3, 0x0, 0x200000000000b, &(0x7f0000000040)='~', 0x1) ioctl$TIOCSETA(r0, 0xcd604404, &(0x7f00000002c0)={0x1080ff68, 0x2, 0x80c, 0xa, "74de6800", 0x5, 0x8001}) getpeername$inet(r3, &(0x7f0000000180), &(0x7f0000000200)=0x10) 358.509µs ago: executing program 7 (id=12): shmctl$IPC_SET(0x0, 0x1, 0xfffffffffffffffe) mknod(&(0x7f0000000200)='./bus\x00', 0x8000, 0xf8b) r0 = open(&(0x7f0000000000)='./file0\x00', 0x80000000000206, 0xc2) unveil(&(0x7f0000000040)='.\x00', &(0x7f0000000080)='r\x00') execve(&(0x7f00000000c0)='./file0\x00', 0x0, 0x0) unlinkat(r0, &(0x7f0000000140)='./file0\x00', 0x0) 0s ago: executing program 7 (id=13): r0 = socket$inet(0x2, 0x4000, 0xa2) r1 = socket(0x10, 0x4, 0x1c) r2 = socket$inet6(0x18, 0x2, 0x0) bind$inet6(r2, &(0x7f0000000200)={0x1c, 0x18, 0x0, 0xc, "fffffef8000f00000000000207000001", 0x4cdee064}, 0x1c) connect$inet6(r2, &(0x7f0000000240)={0x1c, 0x18, 0x0, 0x2, "00d4000000e400000800", 0x1}, 0x1c) sendto$inet6(r2, 0x0, 0x0, 0xc, &(0x7f0000000280)={0x1c, 0x18, 0x3, 0xffffd, '\x00', 0x10}, 0x1c) sendmsg(r1, &(0x7f0000000040)={&(0x7f00000000c0)=@in6={0x1c, 0x18, 0x0, 0x8, "ff020000000000000000000000000001", 0x3}, 0x1c, &(0x7f0000000140)=[{&(0x7f0000000180)="630c00000002069a", 0x8}, {&(0x7f00000001c0)="d54305fe2f48833bb1e66599", 0xc}], 0x2, 0x0}, 0x2) bind$inet(r0, &(0x7f0000000000)={0x10, 0x2, 0x1}, 0x10) listen(r0, 0xfffffffd) r3 = socket(0x2, 0x1, 0x0) shutdown(r3, 0x0) connect$inet(r3, &(0x7f0000000100)={0x10, 0x2, 0x1, 0xac1402aa}, 0x10) sendto$inet6(r3, &(0x7f0000000080)="994b", 0xffffff6c, 0x8503c97dd4963c1, 0x0, 0x0) kernel console output (not intermixed with test programs): Warning: Permanently added '10.128.0.217' (ED25519) to the list of known hosts. panic: kernel diagnostic assertion "refs != ~0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_synch.c", line 959 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 panic(ffffffff834b0e3d) at panic+0x1cf __assert(ffffffff834ef8d1,ffffffff835514c2,3bf,ffffffff8352a5c9) at __assert+0x29 refcnt_finalize(ffff80003c8fb1d0,ffffffff834a3634) at refcnt_finalize+0x1e7 pppx_if_destroy(285b9a,ffff80003c8fb1c8) at pppx_if_destroy+0x3d pppxclose(285b9a,81,2000,ffff80003c8f1778) at pppxclose+0xa0 spec_close(ffff8000314a99f0) at spec_close+0x426 VOP_CLOSE(fffff4006c084ca8,81,fffff40007ffd680,ffff80003c8f1778) at VOP_CLOSE+0x129 vn_closefile(fffff4006c055718,ffff80003c8f1778) at vn_closefile+0x11d fdrop(fffff4006c055718,ffff80003c8f1778) at fdrop+0x121 closef(fffff4006c055718,ffff80003c8f1778) at closef+0x190 fdfree(ffff80003c8f1778) at fdfree+0x115 exit1(ffff80003c8f1778,0,0,1) at exit1+0x595 sys_exit(ffff80003c8f1778,ffff8000314a9d50,ffff8000314a9ca0) at sys_exit+0x1a end trace frame: 0xffff8000314a9d40, count: 0 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 "refs != ~0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_synch.c", line 959 ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 panic(ffffffff834b0e3d) at panic+0x1cf __assert(ffffffff834ef8d1,ffffffff835514c2,3bf,ffffffff8352a5c9) at __assert+0x29 refcnt_finalize(ffff80003c8fb1d0,ffffffff834a3634) at refcnt_finalize+0x1e7 pppx_if_destroy(285b9a,ffff80003c8fb1c8) at pppx_if_destroy+0x3d pppxclose(285b9a,81,2000,ffff80003c8f1778) at pppxclose+0xa0 spec_close(ffff8000314a99f0) at spec_close+0x426 VOP_CLOSE(fffff4006c084ca8,81,fffff40007ffd680,ffff80003c8f1778) at VOP_CLOSE+0x129 vn_closefile(fffff4006c055718,ffff80003c8f1778) at vn_closefile+0x11d fdrop(fffff4006c055718,ffff80003c8f1778) at fdrop+0x121 closef(fffff4006c055718,ffff80003c8f1778) at closef+0x190 fdfree(ffff80003c8f1778) at fdfree+0x115 exit1(ffff80003c8f1778,0,0,1) at exit1+0x595 sys_exit(ffff80003c8f1778,ffff8000314a9d50,ffff8000314a9ca0) at sys_exit+0x1a syscall(ffff8000314a9d50) at syscall+0x962 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76acec619370, count: -16 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000314a97c0 rbx 0x1 rdx 0 rcx 0 rax 0xffff80003c8f1778 r8 0x101010101010101 r9 0x8080808080808080 r10 0xd4e409ed60178e79 r11 0xacf6ef491545fc0e r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff8139ee25 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000314a97b0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=343331 pid=84560 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c8f1778 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003c8f0fb0,0xffff80003c8f14f0 process=0xffff80003a4c84a0 user=0xffff8000314a4000, vmspace=0xfffff4006c15c5d8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 54519 385252 44518 0 2 0 0 syz-executor 54519 497863 44518 0 3 0 0x4000000 smrbar syz-executor 31457 67282 8853 0 2 0x100002 0 sh 71531 241263 63348 0 2 0x100002 0 sh 77067 327436 94187 0 2 0 0 syz-executor 77067 263177 94187 0 3 0 0x4000080 sbwait syz-executor 77067 193782 94187 0 3 0 0x4000080 sbufrcv syz-executor 21486 462838 73727 0 2 0 0 syz-executor 21486 448689 73727 0 2 0 0x4000000 syz-executor 24515 290319 79006 0 2 0x10 0 syz-executor 24515 286220 79006 0 2 0x10 0x4000000 syz-executor 25499 479391 13085 0 2 0 0 syz-executor 94187 305386 48999 0 2 0x2 0xc80 syz-executor 79006 405725 48999 0 2 0x2 0xc80 syz-executor 44518 4126 48999 0 2 0x2 0xc80 syz-executor 63348 387672 48999 0 3 0x2 0x80 wait syz-executor 8853 170748 48999 0 3 0x2 0x80 wait syz-executor 13085 388210 48999 0 2 0x2 0xc80 syz-executor 73727 358123 48999 0 2 0x2 0xc80 syz-executor 20303 327962 48999 0 2 0x2 0xc80 syz-executor 48999 321023 55344 0 3 0x2 0x80 kqread syz-executor 55344 20649 69212 0 3 0x100002 0x88 sigsusp ksh 69212 427638 52735 0 3 0x10 0x88 kqread sshd-session 52735 432129 49247 0 3 0x12 0x80 kqread sshd-session 73629 290819 1 0 3 0x100003 0x80 ttyin getty 49247 513149 1 0 3 0 0x88 kqread sshd 30306 190910 37508 73 3 0x1100010 0x80 kqread syslogd 37508 464475 1 0 3 0x100002 0x80 sbwait syslogd-parent 54382 88558 1 0 3 0x100000 0x80 kqread resolvd 35157 460084 55962 77 3 0x100012 0x80 kqread dhcpleased 18737 380668 55962 77 3 0x100012 0x80 kqread dhcpleased 55962 434026 1 0 3 0 0x80 kqread dhcpleased 42360 10750 0 0 3 0x14000 0x200 bored smr 58553 149586 0 0 2 0x14000 0x200 zerothread 58231 406647 0 0 3 0x14000 0x200 aiodoned aiodoned 1100 436150 0 0 3 0x14000 0x200 syncer update 47499 350463 0 0 3 0x14000 0x200 cleaner cleaner 12685 203044 0 0 3 0x14000 0x200 reaper reaper 84166 209069 0 0 3 0x14000 0x200 pgdaemon pagedaemon 18059 87698 0 0 3 0x14000 0x200 bored viomb 94306 68760 0 0 3 0x14000 0x40000200 acpi0 acpi0 33183 39651 0 0 3 0x14000 0x200 bored softnet0 16493 23216 0 0 3 0x14000 0x200 smrbar systqmp 65832 88200 0 0 3 0x14000 0x200 bored systq 28386 448714 0 0 3 0x14000 0x40000200 tmoslp softclock 28781 223619 0 0 3 0x14000 0x40000200 idle0 1 21590 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11031 12103K 12118K 166960K 12118 0 pcb 18 12K 12K 166960K 18 0 rtable 219 7K 7K 166960K 328 0 pf 33 13K 13K 166960K 37 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 55 2K 2K 166960K 55 0 sysctl 1 1K 9K 166960K 5 0 counters 35 18K 18K 166960K 35 0 ioctlops 0 0K 4K 166960K 34 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1292 81K 81K 166960K 1361 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 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 18 65K 97K 166960K 139 0 proc 58 59K 124K 166960K 490 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 90 6K 6K 166960K 90 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 367 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 202 136K 141K 166960K 2828 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 39 78K 96K 166960K 1218 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 26 1K 1K 166960K 26 0 temp 34 9114K 9134K 166960K 3188 0 kqueue 14 22K 24K 166960K 31 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 37 0 32 1 0 1 1 0 8 0 rtentry 136 105 0 2 4 0 4 4 0 8 0 unpcb 144 43 0 22 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 9 0 5 1 0 1 1 0 8 0 arp 96 17 0 0 1 0 1 1 0 8 0 inpcb 328 63 0 55 2 0 2 2 0 8 1 nd6 112 20 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 1 0 0 1 0 1 1 0 8 0 pppxif 1416 1 0 0 1 0 1 1 0 8 0 pfrule 1360 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 448 0 0 28 0 28 28 0 8 0 art_table 40 449 0 0 5 0 5 5 0 8 0 art_node 32 104 0 7 1 0 1 1 0 8 0 semapl 72 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1572 0 107 92 0 92 92 0 8 0 ffsino 256 1572 0 107 92 0 92 92 0 8 0 nchpl 144 1776 0 83 63 0 63 63 0 8 0 vnodes 216 1659 0 0 93 0 93 93 0 8 0 namei 1024 5816 0 5816 3 0 3 3 0 8 3 kstatmem 264 25 0 0 2 0 2 2 0 8 0 scxspl 216 6368 0 6368 4 0 4 4 1 8 4 plimitpl 152 31 0 13 1 0 1 1 0 8 0 sigapl 424 426 0 383 6 0 6 6 0 8 0 knotepl 120 2980 0 2932 2 0 2 2 0 8 0 kqueuepl 184 28 0 17 1 0 1 1 0 8 0 pipepl 304 123 0 96 3 0 3 3 0 8 0 fdescpl 448 413 0 383 5 0 5 5 0 8 0 filepl 120 1429 0 1209 7 0 7 7 0 8 0 lockfpl 104 7 0 4 1 0 1 1 0 8 0 lockfspl 48 5 0 2 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 90 0 78 1 0 1 1 0 8 0 zombiepl 144 384 0 383 1 0 1 1 0 8 0 processpl 1160 426 0 383 4 0 4 4 0 8 0 procpl 664 442 0 394 5 0 5 5 0 8 0 sockpl 552 143 0 109 3 0 3 3 0 8 0 mcl8k 8192 12 0 12 1 0 1 1 0 8 1 mcl4k 4096 2523 0 2468 13 0 13 13 0 8 4 mcl2k 2048 108 0 85 4 0 4 4 0 8 1 mextrefs 64 55 0 33 1 0 1 1 0 8 0 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 4340 0 4115 15 0 15 15 0 8 0 bufpl 272 2434 0 84 157 0 157 157 0 8 0 anonpl 24 80655 0 77045 23 0 23 23 0 187 0 amapchunkpl 152 7649 0 7244 18 0 18 18 0 158 1 amappl16 200 1242 0 1183 4 0 4 4 0 8 0 amappl15 192 3 0 3 1 0 1 1 0 8 1 amappl14 184 391 0 388 1 0 1 1 0 8 0 amappl13 176 107 0 97 1 0 1 1 0 8 0 amappl12 168 674 0 646 2 0 2 2 0 8 0 amappl11 160 18 0 18 1 0 1 1 0 8 1 amappl10 152 61 0 53 1 0 1 1 0 8 0 amappl9 144 279 0 279 1 0 1 1 0 8 1 amappl8 136 127 0 125 1 0 1 1 0 8 0 amappl7 128 181 0 171 1 0 1 1 0 8 0 amappl6 120 117 0 114 1 0 1 1 0 8 0 amappl5 112 129 0 123 1 0 1 1 0 8 0 amappl4 104 259 0 245 1 0 1 1 0 8 0 amappl3 96 1450 0 1352 3 0 3 3 0 8 0 amappl2 88 434 0 388 2 0 2 2 0 8 0 amappl1 80 9939 0 9390 13 0 13 13 0 8 0 amappl 88 2183 0 2042 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 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 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 413 0 383 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 413 0 383 1 0 1 1 0 8 0 vmmpekpl 168 5032 0 5005 2 0 2 2 0 8 0 vmmpepl 168 35829 0 34077 81 0 81 81 0 357 2 vmsppl 368 412 0 383 4 0 4 4 0 8 1 rwobjpl 40 13266 0 12314 11 0 11 11 0 8 0 pdppl 4096 832 0 766 92 10 82 82 0 8 16 pvpl 32 199205 0 190504 80 0 80 80 0 265 4 pmappl 216 412 0 383 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 516 0 10 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 panic(ffffffff834b0e3d) at panic+0x1cf __assert(ffffffff834ef8d1,ffffffff835514c2,3bf,ffffffff8352a5c9) at __assert+0x29 refcnt_finalize(ffff80003c8fb1d0,ffffffff834a3634) at refcnt_finalize+0x1e7 pppx_if_destroy(285b9a,ffff80003c8fb1c8) at pppx_if_destroy+0x3d pppxclose(285b9a,81,2000,ffff80003c8f1778) at pppxclose+0xa0 spec_close(ffff8000314a99f0) at spec_close+0x426 VOP_CLOSE(fffff4006c084ca8,81,fffff40007ffd680,ffff80003c8f1778) at VOP_CLOSE+0x129 vn_closefile(fffff4006c055718,ffff80003c8f1778) at vn_closefile+0x11d fdrop(fffff4006c055718,ffff80003c8f1778) at fdrop+0x121 closef(fffff4006c055718,ffff80003c8f1778) at closef+0x190 fdfree(ffff80003c8f1778) at fdfree+0x115 exit1(ffff80003c8f1778,0,0,1) at exit1+0x595 sys_exit(ffff80003c8f1778,ffff8000314a9d50,ffff8000314a9ca0) at sys_exit+0x1a syscall(ffff8000314a9d50) at syscall+0x962 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76acec619370, count: -16 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 panic(ffffffff834b0e3d) at panic+0x1cf __assert(ffffffff834ef8d1,ffffffff835514c2,3bf,ffffffff8352a5c9) at __assert+0x29 refcnt_finalize(ffff80003c8fb1d0,ffffffff834a3634) at refcnt_finalize+0x1e7 pppx_if_destroy(285b9a,ffff80003c8fb1c8) at pppx_if_destroy+0x3d pppxclose(285b9a,81,2000,ffff80003c8f1778) at pppxclose+0xa0 spec_close(ffff8000314a99f0) at spec_close+0x426 VOP_CLOSE(fffff4006c084ca8,81,fffff40007ffd680,ffff80003c8f1778) at VOP_CLOSE+0x129 vn_closefile(fffff4006c055718,ffff80003c8f1778) at vn_closefile+0x11d fdrop(fffff4006c055718,ffff80003c8f1778) at fdrop+0x121 closef(fffff4006c055718,ffff80003c8f1778) at closef+0x190 fdfree(ffff80003c8f1778) at fdfree+0x115 exit1(ffff80003c8f1778,0,0,1) at exit1+0x595 sys_exit(ffff80003c8f1778,ffff8000314a9d50,ffff8000314a9ca0) at sys_exit+0x1a syscall(ffff8000314a9d50) at syscall+0x962 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76acec619370, count: -16