last executing test programs: 167.680572ms ago: executing program 2 (id=3): mknod(&(0x7f0000000280)='./file0\x00', 0x2000, 0x1e60) r0 = open(&(0x7f0000000440)='./file0\x00', 0x80, 0x48) ioctl$WSMOUSEIO_SCALIBCOORDS(0xffffffffffffffff, 0x81205724, &(0x7f0000000100)={0x2, 0xffffaf35, 0x7f, 0x3, 0x84000001, 0x7fbefffd, 0x3, 0x10, [{0x10000000, 0x5, 0x3, 0x3f}, {0xffffff73, 0xfffffffa, 0x100001, 0x3}, {0xc7, 0x7, 0x6, 0x9}, {0x7, 0x46, 0xfffffff6, 0x200}, {0xac2, 0xa, 0x1002, 0x5}, {0x24020002, 0x8, 0x7, 0x89}, {0x9, 0xdf61, 0x9, 0x14}, {0x6, 0x11, 0x5, 0x6b}, {0xd1, 0x10, 0x40000003, 0xb}, {0x0, 0x3, 0x400, 0x1ff}, {0x1e6, 0x500fff9, 0x10927c, 0x4}, {0x3, 0x25, 0x19, 0x2d0b}, {0xfffffffe, 0x2, 0x80002004, 0x408}, {0x2, 0x8, 0x0, 0x200}, {0x7ffe, 0x1, 0x8, 0x5}, {0xfffffffd, 0xfffffffd, 0x0, 0x8}]}) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) ioctl$VNDIOCSET(r0, 0x80184404, &(0x7f00000001c0)={0x0, 0x0, 0x0}) ioctl$VNDIOCSET(r0, 0x80044403, &(0x7f00000001c0)={0x0, 0xfffffffffffffffd, 0x0}) mmap(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x3, 0x5012, 0xffffffffffffffff, 0x0) poll(&(0x7f00000001c0)=[{0xffffffffffffffff, 0x4}, {0xffffffffffffffff, 0x100}, {0xffffffffffffffff, 0x8}], 0x3, 0x0) ioctl$BIOCSETIF(0xffffffffffffffff, 0x8020426c, &(0x7f00000001c0)={'tap', 0x0}) r1 = socket(0x18, 0x1, 0x0) ioctl$FIONREAD(r1, 0xc038694e, &(0x7f00000001c0)) kevent(0xffffffffffffffff, &(0x7f0000000040)=[{{}, 0x0, 0x44, 0x0, 0x2}], 0x0, 0x0, 0x0, 0x0) sysctl$net_inet_ip(&(0x7f0000000040)={0x4, 0x11, 0x0, 0x2}, 0x6, &(0x7f0000000080), 0x0, 0x0, 0x0) 162.379452ms ago: executing program 4 (id=5): open(&(0x7f0000000000)='./file0\x00', 0x615, 0x0) (async) r0 = open(&(0x7f0000000000)='./file0\x00', 0x615, 0x0) munmap(&(0x7f0000800000/0x800000)=nil, 0x800000) (async) munmap(&(0x7f0000800000/0x800000)=nil, 0x800000) r1 = shmget$private(0x0, 0x3000, 0x208, &(0x7f0000ffa000/0x3000)=nil) shmat(r1, &(0x7f0000ffe000/0x2000)=nil, 0x0) shmat(r1, &(0x7f0000ffa000/0x3000)=nil, 0x1000) shmat(r1, &(0x7f0000d3d000/0x2000)=nil, 0x0) mmap(&(0x7f0000000000/0x2000)=nil, 0x2000, 0x2, 0x11, r0, 0x0) (async) mmap(&(0x7f0000000000/0x2000)=nil, 0x2000, 0x2, 0x11, r0, 0x0) ftruncate(r0, 0x8531) (async) ftruncate(r0, 0x8531) setreuid(0xee00, 0x0) setresuid(0x0, 0xffffffffffffffff, 0xffffffffffffffff) setuid(0x0) syz_emit_ethernet(0x62, &(0x7f0000000100)=ANY=[@ANYRES16=r0, @ANYRES32=0x41424344, @ANYRES32=0x41424344, @ANYBLOB="512001e6b0788001ee054f46072d92832e7f3eb5c8ad56097cc44715d66c446b51ae2e404afcce7073c5afaa7d38d92514942535423a4c0c5f293f254a4b729f71051f95f3d90f7c396197939d06ba403a64dd565ac002ab94a3b6d1cfcda3f00a203a3d0fdacb9d529180e46f16d1f2ad85e64255400adac10abb1a92324eb1a29056d652376808a066828e5d9d38602197acb7b727af230346e0685bd326066d344f5e3e8a823da28415cb0a7d00b7b4d1d761a9f4f6472dfe1427597f36bd41b40b564b40fdb8434f211a908567d7e977035fd79ac6f2abb5505e384ae4b66f5c683a19150a49afce3078cd51e21c9460c47ce6e48032eda10a36de5e44cecad2d536"]) 138.12772ms ago: executing program 5 (id=6): mknod(&(0x7f0000000280)='./file0\x00', 0x1ffa, 0x0) r0 = openat$diskmap(0xffffffffffffff9c, &(0x7f0000000180), 0x0, 0x0) ioctl$DIOCMAP(r0, 0xc0106477, &(0x7f0000000140)={&(0x7f0000000100)='./file0\x00', r0, 0x1}) close(r0) mknod(&(0x7f0000000400)='./file0\x00', 0x2000, 0x5c4a) r1 = open$dir(&(0x7f0000000040)='./file0\x00', 0x200, 0x0) select(0x40, &(0x7f0000000000)={0xfffffffffffffffd, 0x0, 0xdc4, 0x564, 0x9ce8, 0x0, 0x0, 0xfffffffffffffffd}, 0x0, 0x0, 0x0) close(r1) open(&(0x7f00000000c0)='./file0\x00', 0x715, 0xc3) 132.984954ms ago: executing program 3 (id=4): setrlimit(0x8, &(0x7f0000000040)={0x3f, 0x62}) r0 = syz_open_pts() r1 = socket(0x18, 0x1, 0x0) ioctl$TIOCMBIS(r0, 0x8004746c, &(0x7f0000000000)=0x3902) r2 = openat$bpf(0xffffffffffffff9c, &(0x7f00000001c0), 0x2, 0x0) ioctl$BIOCSETIF(r2, 0x8010427e, &(0x7f0000000180)={'tap', 0x0}) symlink(&(0x7f00000000c0)='.\x00', &(0x7f0000000180)='./file0\x00') unveil(&(0x7f0000000040)='./file0/file0/..\x00', &(0x7f0000000000)='c\x00') shutdown(r1, 0x2) ioctl$FIONREAD(r1, 0xc028756b, &(0x7f0000000180)) close(r0) r3 = syz_open_pts() writev(r0, &(0x7f0000001180)=[{&(0x7f0000000180)="1e09f1f6bbdbae265fe8197fb4045b9fb49cba868014a5b46b72fe1067a38df103a111418af5465f41fd05387709753cf06b1f984cf4610aedb66bf0c00917661c26c505e8a0fe4b12a0bbe79fdc879a3d191fdf4235df292cab1ef303c76e4de47655bf0fe049923d3b338a8faec50de88e15fb3e7cf4c0c8b8232589bd765acffa7a43e845b44a2a4bde9b64f41d42a12533fdcf3309441eecf64a69708a925ebf2657b792595835515694ea7e79ff240715cfda0c0a509f7a31a3c3909f1decaa645b8411369aadeae8e06a24d6b86ab5773f67e55ac1066a94042005baaf65b011f56751cab609031a353f12bf8937ff7be92cefd1a197467c36f7", 0xfd}], 0x1) ioctl$TIOCSETA(r3, 0x802c7414, &(0x7f0000000080)={0x2fffc, 0x4b6b, 0xfff6, 0x21d8b78c, "2707a460990df0ff08000000fff7ff0800", 0x89, 0x869}) writev(r0, &(0x7f0000000100)=[{&(0x7f0000000140)="fa08", 0x2}], 0x1) 129.590081ms ago: executing program 6 (id=7): r0 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000340), 0x0, 0x0) ioctl$BIOCSETIF(r0, 0x8020426c, &(0x7f00000000c0)={'tap', 0x0}) ioctl$BIOCSETF(r0, 0x80104267, &(0x7f0000000380)={0x3, &(0x7f00000003c0)=[{0x30, 0x0, 0x1, 0x9}, {0x2, 0xb, 0x7, 0x5}, {0x6, 0x7, 0x8, 0x493}]}) ioctl$BIOCGRTIMEOUT(r0, 0x4010426e, &(0x7f0000000000)) syz_emit_ethernet(0x36, &(0x7f0000000180)={@local, @local, [], {@ipv4={0x800, {{0x5, 0x4, 0x0, 0x3d, 0x28, 0x68, 0x0, 0xfc, 0x6, 0x0, @multicast2, @local={0xac, 0x14, 0x0}}, @tcp={{0x3, 0x3, 0x41424344, 0x41424344, 0x0, 0x0, 0x5, 0x2, 0x8200, 0x0, 0x9}}}}}}) 11.875531ms ago: executing program 4 (id=9): mknod(&(0x7f0000000040)='./bus\x00', 0x2000, 0xd00) r0 = open(&(0x7f0000000540)='./bus\x00', 0x0, 0x0) pread(r0, &(0x7f0000000000)="2beba8c5bfaaff44b437dfbb000000", 0x50cc3a, 0x80000000) fsync(0xffffffffffffff9c) 11.3007ms ago: executing program 4 (id=10): mknod(&(0x7f0000000000)='./bus\x00', 0x3a0914c44f7b202d, 0x504) r0 = open(&(0x7f0000000040)='./bus\x00', 0x10005, 0x0) ioctl$TIOCSETD(r0, 0x8004741b, &(0x7f00000000c0)=0x7) r1 = syz_open_pts() ioctl$TIOCSETD(r1, 0x8004741b, &(0x7f0000000040)=0x7) ioctl$FIONBIO(r0, 0x8004667e, &(0x7f0000000100)=0x9) ioctl$TIOCSETD(r1, 0x8004741b, &(0x7f0000000080)) mknod(&(0x7f0000000000)='./bus\x00', 0x3a0914c44f7b202d, 0x504) (async) open(&(0x7f0000000040)='./bus\x00', 0x10005, 0x0) (async) ioctl$TIOCSETD(r0, 0x8004741b, &(0x7f00000000c0)=0x7) (async) syz_open_pts() (async) ioctl$TIOCSETD(r1, 0x8004741b, &(0x7f0000000040)=0x7) (async) ioctl$FIONBIO(r0, 0x8004667e, &(0x7f0000000100)=0x9) (async) ioctl$TIOCSETD(r1, 0x8004741b, &(0x7f0000000080)) (async) 4.489737ms ago: executing program 3 (id=11): r0 = openat$pf(0xffffffffffffff9c, &(0x7f0000000000), 0x8000, 0x0) ioctl$DIOCADDQUEUE(r0, 0xc148445d, &(0x7f0000000080)={0x400, 0x3, {'\x00', './file0\x00', './file0\x00', './file0\x00', {{0x55a}, {0x8000, 0x8}, 0x7fffffff}, {{0x5, 0xa6}, {0x9, 0x3}, 0x400}, {{0xe, 0x18000}, {0xffff, 0x7}, 0x4}, {0x2402, 0x5, 0x100, 0xfffffff1}, 0x0, 0x6caf, 0x4, 0x1fc0000, 0xfffffe00}}) (async) ioctl$DIOCADDQUEUE(r0, 0xc148445d, &(0x7f0000000080)={0x400, 0x3, {'\x00', './file0\x00', './file0\x00', './file0\x00', {{0x55a}, {0x8000, 0x8}, 0x7fffffff}, {{0x5, 0xa6}, {0x9, 0x3}, 0x400}, {{0xe, 0x18000}, {0xffff, 0x7}, 0x4}, {0x2402, 0x5, 0x100, 0xfffffff1}, 0x0, 0x6caf, 0x4, 0x1fc0000, 0xfffffe00}}) syz_emit_ethernet(0x32, &(0x7f0000000040)={@local, @local, [], {@arp={0x806, @generic={0x1, 0x805b, 0x6, 0x0, 0x2, @remote, "", @random="adebcb41d59a", "42c15c7937a2f5283475a0457837a204"}}}}) 801.561µs ago: executing program 3 (id=12): socketpair$unix(0x1, 0x2, 0x0, &(0x7f0000000100)) (async) socketpair$unix(0x1, 0x2, 0x0, &(0x7f0000000100)={0xffffffffffffffff, 0xffffffffffffffff}) bind$unix(r0, &(0x7f0000000140)=@file={0x4, 0x1, './file0\x00'}, 0xa) acct(&(0x7f0000000180)='./file0\x00') munmap(&(0x7f0000ffc000/0x1000)=nil, 0x1000) (async) munmap(&(0x7f0000ffc000/0x1000)=nil, 0x1000) mquery(&(0x7f0000ffc000/0x3000)=nil, 0x3000, 0x4, 0x0, 0xffffffffffffffff, 0x9) ioctl$WSMUXIO_LIST_DEVICES(0xffffffffffffffff, 0xc1045763, &(0x7f0000000040)={0x0, [{0x1}, {0x1}, {0x0, 0x1}, {0x1, 0x400003}, {0x0, 0x5}, {0x0, 0x7f}, {}, {0x2, 0x4}, {0x1, 0xffffffff}, {}, {0x0, 0x40}, {0x0, 0x1ff}, {0x3}, {0x0, 0x1000}, {0x3, 0x4}, {}, {0x2, 0x3}, {0x2}, {0x1, 0x9}, {0x0, 0x10000800}, {0x2}, {0x1}, {0x5, 0x5}, {0x2, 0x400}, {0x2}, {0x2}, {0x0, 0xfffffffd}, {0x3}, {0x3, 0xfffffffa}, {0x3}, {0x2, 0xa}, {0x1, 0x102}]}) sysctl$net_inet_carp(&(0x7f0000000440)={0x4, 0x2, 0x70, 0x5}, 0x4, &(0x7f0000000480)="0641eb5c71443449a051de7c4e81abaef85c6f901494ad03b6de4f0d97a12f3a4af294a06ceb5b377e4a5dd79094a7ffe2576b5a7b7336d87f8766eeeee6d96f90c47f0b40db9a4a572a54dab092afaaf61251994d8d6841d7f4cc4cfeb3791e552d8ac64f368de6370af0cc33e1e66e8dc7bf94f4a29353f68934ffd6ddfc", &(0x7f0000000500)=0x7f, &(0x7f0000000540)="b34e8222a3553cf9ce6905c4c3587901734e2cba462e2184d292ae7d2b31f60a3dec4e6d4d06497c1a218dc2840b0d963d0a29eaffedac1c40cbb8a50a183016318203a2c72c8fce6a02bc2cde6ef67ddeab574730026e106d9e7e84bf7708062461767cc6dc40f15201d6ac816731e2d389a2edb4fec27565cf2dffa170b1b80ae66a297fbbb05e25966d3248470d49b3b8197eb810919ad7a58538b6af1e888bf290a814a71d41f4eac407fcf723aad212ce13f819023d366eece9bfa8e7ea9a9894f936e76c8d1d0928f7ef9b1cc309e52678c38256e36792e6da3f84ba901d25534340b6b6c84c1081492e7f9629088c", 0xf2) sysctl$kern(&(0x7f00000000c0)={0x1, 0x33}, 0x3, &(0x7f00000002c0)="71f91e3471ac0058bc5a91501d94a34b8e5f84cf71b59c7afec37082", &(0x7f0000000300)=0x10, 0x0, 0x37) (async) sysctl$kern(&(0x7f00000000c0)={0x1, 0x33}, 0x3, &(0x7f00000002c0)="71f91e3471ac0058bc5a91501d94a34b8e5f84cf71b59c7afec37082", &(0x7f0000000300)=0x10, 0x0, 0x37) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) sysctl$kern(&(0x7f00000000c0)={0x1, 0x2c}, 0x3, &(0x7f0000000100)="71f91e3471ac0058bc5a91501d94a34b8e5f84cf71b59c7afec37082", &(0x7f0000000080)=0x1918, 0x0, 0xfffffffffffffef1) (async) sysctl$kern(&(0x7f00000000c0)={0x1, 0x2c}, 0x3, &(0x7f0000000100)="71f91e3471ac0058bc5a91501d94a34b8e5f84cf71b59c7afec37082", &(0x7f0000000080)=0x1918, 0x0, 0xfffffffffffffef1) r2 = accept$unix(0xffffffffffffffff, &(0x7f0000000000)=@file={0x0, 0x0, ""/61}, &(0x7f0000000040)=0x3f) close(r0) semctl$SETVAL(0x0, 0x3, 0x8, &(0x7f0000000240)=0x2) recvmmsg(r2, &(0x7f0000002440)={{0x0, 0x0, &(0x7f0000002380)=[{&(0x7f0000000080)=""/40, 0x28}, {&(0x7f00000000c0)=""/131, 0x83}, {&(0x7f0000000180)=""/150, 0x96}, {&(0x7f0000000280)=""/25, 0x19}, {&(0x7f00000024c0)=""/4105, 0x1009}, {&(0x7f0000001280)=""/25, 0x19}, {&(0x7f00000012c0)=""/4096, 0x1000}, {&(0x7f00000022c0)=""/182, 0xb6}], 0x8, &(0x7f0000002400)=""/16, 0x10}, 0x100}, 0x38, 0x2000, &(0x7f0000002480)={0xd6b, 0x7}) rename(&(0x7f0000000580)='./file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\x00', 0x0) (async) rename(&(0x7f0000000580)='./file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\x00', 0x0) ioctl$TIOCSETAF(0xffffffffffffffff, 0x802c7416, 0x0) mknod(0x0, 0x2000, 0x1e5f) open(0x0, 0x80, 0x2a) (async) open(0x0, 0x80, 0x2a) socket$inet(0x2, 0x1, 0x0) (async) socket$inet(0x2, 0x1, 0x0) openat$pf(0xffffffffffffff9c, &(0x7f00000002c0), 0x1, 0x0) (async) r3 = openat$pf(0xffffffffffffff9c, &(0x7f00000002c0), 0x1, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) ioctl$TIOCSETA(r3, 0xcd604404, &(0x7f0000000180)={0x4, 0x3, 0x8, 0x6, "5ade6806000000f5ffffffffffffff00", 0xb, 0xdb5d}) r4 = open$dir(&(0x7f0000000640)='./file0\x00', 0x800, 0x160) utimensat(r4, &(0x7f0000000680)='./file0\x00', &(0x7f00000006c0)={{0xfffffffffffffff0, 0x4}, {0x9, 0x5}}, 0x2) pwritev(r1, &(0x7f0000000400)=[{&(0x7f0000000340)="ab1887f591991d8c86880ee6f5b32da232131d67921de94477511cf6db03c704b55ea673af1192dfb1b7c3392ea871edd59de4239730b52bec6aec7b4671dde8e2a3dcecac13a300ebd7bef6c2833a26ede6a3fa1dbfcb6e431fcae01a2f61e59b4b69e7", 0x64}, {&(0x7f00000003c0)="22013383e1bc94f6eacfb8fe976c", 0xe}], 0x2, 0x6fd) 0s ago: executing program 4 (id=13): r0 = socket(0x2, 0x3, 0x6) select(0x40, &(0x7f0000000000)={0xfffffffffffffffd, 0x8000000000000000, 0x0, 0x564, 0x7ff, 0x7, 0x0, 0xfffffffffffffffd}, 0x0, 0x0, 0x0) syz_emit_ethernet(0x138, &(0x7f0000000000)=ANY=[@ANYBLOB="ff02"]) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) connect$unix(r0, &(0x7f0000000000), 0x10) write(r0, &(0x7f0000000a80)="55fdb050ab5b45d498800a61dc49ec5ce29586e6d9fd3d4228200cb71ee6d4438b16860636d87222dbd0b72e38d71958bcd85212b4088e7ff79b9e0b70efdcc8f749d43514deab9be7d124b2488a4f017d498025f7ddc4f85ebba9b4fbd30b171feb3462674557b71e169954bf70bf3f78b3361d6749b309f7e0191aa36671e82def1d0daec479daea90545d223429ef848d3cbec68841ca1282277e40ecf2e4d28dd91761c9a9ed23aea2cdba88edaf52230a135997b4071a6ff0d88b9b9b3ffb8b045036fec6cf7ec8030614f7e2f5177909782e0fea33a018b97c1d1654da86300900120f9558ac5629ded1206c32d4497501f4d137dd9ad83e5667622a865ec4cdf9e015ec048d9d4e8a0f1593c9edffbd083283519f49601fe9411c4aa41774c800b9ab16e2b0f4aa3238b3e9d47b50e20e8b4e32786ee420bc1a3b7adc063b71f7cdae0bfb1862349c8a25157c59b1265680da54a1e23d7577c4ebf4f11dd15189f001d8e956a98312bf8eaf0afa", 0x171) mkdir(&(0x7f0000000180)='./file0\x00', 0x25) mkdir(&(0x7f0000000300)='./file0/file0\x00', 0x1b2) unveil(&(0x7f0000000200)='./file0/file0\x00', &(0x7f00000002c0)='x\x00') unveil(&(0x7f0000000080)='./file1\x00', &(0x7f0000000140)='c\x00') kernel console output (not intermixed with test programs): Warning: Permanently added '10.128.0.3' (ED25519) to the list of known hosts. panic: amap_pp_adjref: negative reference count Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 panic(ffffffff834e658a) at panic+0x1cf amap_pp_adjref(fffff7806e645378,0,1,ffffffff) at amap_pp_adjref+0x74c amap_adjref_anons(fffff7806e645378,0,1,ffffffff,0) at amap_adjref_anons+0x22d uvm_unmap_detach(ffff80002f0b1b60,0) at uvm_unmap_detach+0x8a uvm_map_teardown(fffff7806d19e5d0) at uvm_map_teardown+0x357 exit1(ffff80002a75aa78,0,0,1) at exit1+0x705 sys_exit(ffff80002a75aa78,ffff80002f0b1d20,ffff80002f0b1c70) at sys_exit+0x1a syscall(ffff80002f0b1d20) at syscall+0x962 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c76113fd610, count: 5 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: amap_pp_adjref: negative reference count ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 panic(ffffffff834e658a) at panic+0x1cf amap_pp_adjref(fffff7806e645378,0,1,ffffffff) at amap_pp_adjref+0x74c amap_adjref_anons(fffff7806e645378,0,1,ffffffff,0) at amap_adjref_anons+0x22d uvm_unmap_detach(ffff80002f0b1b60,0) at uvm_unmap_detach+0x8a uvm_map_teardown(fffff7806d19e5d0) at uvm_map_teardown+0x357 exit1(ffff80002a75aa78,0,0,1) at exit1+0x705 sys_exit(ffff80002a75aa78,ffff80002f0b1d20,ffff80002f0b1c70) at sys_exit+0x1a syscall(ffff80002f0b1d20) at syscall+0x962 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c76113fd610, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002f0b1910 rbx 0xffff800000c57cc0 rdx 0 rcx 0 rax 0xffff80002a75aa78 r8 0x101010101010101 r9 0x8080808080808080 r10 0x2038b1730526348 r11 0xd27609db3b59357 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff826251e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002f0b1900 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (ndp) tid=53882 pid=78108 tcnt=0 stat=onproc flags process=10000a proc=2000 runpri=52, usrpri=52, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a75afa8,0xffff80002a75bcb0 process=0xffff800045ff9218 user=0xffff80002f0ac000, vmspace=0xfffff7806d19e5d0 estcpu=18, cpticks=1, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 68521 207674 57861 0 2 0 0 syz-executor 68521 488586 57861 0 3 0 0x4000080 fifor syz-executor 61083 320260 78556 0 2 0 0 syz-executor 61083 416822 78556 0 3 0 0x4000080 fsleep syz-executor 28144 250833 8331 0 3 0x100002 0x88 sigsusp sh 63214 384461 58120 0 2 0x2 0 sh 53752 62880 68391 0 2 0x2 0 arp 68391 442054 73883 0 3 0x100002 0x88 sigsusp sh 58120 181366 46241 0 3 0x2 0x80 wait syz-executor 78556 35729 46241 0 3 0x2 0x80 nanoslp syz-executor 57861 292139 46241 0 3 0x2 0x80 nanoslp syz-executor 41891 311428 46241 0 2 0x2 0 syz-executor 88029 179262 46241 0 2 0x2 0 syz-executor 67168 354786 46241 0 3 0x2 0x80 nanoslp syz-executor 8331 306501 46241 0 3 0x2 0x80 wait syz-executor 73883 285525 46241 0 3 0x2 0x80 wait syz-executor 46241 369219 77242 0 3 0x2 0x80 kqread syz-executor 77242 489625 76707 0 3 0x100002 0x88 sigsusp ksh 76707 277090 64415 0 3 0x10 0x88 kqread sshd-session 64415 7679 68682 0 3 0x12 0x80 kqread sshd-session 78660 232630 1 0 3 0x100003 0x80 ttyin getty 68682 11129 1 0 3 0 0x88 kqread sshd 29089 341211 63630 73 3 0x1100010 0x80 kqread syslogd 63630 490329 1 0 3 0x100002 0x80 sbwait syslogd 13961 172756 1 0 3 0x100000 0x80 kqread resolvd 9094 512838 92678 77 3 0x100012 0x80 kqread dhcpleased 28570 111003 92678 77 3 0x100012 0x80 kqread dhcpleased 92678 284641 1 0 3 0 0x80 kqread dhcpleased 90345 126525 0 0 3 0x14000 0x200 bored smr 34957 346618 0 0 2 0x14000 0x200 zerothread 86495 81967 0 0 3 0x14000 0x200 aiodoned aiodoned 46320 387451 0 0 3 0x14000 0x200 syncer update 48226 57105 0 0 3 0x14000 0x200 cleaner cleaner 55166 148955 0 0 3 0x14000 0x200 reaper reaper 22035 454432 0 0 3 0x14000 0x200 pgdaemon pagedaemon 41487 141458 0 0 3 0x14000 0x200 bored viomb 84993 338578 0 0 3 0x14000 0x40000200 acpi0 acpi0 88327 172785 0 0 2 0x14000 0x200 softnet0 30244 454605 0 0 3 0x14000 0x200 smrbar systqmp 98781 97724 0 0 3 0x14000 0x200 bored systq 89885 16102 0 0 3 0x14000 0x40000200 tmoslp softclock 53690 410297 0 0 3 0x14000 0x40000200 idle0 1 28267 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 11035 12121K 12123K 166960K 12122 0 pcb 17 12K 12K 166960K 17 0 rtable 207 5K 5K 166960K 311 0 pf 30 12K 12K 166960K 30 0 ifaddr 38 6K 6K 166960K 40 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 17K 166960K 33 0 ioctlops 0 0K 2K 166960K 29 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 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 61K 97K 166960K 132 0 proc 58 59K 116K 166960K 483 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 79 5K 5K 166960K 79 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 43 201K 201K 166960K 43 0 exec 0 0K 1K 166960K 358 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 207 157K 159K 166960K 2929 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 38 76K 96K 166960K 1215 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 23 1K 1K 166960K 23 0 temp 34 9106K 9112K 166960K 3518 0 kqueue 13 20K 20K 166960K 25 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 33 0 30 1 0 1 1 0 8 0 rtentry 136 96 0 1 4 0 4 4 0 8 0 unpcb 144 43 0 26 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 12 0 7 1 0 1 1 0 8 0 arp 96 17 0 0 1 0 1 1 0 8 0 inpcb 328 60 0 52 2 0 2 2 0 8 1 nd6 112 18 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 370 0 0 24 0 24 24 0 8 0 art_table 40 371 0 0 4 0 4 4 0 8 0 art_node 32 96 0 7 1 0 1 1 0 8 0 shmpl 112 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1565 0 107 92 0 92 92 0 8 0 ffsino 256 1565 0 107 92 0 92 92 0 8 0 nchpl 144 1764 0 72 63 0 63 63 0 8 0 vnodes 216 1650 0 0 92 0 92 92 0 8 0 namei 1024 5144 0 5143 2 0 2 2 0 8 1 kstatmem 264 23 0 0 2 0 2 2 0 8 0 scxspl 216 5976 0 5976 5 0 5 5 1 8 5 plimitpl 152 29 0 13 1 0 1 1 0 8 0 sigapl 424 427 0 384 6 0 6 6 0 8 0 knotepl 120 2188 0 2141 2 0 2 2 0 8 0 kqueuepl 184 22 0 13 1 0 1 1 0 8 0 pipepl 304 122 0 95 3 0 3 3 0 8 0 fdescpl 448 414 0 385 5 0 5 5 0 8 1 filepl 120 1444 0 1235 7 0 7 7 0 8 0 lockfpl 104 10 0 8 1 0 1 1 0 8 0 lockfspl 48 5 0 3 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 89 0 78 1 0 1 1 0 8 0 zombiepl 144 386 0 384 1 0 1 1 0 8 0 processpl 1152 427 0 384 4 0 4 4 0 8 0 procpl 664 438 0 393 5 0 5 5 0 8 0 sockpl 552 136 0 108 3 0 3 3 0 8 0 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2503 0 2450 14 0 14 14 0 8 6 mcl2k 2048 107 0 106 1 0 1 1 0 8 0 mextrefs 64 35 0 35 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 4103 0 3987 8 0 8 8 0 8 0 bufpl 272 2221 0 103 142 0 142 142 0 8 0 anonpl 24 91545 0 88562 22 0 22 22 0 187 2 amapchunkpl 152 7972 0 7583 17 0 17 17 0 158 0 amappl16 200 1668 0 1657 5 0 5 5 0 8 4 amappl15 192 5 0 5 1 0 1 1 0 8 1 amappl14 184 430 0 427 1 0 1 1 0 8 0 amappl13 176 112 0 101 1 0 1 1 0 8 0 amappl12 168 645 0 618 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 0 1 1 0 8 1 amappl10 152 63 0 53 1 0 1 1 0 8 0 amappl9 144 289 0 289 1 0 1 1 0 8 1 amappl8 136 97 0 96 1 0 1 1 0 8 0 amappl7 128 138 0 126 1 0 1 1 0 8 0 amappl6 120 145 0 140 1 0 1 1 0 8 0 amappl5 112 92 0 85 1 0 1 1 0 8 0 amappl4 104 255 0 241 1 0 1 1 0 8 0 amappl3 96 1334 0 1257 3 0 3 3 0 8 0 amappl2 88 543 0 476 2 0 2 2 0 8 0 amappl1 80 9999 0 9422 14 0 14 14 0 8 1 amappl 88 2260 0 2124 4 0 4 4 0 92 0 uvmvnodes 80 96 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 414 0 385 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 414 0 385 1 0 1 1 0 8 0 vmmpekpl 168 5330 0 5291 2 0 2 2 0 8 0 vmmpepl 168 35941 0 34274 78 0 78 78 0 357 2 vmsppl 368 413 0 384 4 0 4 4 0 8 0 rwobjpl 40 13909 0 12954 11 0 11 11 0 8 0 pdppl 4096 834 0 768 96 14 82 82 0 8 16 pvpl 32 208827 0 201198 68 0 68 68 0 265 1 pmappl 216 413 0 384 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 490 0 14 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 panic(ffffffff834e658a) at panic+0x1cf amap_pp_adjref(fffff7806e645378,0,1,ffffffff) at amap_pp_adjref+0x74c amap_adjref_anons(fffff7806e645378,0,1,ffffffff,0) at amap_adjref_anons+0x22d uvm_unmap_detach(ffff80002f0b1b60,0) at uvm_unmap_detach+0x8a uvm_map_teardown(fffff7806d19e5d0) at uvm_map_teardown+0x357 exit1(ffff80002a75aa78,0,0,1) at exit1+0x705 sys_exit(ffff80002a75aa78,ffff80002f0b1d20,ffff80002f0b1c70) at sys_exit+0x1a syscall(ffff80002f0b1d20) at syscall+0x962 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c76113fd610, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 panic(ffffffff834e658a) at panic+0x1cf amap_pp_adjref(fffff7806e645378,0,1,ffffffff) at amap_pp_adjref+0x74c amap_adjref_anons(fffff7806e645378,0,1,ffffffff,0) at amap_adjref_anons+0x22d uvm_unmap_detach(ffff80002f0b1b60,0) at uvm_unmap_detach+0x8a uvm_map_teardown(fffff7806d19e5d0) at uvm_map_teardown+0x357 exit1(ffff80002a75aa78,0,0,1) at exit1+0x705 sys_exit(ffff80002a75aa78,ffff80002f0b1d20,ffff80002f0b1c70) at sys_exit+0x1a syscall(ffff80002f0b1d20) at syscall+0x962 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c76113fd610, count: -10