login: panic: pipe_destroy_write_buffer: pipe map for 0xfffff800366ef5f0 contains residual data
cpuid = 0
time = 1572767885
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x47/frame 0xfffffe00242fb820
vpanic() at vpanic+0x1c7/frame 0xfffffe00242fb890
panic() at panic+0x43/frame 0xfffffe00242fb8f0
pipe_write() at pipe_write+0x1fd1/frame 0xfffffe00242fb9c0
dofilewrite() at dofilewrite+0xb0/frame 0xfffffe00242fba10
kern_writev() at kern_writev+0x63/frame 0xfffffe00242fba50
sys_write() at sys_write+0xd1/frame 0xfffffe00242fbac0
amd64_syscall() at amd64_syscall+0x473/frame 0xfffffe00242fbbf0
fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe00242fbbf0
--- syscall (198, FreeBSD ELF64, nosys), rip = 0x4132ba, rsp = 0x7fffdfffdf38, rbp = 0x3 ---
KDB: enter: panic
[ thread pid 811 tid 100125 ]
Stopped at kdb_enter+0x67: movq $0,0x1469a56(%rip)
db>
db> set $lines = 0
db> set $maxwidth = 0
db> show registers
cs 0x20
ds 0x3b ll+0x1a
es 0x3b ll+0x1a
fs 0x13
gs 0x1b
ss 0x28 ll+0x7
rax 0x12
rcx 0x80 ll+0x5f
rdx 0xffffffff81877586
rbx 0
rsp 0xfffffe00242fb800
rbp 0xfffffe00242fb820
rsi 0
rdi 0
r8 0
r9 0xffffffff
r10 0
r11 0xfffff80003c934f0
r12 0xffffffff82068cf0 ddb_dbbe
r13 0
r14 0xffffffff81914cb9
r15 0xffffffff81914cb9
rip 0xffffffff810a9b97 kdb_enter+0x67
rflags 0x86 ll+0x65
kdb_enter+0x67: movq $0,0x1469a56(%rip)
db> show proc
Process 811 (syz-executor.0) at 0xfffff80003c91000:
state: NORMAL
uid: 0 gids: 0, 0, 5
parent: pid 777 at 0xfffff8000397f000
ABI: FreeBSD ELF64
arguments: /root/syz-executor.0
reaper: 0xfffff800031ea530 reapsubtree: 1
sigparent: 20
vmspace: 0xfffff800366d5000
(map 0xfffff800366d5000)
(map.pmap 0xfffff800366d50d0)
(pmap 0xfffff800366d5130)
threads: 3
100079 s syz-executor.0
100125 Run CPU 0 syz-executor.0
100126 D pipecl 0xfffff800366ef5f0 syz-executor.0
db> ps
pid ppid pgrp uid state wmesg wchan cmd
811 777 777 0 T (threaded) syz-executor.0
100079 s syz-executor.0
100125 Run CPU 0 syz-executor.0
100126 D pipecl 0xfffff800366ef5f0 syz-executor.0
806 799 806 0 Ss select 0xfffff80003914e40 dhclient
802 1 802 0 Ss select 0xfffff80003915040 dhclient
799 792 410 65 S select 0xfffff8000343c440 dhclient
792 410 410 0 S wait 0xfffff800365a3000 sh
777 775 777 0 Ss nanslp 0xffffffff824fc1e1 syz-executor.0
775 773 773 0 S (threaded) syz-execprog
100093 S uwait 0xfffff80003c32180 syz-execprog
100104 S uwait 0xfffff80003c32480 syz-execprog
100105 S uwait 0xfffff80003c31800 syz-execprog
100106 S uwait 0xfffff80003c31a00 syz-execprog
100107 S uwait 0xfffff80003c31100 syz-execprog
100108 S uwait 0xfffff800038f3980 syz-execprog
100109 S uwait 0xfffff800038f3a80 syz-execprog
100110 S kqread 0xfffff80003de8200 syz-execprog
100111 S uwait 0xfffff800038f3c80 syz-execprog
773 771 773 0 Ss pause 0xfffff80003b450a8 csh
771 668 771 0 Ss select 0xfffff8000343c340 sshd
734 1 734 0 Ss+ ttyin 0xfffff800032cacb0 getty
733 1 733 0 Ss+ ttyin 0xfffff800032c80b0 getty
732 1 732 0 Ss+ ttyin 0xfffff800032c84b0 getty
731 1 731 0 Ss+ ttyin 0xfffff800032c88b0 getty
730 1 730 0 Ss+ ttyin 0xfffff800032c8cb0 getty
729 1 729 0 Ss+ ttyin 0xfffff800032c90b0 getty
728 1 728 0 Ss+ ttyin 0xfffff800032c94b0 getty
727 1 727 0 Ss+ ttyin 0xfffff800032c98b0 getty
726 1 726 0 Ss+ ttyin 0xfffff800032c9cb0 getty
672 1 672 0 Ss nanslp 0xffffffff824fc1e1 cron
668 1 668 0 Ss select 0xfffff8000343c5c0 sshd
481 1 481 0 Ss select 0xfffff8000343c140 syslogd
410 1 410 0 Ss wait 0xfffff8000397aa60 devd
409 1 409 65 Ss select 0xfffff80003915340 dhclient
324 1 324 0 Ss select 0xfffff800039154c0 dhclient
321 1 321 0 Ss select 0xfffff8000343c4c0 dhclient
21 0 0 0 DL syncer 0xffffffff825d26b0 [syncer]
20 0 0 0 DL vlruwt 0xfffff8000340d000 [vnlru]
19 0 0 0 DL (threaded) [bufdaemon]
100063 D qsleep 0xffffffff825d1b58 [bufdaemon]
100064 D - 0xffffffff8200a900 [bufspacedaemon-0]
100080 D sdflush 0xfffff80003b4a0e8 [/ worker]
18 0 0 0 DL psleep 0xffffffff825ed008 [vmdaemon]
17 0 0 0 DL (threaded) [pagedaemon]
100061 D psleep 0xffffffff82618d98 [dom0]
100067 D launds 0xffffffff82618da4 [laundry: dom0]
100068 D umarcl 0xffffffff8152b190 [uma]
16 0 0 0 DL - 0xffffffff82357e20 [rand_harvestq]
15 0 0 0 DL waiting 0xffffffff8265e370 [sctp_iterator]
9 0 0 0 DL - 0xffffffff825d155c [soaiod4]
8 0 0 0 DL - 0xffffffff825d155c [soaiod3]
7 0 0 0 DL - 0xffffffff825d155c [soaiod2]
6 0 0 0 DL - 0xffffffff825d155c [soaiod1]
5 0 0 0 DL (threaded) [cam]
100031 D - 0xffffffff822331c0 [doneq0]
100060 D - 0xffffffff82233088 [scanner]
4 0 0 0 DL crypto_ 0xfffff800032d4090 [crypto returns 1]
3 0 0 0 DL crypto_ 0xfffff800032d4030 [crypto returns 0]
2 0 0 0 DL crypto_ 0xffffffff825e7648 [crypto]
14 0 0 0 DL seqstat 0xfffff80003254c88 [sequencer 00]
13 0 0 0 DL (threaded) [geom]
100022 D - 0xffffffff82617390 [g_event]
100023 D - 0xffffffff826173a0 [g_up]
100024 D - 0xffffffff82617398 [g_down]
12 0 0 0 WL (threaded) [intr]
100005 I [swi6: Giant taskq]
100007 I [swi5: fast taskq]
100011 I [swi6: task queue]
100017 I [swi4: clock (0)]
100018 I [swi4: clock (1)]
100019 I [swi3: vm]
100020 I [swi1: netisr 0]
100032 I [irq24: virtio_pci0]
100033 I [irq25: virtio_pci0]
100034 I [irq26: virtio_pci0]
100035 I [irq27: virtio_pci0]
100036 I [irq28: virtio_pci1]
100037 I [irq29: virtio_pci1]
100038 I [irq30: virtio_pci1]
100039 I [irq31: virtio_pci1]
100040 I [irq32: virtio_pci1]
100045 I [irq1: atkbd0]
100046 I [irq12: psm0]
100047 I [swi0: uart uart++]
11 0 0 0 RL (threaded) [idle]
100003 CanRun [idle: cpu0]
100004 Run CPU 1 [idle: cpu1]
1 0 1 0 SLs wait 0xfffff800031ea530 [init]
10 0 0 0 DL audit_w 0xffffffff8265f000 [audit]
0 0 0 0 DLs (threaded) [kernel]
100000 D swapin 0xffffffff82606b68 [swapper]
100006 D - 0xfffff800031d4400 [thread taskq]
100008 D - 0xfffff800031df600 [config_0]
100009 D - 0xfffff800031d4100 [kqueue_ctx taskq]
100010 D - 0xfffff800031d4000 [aiod_kick taskq]
100012 D - 0xfffff800031df100 [softirq_0]
100013 D - 0xfffff800031dee00 [softirq_1]
100014 D - 0xfffff800031dec00 [if_io_tqg_0]
100015 D - 0xfffff800031dea00 [if_io_tqg_1]
100016 D - 0xfffff800031de800 [if_config_tqg_0]
100021 D - 0xfffff800031d3800 [firmware taskq]
100026 D - 0xfffff800031d3700 [crypto_0]
100027 D - 0xfffff800031d3700 [crypto_1]
100041 D - 0xfffff800031d3100 [vtnet0 rxq 0]
100042 D - 0xfffff800031d3000 [vtnet0 txq 0]
100043 D - 0xfffff800031d2e00 [vtnet0 rxq 1]
100044 D - 0xfffff800031d2d00 [vtnet0 txq 1]
100048 D - 0xfffff800031d2600 [mca taskq]
100052 D - 0xffffffff824faf61 [deadlkres]
100055 D - 0xfffff800039aa100 [acpi_task_0]
100056 D - 0xfffff800039aa100 [acpi_task_1]
100057 D - 0xfffff800039aa100 [acpi_task_2]
100059 D - 0xfffff800031d3600 [CAM taskq]
db> show all locks
Process 811 (syz-executor.0) thread 0xfffff800366f36e0 (100125)
exclusive sleep mutex pipe mutex (pipe mutex) r = 0 (0xfffff800366ef8c0) locked @ /syzkaller/managers/main/kernel/sys/kern/sys_pipe.c:836
db> show malloc
Type InUse MemUse Requests
devbuf 4200 4764K 4227
vtbuf 24 1968K 46
callout 3 1672K 3
kobj 332 1328K 488
newblk 11 1027K 427
vfscache 4 1025K 4
pcb 22 537K 78
inodedep 15 519K 89
ufs_quota 1 512K 1
vfs_hash 1 512K 1
intr 4 388K 4
subproc 111 220K 876
acpica 1674 185K 47809
vnet_data 1 168K 1
pagedep 6 130K 31
tfo_ccache 1 128K 1
sysctloid 2038 107K 2098
sem 4 106K 4
DEVFS1 102 102K 113
bus 948 77K 2905
linker 205 76K 222
mtx_pool 2 72K 2
syncache 1 68K 1
UMAHash 3 67K 3
acpitask 1 64K 1
ddb_capture 1 64K 1
module 493 62K 494
filedesc 5 37K 27
BPF 19 36K 19
gtaskqueue 22 34K 22
hostcache 1 32K 1
shm 1 32K 1
DEVFS3 121 31K 131
msg 4 30K 4
umtx 240 30K 240
kdtrace 152 30K 1692
DEVFS_RULE 56 27K 56
kbdmux 6 22K 6
vmem 3 19K 4
temp 22 17K 1680
ufs_mount 3 17K 4
proc 3 17K 3
ifaddr 43 17K 43
tty 16 16K 16
tidhash 1 16K 1
ithread 87 15K 87
bus-sc 26 13K 1128
KTRACE 100 13K 100
kenv 95 12K 99
eventhandler 122 11K 122
pfs_nodes 20 10K 20
GEOM 60 10K 487
rman 77 9K 418
bmsafemap 2 9K 55
devstat 4 9K 4
UART 12 9K 12
rpc 2 8K 2
shmfd 1 8K 1
pfs_vncache 1 8K 1
cred 30 8K 287
audit_evclass 230 8K 288
lltable 20 7K 20
ifnet 4 7K 4
CAM DEV 3 6K 508
ether_multi 73 6K 78
vt 11 6K 11
kqueue 49 6K 816
sglist 5 6K 5
CAM queue 5 6K 1522
in6_multi 41 5K 41
routetbl 37 5K 41
ufs_dirhash 24 5K 24
plimit 18 5K 420
taskqueue 42 5K 42
memdesc 1 4K 1
MCA 32 4K 32
evdev 4 4K 4
hhook 13 4K 13
terminal 11 3K 11
session 22 3K 39
pgrp 22 3K 39
acpisem 20 3K 20
uidinfo 5 3K 8
select 19 3K 19
proc-args 41 3K 520
lockf 20 3K 39
local_apic 1 2K 1
io_apic 1 2K 1
ipsec-saq 2 2K 2
CAM XPT 22 2K 542
Unitno 25 2K 39
ip6ndp 8 2K 9
acpidev 20 2K 20
crypto 2 2K 2
msi 9 2K 9
diradd 8 1K 52
ipsecpolicy 1 1K 1
sahead 1 1K 1
secasvar 1 1K 1
sctp_ifa 8 1K 8
clone 8 1K 8
cdev 4 1K 4
NFSD session 1 1K 1
CAM periph 4 1K 270
in_multi 3 1K 4
toponodes 6 1K 6
isadev 6 1K 6
mount 16 1K 86
pci_link 10 1K 10
dirrem 5 1K 34
mkdir 5 1K 32
freefile 5 1K 31
CAM SIM 2 1K 2
softdep 1 1K 1
indirdep 2 1K 4
chacha20random 1 1K 1
epoch 4 1K 4
encap_export_host 8 1K 8
mld 3 1K 3
sctp_ifn 3 1K 3
igmp 3 1K 3
pfil 3 1K 3
tun 4 1K 4
osd 3 1K 9
DEVFSP 5 1K 5
freework 2 1K 31
freeblks 1 1K 30
vnodes 1 1K 1
NFSD lckfile 1 1K 1
NFSD V4client 1 1K 1
DEVFS 9 1K 10
inpcbpolicy 7 1K 147
feeder 7 1K 7
newdirblk 3 1K 16
loginclass 3 1K 3
apmdev 1 1K 1
atkbddev 2 1K 2
pmchooks 1 1K 1
prison 4 1K 4
CAM dev queue 2 1K 2
CAM I/O Scheduler 1 1K 1
CAM path 4 1K 1030
soname 4 1K 5528
nexusdev 5 1K 5
tcpfunc 1 1K 1
sctp_vrf 1 1K 1
vnet 1 1K 1
acpiintr 1 1K 1
pmc 1 1K 1
cpus 2 1K 2
vnet_data_free 1 1K 1
Per-cpu 1 1K 1
filecaps 2 1K 77
entropy 1 1K 39
p1003.1b 1 1K 1
ppbusdev 0 0K 0
agtiapi_MemAlloc malloc 0 0K 0
osti_cacheable 0 0K 0
madt_table 0 0K 2
tempbuff 0 0K 0
tempbuff 0 0K 0
smartpqi 0 0K 0
ag_tgt_map_t malloc 0 0K 0
ag_slr_map_t malloc 0 0K 0
lDevFlags * malloc 0 0K 0
tiDeviceHandle_t * malloc 0 0K 0
ag_portal_data_t malloc 0 0K 0
ag_device_t malloc 0 0K 0
STLock malloc 0 0K 0
CCB List 0 0K 0
iavf 0 0K 0
ixl 0 0K 0
sr_iov 0 0K 0
OCS 0 0K 0
OCS 0 0K 0
nvme 0 0K 0
nvd 0 0K 0
netmap 0 0K 0
mwldev 0 0K 0
MVS driver 0 0K 0
fpukern_ctx 0 0K 0
xen_intr 0 0K 0
CAM ccb queue 0 0K 0
xen_hvm 0 0K 0
legacydrv 0 0K 0
qpidrv 0 0K 0
mrsasbuf 0 0K 0
mpt_user 0 0K 0
dmar_idpgtbl 0 0K 0
dmar_dom 0 0K 0
dmar_ctx 0 0K 0
dmar_dmamap 0 0K 0
mps_user 0 0K 0
MPSSAS 0 0K 0
isci 0 0K 0
bxe_ilt 0 0K 0
xenbus 0 0K 0
vm_fictitious 0 0K 0
mps 0 0K 0
mpr_user 0 0K 0
MPRSAS 0 0K 0
vm_pgdata 0 0K 0
jblocks 0 0K 0
savedino 0 0K 16
sentinel 0 0K 0
jfsync 0 0K 0
jtrunc 0 0K 0
sbdep 0 0K 8
jsegdep 0 0K 0
jseg 0 0K 0
jfreefrag 0 0K 0
jfreeblk 0 0K 0
jnewblk 0 0K 0
jmvref 0 0K 0
jremref 0 0K 0
jaddref 0 0K 0
freedep 0 0K 0
freefrag 0 0K 5
allocindir 0 0K 0
allocdirect 0 0K 0
ufs_trim 0 0K 0
mactemp 0 0K 0
audit_trigger 0 0K 0
audit_pipe_presel 0 0K 0
audit_pipeent 0 0K 0
audit_pipe 0 0K 0
audit_evname 0 0K 0
audit_bsm 0 0K 0
audit_gidset 0 0K 0
audit_text 0 0K 0
audit_path 0 0K 0
audit_data 0 0K 0
audit_cred 0 0K 0
xform 0 0K 0
NLM 0 0K 0
nfsclient_nlminfo 0 0K 0
nfsclient_lock 0 0K 0
NFS FHA 0 0K 0
ipsec-spdcache 0 0K 0
ipsec-reg 0 0K 0
ipsec-misc 0 0K 0
ipsecrequest 0 0K 0
ip6opt 0 0K 3
ip6_msource 0 0K 0
ip6_moptions 0 0K 0
in6_mfilter 0 0K 0
frag6 0 0K 0
tcplog 0 0K 0
LRO 0 0K 0
sctp_mcore 0 0K 0
sctp_socko 0 0K 0
sctp_iter 0 0K 5
sctp_mvrf 0 0K 0
sctp_timw 0 0K 0
sctp_cpal 0 0K 0
sctp_cmsg 0 0K 0
sctp_stre 0 0K 0
sctp_athi 0 0K 0
sctp_athm 0 0K 0
sctp_atky 0 0K 0
sctp_atcl 0 0K 0
sctp_a_it 0 0K 5
sctp_aadr 0 0K 0
sctp_stro 0 0K 0
sctp_stri 0 0K 0
sctp_map 0 0K 0
newreno data 0 0K 0
ip_msource 0 0K 0
ip_moptions 0 0K 0
in_mfilter 0 0K 0
ipid 0 0K 0
80211scan 0 0K 0
80211ratectl 0 0K 0
80211power 0 0K 0
80211nodeie 0 0K 0
80211node 0 0K 0
80211mesh_gt 0 0K 0
80211mesh_rt 0 0K 0
80211perr 0 0K 0
80211prep 0 0K 0
80211preq 0 0K 0
80211dfs 0 0K 0
80211crypto 0 0K 0
80211vap 0 0K 0
iflib 0 0K 0
vlan 0 0K 0
gif 0 0K 0
ifdescr 0 0K 0
zlib 0 0K 0
fadvise 0 0K 0
vnodemarker 0 0K 70
mpr 0 0K 0
statfs 0 0K 223
export_host 0 0K 0
cl_savebuf 0 0K 2
biobuf 0 0K 0
aios 0 0K 0
lio 0 0K 0
acl 0 0K 0
mfibuf 0 0K 0
mbuf_tag 0 0K 48
accf 0 0K 0
pts 0 0K 0
iov 0 0K 13341
ioctlops 0 0K 90
Witness 0 0K 0
stack 0 0K 0
md_sectors 0 0K 0
sbuf 0 0K 364
md_disk 0 0K 0
compressor 0 0K 0
malodev 0 0K 0
SWAP 0 0K 0
LED 0 0K 0
sysctltmp 0 0K 572
sysctl 0 0K 1
ekcd 0 0K 0
dumper 0 0K 0
rctl 0 0K 0
ix_sriov 0 0K 0
aacraidcam 0 0K 0
ix 0 0K 0
ipsbuf 0 0K 0
iirbuf 0 0K 0
cache 0 0K 0
aacraid_buf 0 0K 0
kcovinfo 0 0K 0
prison_racct 0 0K 0
Fail Points 0 0K 0
sigio 0 0K 1
filedesc_to_leader 0 0K 0
tty console 0 0K 0
aaccam 0 0K 0
aacbuf 0 0K 0
zstd 0 0K 0
nvlist 0 0K 0
SCSI ENC 0 0K 0
SCSI sa 0 0K 0
isofs_node 0 0K 0
isofs_mount 0 0K 0
tr_raid5_data 0 0K 0
tr_raid1e_data 0 0K 0
tr_raid1_data 0 0K 0
tr_raid0_data 0 0K 0
tr_concat_data 0 0K 0
md_sii_data 0 0K 0
md_promise_data 0 0K 0
md_nvidia_data 0 0K 0
md_jmicron_data 0 0K 0
md_intel_data 0 0K 0
md_ddf_data 0 0K 0
raid_data 0 0K 72
geom_flashmap 0 0K 0
newnfsmnt 0 0K 0
newnfsclient_req 0 0K 0
NFSCL layrecall 0 0K 0
NFSCL session 0 0K 0
NFSCL sockreq 0 0K 0
NFSCL devinfo 0 0K 0
NFSCL flayout 0 0K 0
NFSCL layout 0 0K 0
NFSD rollback 0 0K 0
NFSCL diroffdiroff 0 0K 0
NEWdirectio 0 0K 0
NEWNFSnode 0 0K 0
NFSCL lck 0 0K 0
NFSCL lckown 0 0K 0
NFSCL client 0 0K 0
NFSCL deleg 0 0K 0
NFSCL open 0 0K 0
NFSCL owner 0 0K 0
NFS fh 0 0K 0
NFS req 0 0K 0
NFSD usrgroup 0 0K 0
NFSD string 0 0K 0
NFSD V4lock 0 0K 0
NFSD V4state 0 0K 0
NFSD srvcache 0 0K 0
msdosfs_fat 0 0K 0
msdosfs_mount 0 0K 0
msdosfs_node 0 0K 0
DEVFS4 0 0K 0
DEVFS2 0 0K 0
gntdev 0 0K 0
privcmd_dev 0 0K 0
evtchn_dev 0 0K 0
xenstore 0 0K 0
scsi_pass 0 0K 0
ciss_data 0 0K 0
xnb 0 0K 0
xbbd 0 0K 0
xbd 0 0K 0
Balloon 0 0K 0
sysmouse 0 0K 0
vtfont 0 0K 0
ath_hal 0 0K 0
athdev 0 0K 0
ata_pci 0 0K 0
ata_dma 0 0K 0
ata_generic 0 0K 0
amr 0 0K 0
scsi_da 0 0K 69
ata_da 0 0K 0
scsi_ch 0 0K 0
scsi_cd 0 0K 0
USBdev 0 0K 0
USB 0 0K 0
AHCI driver 0 0K 0
agp 0 0K 0
nvme_da 0 0K 0
acpipwr 0 0K 0
twsbuf 0 0K 0
twe_commands 0 0K 0
twa_commands 0 0K 0
tcp_log_dev 0 0K 0
midi buffers 0 0K 0
mixer 0 0K 0
ac97 0 0K 0
hdacc 0 0K 0
hdac 0 0K 0
hdaa 0 0K 0
acpi_perf 0 0K 0
acpicmbat 0 0K 0
SIIS driver 0 0K 0
CAM CCB 0 0K 1899
PUC 0 0K 0
db> show ktr
No such command; use "help" to list available commands