uvm_fault: socreate

0 views
Skip to first unread message

syzbot

unread,
Feb 25, 2022, 8:59:29 AM2/25/22
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 307d7537791b For add-path send the Adj-RIB-Out needs to ha..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=176f8db6700000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=1b5b209ce506db4d411d

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1b5b20...@syzkaller.appspotmail.com

login: uvm_fault(0xfffffd807828fe78, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at socreate+0x84: cmpq $0,0(%rax)
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*485752 46431 32767 0x10 0x4000000 1K syz-executor.0
487520 78002 0 0x14000 0x200 0 reaper
socreate(18,ffff80002e373bb0,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172
sys_socketpair(ffff800024cb2d30,ffff80002e373c48,ffff80002e373ca0) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430
syscall(ffff80002e373d10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002e373d10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x4ac59677480, count: 11
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: uvm_fault(0xfffffd807828fe78, 0x0, 0, 1) -> e
ddb{1}> trace
socreate(18,ffff80002e373bb0,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172
sys_socketpair(ffff800024cb2d30,ffff80002e373c48,ffff80002e373ca0) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430
syscall(ffff80002e373d10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002e373d10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x4ac59677480, count: -4
ddb{1}> show registers
rdi 0xffff80002123e000
rsi 0x1c6a __ALIGN_SIZE+0xc6a
rbp 0xffff80002e373b90
rbx 0x18
rdx 0xffff80002123e000
rcx 0x1c69 __ALIGN_SIZE+0xc69
rax 0
r8 0xffffffff81e690f0 uvm_map_inentry_pc
r9 0x14
r10 0
r11 0x42b224700a01a1e3
r12 0xffff80002e373bb0
r13 0xffffffff8288cea8 inet6sw+0x208
r14 0x3
r15 0x3c
rip 0xffffffff81e82144 socreate+0x84
cs 0x8
rflags 0x10282 __ALIGN_SIZE+0xf282
rsp 0xffff80002e373b30
ss 0x10
socreate+0x84: cmpq $0,0(%rax)
ddb{1}> show proc
PROC (syz-executor.0) pid=485752 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
pri=71, usrpri=71, nice=20
forw=0xffffffffffffffff, list=0xffff800024cb2550,0xffff800024cb2aa0
process=0xffff80002af229b0 user=0xffff80002e36e000, vmspace=0xfffffd807828fe78
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
56368 410610 4477 32767 2 0x10 syz-executor.5
56368 423095 4477 32767 3 0x4000090 fsleep syz-executor.5
46431 183157 90223 32767 2 0x10 syz-executor.0
*46431 485752 90223 32767 7 0x4000010 syz-executor.0
99294 215143 82332 32767 2 0x10 syz-executor.4
18635 100640 92260 32767 2 0x10 syz-executor.1
18635 314022 92260 32767 2 0x4000010 syz-executor.1
26879 337592 82327 32767 2 0x10 syz-executor.6
26879 468735 82327 32767 3 0x4000090 fsleep syz-executor.6
71700 39930 0 0 3 0x14200 bored sosplice
82327 52444 96055 32767 3 0x90 nanoslp syz-executor.6
96055 140767 98895 0 3 0x82 wait syz-executor.6
61987 344484 75483 32767 3 0x90 nanoslp syz-executor.7
75483 259335 98895 0 3 0x82 wait syz-executor.7
4477 275792 54534 32767 3 0x90 nanoslp syz-executor.5
13132 386693 91726 32767 3 0x90 nanoslp syz-executor.3
82332 337577 52791 32767 2 0x10 syz-executor.4
92260 146215 54638 32767 3 0x90 nanoslp syz-executor.1
54534 208281 98895 0 3 0x82 wait syz-executor.5
52791 408600 98895 0 3 0x82 wait syz-executor.4
91726 286525 98895 0 3 0x82 wait syz-executor.3
5383 426968 97288 32767 3 0x90 nanoslp syz-executor.2
90223 50689 27081 32767 3 0x90 nanoslp syz-executor.0
97288 38960 98895 0 3 0x82 wait syz-executor.2
54638 386239 98895 0 3 0x82 wait syz-executor.1
27081 110240 98895 0 3 0x82 wait syz-executor.0
98895 120145 89400 0 3 0x82 thrsleep syz-fuzzer
98895 446633 89400 0 3 0x4000082 thrsleep syz-fuzzer
98895 393989 89400 0 3 0x4000082 thrsleep syz-fuzzer
98895 32208 89400 0 3 0x4000082 thrsleep syz-fuzzer
98895 124121 89400 0 3 0x4000082 thrsleep syz-fuzzer
98895 148562 89400 0 3 0x4000082 thrsleep syz-fuzzer
98895 173460 89400 0 3 0x4000082 kqread syz-fuzzer
98895 254538 89400 0 3 0x4000082 thrsleep syz-fuzzer
89400 330561 84733 0 3 0x10008a sigsusp ksh
84733 48021 2830 0 3 0x9a kqread sshd
99653 319617 1 0 3 0x100083 ttyin getty
2830 180506 1 0 3 0x88 kqread sshd
16098 471082 29132 73 3 0x1100090 kqread syslogd
29132 324073 1 0 3 0x100082 netio syslogd
80394 291661 1 0 3 0x100080 kqread resolvd
69556 215505 56087 77 3 0x100092 kqread dhcpleased
76507 266017 56087 77 3 0x100092 kqread dhcpleased
56087 171070 1 0 3 0x80 kqread dhcpleased
36667 148443 0 0 3 0x14200 bored smr
10208 98667 0 0 2 0x14200 zerothread
64741 281614 0 0 3 0x14200 aiodoned aiodoned
23065 59244 0 0 3 0x14200 syncer update
87780 295570 0 0 3 0x14200 cleaner cleaner
78002 487520 0 0 7 0x14200 reaper
38838 272351 0 0 3 0x14200 pgdaemon pagedaemon
65694 400469 0 0 3 0x14200 bored viomb
45652 53045 0 0 3 0x40014200 acpi0 acpi0
80439 256348 0 0 3 0x40014200 idle1
92532 211586 0 0 3 0x14200 bored softnet
11531 334536 0 0 3 0x14200 bored systqmp
24072 83030 0 0 3 0x14200 bored systq
92064 504534 0 0 3 0x40014200 bored softclock
18450 515951 0 0 3 0x40014200 idle0
1 11076 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
CPU 0:
exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd80671497d0)
#0 witness_lock+0x44d
#1 mtx_enter_try+0x100
#2 mtx_enter+0x4b sys/kern/kern_lock.c:266
#3 pmap_do_remove+0x8b rcr3 machine/cpufunc.h:141 [inline]
#3 pmap_do_remove+0x8b pmap_map_ptes sys/arch/amd64/amd64/pmap.c:414 [inline]
#3 pmap_do_remove+0x8b sys/arch/amd64/amd64/pmap.c:1769
#4 uvm_unmap_kill_entry_withlock+0x1af sys/uvm/uvm_map.c:2139
#5 uvm_map_teardown+0x197 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline]
#5 uvm_map_teardown+0x197 sys/uvm/uvm_map.c:2771
#6 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
#7 reaper+0x18b sys/kern/kern_exit.c:457
#8 proc_trampoline+0x1c
Process 46431 (syz-executor.0) thread 0xffff800024cb2d30 (485752)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82abcc60)
#0 witness_lock+0x44d
#1 kpageflttrap+0x23d sys/arch/amd64/amd64/trap.c:274
#2 kerntrap+0xef sys/arch/amd64/amd64/trap.c:318
#3 alltraps_kern_meltdown+0x7b
#4 socreate+0x84 sys/kern/uipc_socket.c:172
#5 sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430
#6 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#6 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#7 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10172 6407K 6419K 78643K 11262 0
pcb 13 8K 8K 78643K 13 0
rtable 238 6K 7K 78643K 354 0
ifaddr 81 16K 16K 78643K 82 0
counters 56 35K 35K 78643K 56 0
ioctlops 0 0K 2K 78643K 33 0
iov 0 0K 12K 78643K 7 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 5 0
vnodes 1270 79K 79K 78643K 1286 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 2 0K 0K 78643K 2 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 23 85K 121K 78643K 361 0
proc 56 74K 111K 78643K 451 0
subproc 104 6K 6K 78643K 104 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 8 0
in_multi 99 6K 6K 78643K 99 0
ether_multi 1 0K 0K 78643K 1 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 49 228K 228K 78643K 49 0
exec 0 0K 2K 78643K 603 0
tdb 3 0K 0K 78643K 3 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 7 26K 26K 78643K 7 0
UVM amap 277 78K 78K 78643K 5552 0
UVM aobj 8 2K 2K 78643K 8 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 8 0
NDP 11 0K 2K 78643K 27 0
temp 84 4689K 4753K 78643K 4585 0
kqueue 12 18K 22K 78643K 45 0
SYN cache 2 16K 16K 78643K 2 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 22 0 0 1 0 1 1 0 8 0
rtpcb 120 43 0 40 1 0 1 1 0 8 0
rtentry 112 111 0 1 4 0 4 4 0 8 0
unpcb 136 61 0 48 1 0 1 1 0 8 0
syncache 296 14 0 14 1 0 1 1 0 8 1
tcpqe 32 78 0 78 1 0 1 1 0 8 1
tcpcb 736 68 0 64 4 0 4 4 0 8 3
arp 120 18 0 0 1 0 1 1 0 8 0
inpcb 304 125 0 118 2 0 2 2 0 8 1
nd6 48 24 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 452 0 0 29 0 29 29 0 8 0
art_table 32 453 0 0 4 0 4 4 0 8 0
art_node 16 110 0 10 1 0 1 1 0 8 0
shmpl 112 5 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1714 0 286 90 0 90 90 0 8 0
ffsino 272 1714 0 286 96 0 96 96 0 8 0
nchpl 144 2194 0 532 62 0 62 62 0 8 0
uvmvnodes 80 1827 0 0 38 0 38 38 0 8 0
vnodes 224 1827 0 0 108 0 108 108 0 8 0
namei 1024 6776 0 6776 2 1 1 2 0 8 1
percpumem 16 40 0 0 1 0 1 1 0 8 0
scxspl 216 6640 0 6640 2 1 1 2 0 8 1
plimitpl 152 52 0 30 1 0 1 1 0 8 0
sigapl 424 634 0 582 7 0 7 7 0 8 0
futexpl 64 877 0 875 1 0 1 1 0 8 0
knotepl 120 110 0 0 4 0 4 4 0 8 0
kqueuepl 216 41 0 33 1 0 1 1 0 8 0
pipepl 336 136 0 107 3 0 3 3 0 8 0
fdescpl 496 619 0 585 7 1 6 6 0 8 0
filepl 152 1910 0 1675 10 0 10 10 0 8 0
lockfpl 104 40 0 38 1 0 1 1 0 8 0
lockfspl 48 19 0 17 1 0 1 1 0 8 0
sessionpl 144 23 0 7 1 0 1 1 0 8 0
pgrppl 48 23 0 7 1 0 1 1 0 8 0
ucredpl 96 139 0 121 1 0 1 1 0 8 0
zombiepl 144 585 0 582 1 0 1 1 0 8 0
processpl 1064 634 0 582 5 1 4 4 0 8 0
procpl 672 877 0 813 6 0 6 6 0 8 0
sosppl 168 7 0 7 1 0 1 1 0 8 1
sockpl 480 229 0 206 4 0 4 4 0 8 1
mcl64k 65536 2 0 0 1 0 1 1 0 8 0
mcl9k 9216 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 4 0 0 1 0 1 1 0 8 0
mcl4k 4096 2 0 0 1 0 1 1 0 8 0
mcl2k 2048 117 0 0 14 0 14 14 0 8 0
mtagpl 96 3 0 0 1 0 1 1 0 8 0
mbufpl 256 353 0 0 22 0 22 22 0 8 0
bufpl 288 3818 0 139 263 0 263 263 0 8 0
anonpl 24 121003 0 112986 72 2 70 70 0 186 11
amapchunkpl 152 12220 0 11606 29 1 28 28 0 158 1
amappl16 200 1085 0 918 18 0 18 18 0 8 9
amappl15 192 156 0 147 1 0 1 1 0 8 0
amappl14 184 41 0 34 1 0 1 1 0 8 0
amappl13 176 112 0 109 1 0 1 1 0 8 0
amappl12 168 62 0 59 1 0 1 1 0 8 0
amappl11 160 41 0 31 1 0 1 1 0 8 0
amappl10 152 47 0 43 1 0 1 1 0 8 0
amappl9 144 469 0 464 1 0 1 1 0 8 0
amappl8 136 570 0 529 2 0 2 2 0 8 0
amappl7 128 138 0 124 1 0 1 1 0 8 0
amappl6 120 258 0 236 2 0 2 2 0 8 1
amappl5 112 482 0 460 1 0 1 1 0 8 0
amappl4 104 777 0 754 2 0 2 2 0 8 0
amappl3 96 228 0 212 1 0 1 1 0 8 0
amappl2 88 574 0 530 3 0 3 3 0 8 1
amappl1 80 13757 0 13145 18 1 17 18 0 8 3
amappl 88 5112 0 4891 7 1 6 6 0 92 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 7 0 0 1 0 1 1 0 8 0
uaddrrnd 24 619 0 585 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 619 0 585 1 0 1 1 0 8 0
vmmpekpl 168 8557 0 8503 3 0 3 3 0 8 0
vmmpepl 168 57198 0 54927 112 0 112 112 0 357 4
vmsppl 368 618 0 584 4 0 4 4 0 8 0
rwobjpl 56 16464 0 13581 43 0 43 43 0 8 0
pdppl 4096 1245 0 1168 109 28 81 93 0 8 4
pvpl 32 342842 0 329924 242 0 242 242 0 265 126
pmappl 248 618 0 584 4 1 3 3 0 8 0
extentpl 40 58 0 38 1 0 1 1 0 8 0
phpool 112 646 0 31 18 0 18 18 0 8 0
ddb{1}> machine ddbcpu 0
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffffffff828d5ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82abca58) at __mp_lock+0x122 sys/kern/kern_lock.c:147
uvm_unmap_detach(ffff800021135310,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615
uvm_map_teardown(fffffd807828f5d8) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789
uvmspace_free(fffffd807828f5d8) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
reaper(ffff8000210f9a40) at reaper+0x18b sys/kern/kern_exit.c:457
end trace frame: 0x0, count: 7
ddb{0}> trace
x86_ipi_db(ffffffff828d5ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82abca58) at __mp_lock+0x122 sys/kern/kern_lock.c:147
uvm_unmap_detach(ffff800021135310,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615
uvm_map_teardown(fffffd807828f5d8) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789
uvmspace_free(fffffd807828f5d8) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
reaper(ffff8000210f9a40) at reaper+0x18b sys/kern/kern_exit.c:457
end trace frame: 0x0, count: -8
ddb{0}> machine ddbcpu 1
Stopped at socreate+0x84: cmpq $0,0(%rax)
socreate(18,ffff80002e373bb0,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172
sys_socketpair(ffff800024cb2d30,ffff80002e373c48,ffff80002e373ca0) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430
syscall(ffff80002e373d10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002e373d10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x4ac59677480, count: 11
ddb{1}> trace
socreate(18,ffff80002e373bb0,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172
sys_socketpair(ffff800024cb2d30,ffff80002e373c48,ffff80002e373ca0) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430
syscall(ffff80002e373d10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002e373d10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x4ac59677480, count: -4


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Feb 25, 2022, 9:14:22 AM2/25/22
to syzkaller-o...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 307d7537791b For add-path send the Adj-RIB-Out needs to ha..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1430cac1700000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=132bcada700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12a7ce8e700000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1b5b20...@syzkaller.appspotmail.com

login: uvm_fault(0xfffffd806ef62cf8, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at socreate+0x84: cmpq $0,0(%rax)
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*374824 49792 0 0x2 0 0 syz-executor1478983127
300360 36893 0 0x12 0x8 1K sshd
socreate(18,ffff8000211c2c78,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172
sys_socket(ffff8000ffff62b0,ffff8000211c2d08,ffff8000211c2d60) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96
syscall(ffff8000211c2dd0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211c2dd0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff9b40, count: 11
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{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
*cpu0: uvm_fault(0xfffffd806ef62cf8, 0x0, 0, 1) -> e
ddb{0}> trace
socreate(18,ffff8000211c2c78,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172
sys_socket(ffff8000ffff62b0,ffff8000211c2d08,ffff8000211c2d60) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96
syscall(ffff8000211c2dd0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211c2dd0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff9b40, count: -4
ddb{0}> show registers
rdi 0
rsi 0
rbp 0xffff8000211c2c60
rbx 0x18
rdx 0
rcx 0x29
rax 0
r8 0xffffffff81e690f0 uvm_map_inentry_pc
r9 0xa
r10 0
r11 0xff4ca2198e98d0e6
r12 0xffff8000211c2c78
r13 0xffffffff8288cca0 inet6sw
r14 0
r15 0x29
rip 0xffffffff81e82144 socreate+0x84
cs 0x8
rflags 0x10286 __ALIGN_SIZE+0xf286
rsp 0xffff8000211c2c00
ss 0x10
socreate+0x84: cmpq $0,0(%rax)
ddb{0}> show proc
PROC (syz-executor1478983127) pid=374824 stat=onproc
flags process=2<EXEC> proc=0
pri=50, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff6d30,0xffffffff82a987b8
process=0xffff80002116e150 user=0xffff8000211bd000, vmspace=0xfffffd806ef62cf8
estcpu=0, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
*49792 374824 62493 0 7 0x2 syz-executor1478983127
62493 206950 36893 0 3 0x10008a sigsusp ksh
36893 300360 1719 0 7 0x1a sshd
18267 183592 1 0 3 0x100083 ttyin getty
1719 28545 1 0 3 0x88 kqread sshd
31656 15563 85615 73 3 0x1100090 kqread syslogd
85615 109054 1 0 3 0x100082 netio syslogd
33819 416901 1 0 3 0x100080 kqread resolvd
16368 472675 3428 77 3 0x100092 kqread dhcpleased
67183 51725 3428 77 3 0x100092 kqread dhcpleased
3428 313927 1 0 3 0x80 kqread dhcpleased
99050 12226 0 0 3 0x14200 bored smr
80536 131786 0 0 3 0x14200 pgzero zerothread
88852 165019 0 0 3 0x14200 aiodoned aiodoned
44153 3190 0 0 3 0x14200 syncer update
30241 461732 0 0 3 0x14200 cleaner cleaner
98907 442510 0 0 3 0x14200 reaper reaper
69633 386976 0 0 3 0x14200 pgdaemon pagedaemon
7063 335446 0 0 3 0x14200 bored viomb
20444 13325 0 0 3 0x40014200 acpi0 acpi0
31865 351874 0 0 3 0x40014200 idle1
48745 505016 0 0 2 0x14200 softnet
23809 192922 0 0 3 0x14200 bored systqmp
67036 318524 0 0 3 0x14200 bored systq
55442 191440 0 0 3 0x40014200 bored softclock
63046 353256 0 0 3 0x40014200 idle0
1 433807 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 49792 (syz-executor1478983127) thread 0xffff8000ffff62b0 (374824)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82abcc60)
#0 witness_lock+0x44d
#1 kpageflttrap+0x23d sys/arch/amd64/amd64/trap.c:274
#2 kerntrap+0xef sys/arch/amd64/amd64/trap.c:318
#3 alltraps_kern_meltdown+0x7b
#4 socreate+0x84 sys/kern/uipc_socket.c:172
#5 sys_socket+0xd8 sys/kern/uipc_syscalls.c:96
#6 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#6 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#7 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10143 6388K 6419K 78643K 11233 0
pcb 13 8K 8K 78643K 13 0
rtable 62 2K 2K 78643K 108 0
ifaddr 24 7K 7K 78643K 24 0
counters 40 33K 33K 78643K 40 0
ioctlops 0 0K 2K 78643K 25 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 5 0
vnodes 1166 73K 73K 78643K 1179 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 2 0K 0K 78643K 2 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 1 0K 0K 78643K 1 0
proc 55 74K 75K 78643K 226 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 11 0K 0K 78643K 11 0
ether_multi 1 0K 0K 78643K 1 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 25 122K 122K 78643K 25 0
exec 0 0K 2K 78643K 391 0
tdb 3 0K 0K 78643K 3 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 7 26K 26K 78643K 7 0
UVM amap 71 3K 5K 78643K 1965 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 3 0K 0K 78643K 3 0
temp 19 4686K 4749K 78643K 3021 0
kqueue 11 16K 18K 78643K 24 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 22 0 0 1 0 1 1 0 8 0
rtpcb 120 17 0 14 1 0 1 1 0 8 0
rtentry 112 23 0 1 1 0 1 1 0 8 0
unpcb 136 33 0 20 1 0 1 1 0 8 0
syncache 296 5 0 5 2 1 1 1 0 8 1
tcpcb 736 8 0 5 1 0 1 1 0 8 0
arp 120 2 0 0 1 0 1 1 0 8 0
inpcb 304 25 0 19 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 97 0 0 7 0 7 7 0 8 0
art_table 32 98 0 0 1 0 1 1 0 8 0
art_node 16 22 0 2 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1415 0 38 87 0 87 87 0 8 0
ffsino 272 1415 0 38 92 0 92 92 0 8 0
nchpl 144 1590 0 47 58 0 58 58 0 8 0
uvmvnodes 80 1424 0 0 30 0 30 30 0 8 0
vnodes 224 1424 0 0 84 0 84 84 0 8 0
namei 1024 4131 0 4131 2 1 1 1 0 8 1
percpumem 16 32 0 0 1 0 1 1 0 8 0
scxspl 216 3732 0 3732 3 2 1 2 0 8 1
plimitpl 152 15 0 9 1 0 1 1 0 8 0
sigapl 424 292 0 265 4 0 4 4 0 8 0
knotepl 120 48 0 0 2 0 2 2 0 8 0
kqueuepl 216 20 0 13 1 0 1 1 0 8 0
pipepl 336 79 0 76 2 1 1 1 0 8 0
fdescpl 496 278 0 265 3 0 3 3 0 8 0
filepl 152 1010 0 957 3 0 3 3 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 17 0 9 1 0 1 1 0 8 0
pgrppl 48 17 0 9 1 0 1 1 0 8 0
ucredpl 96 64 0 54 1 0 1 1 0 8 0
zombiepl 144 265 0 265 2 1 1 1 0 8 1
processpl 1064 292 0 265 3 0 3 3 0 8 0
procpl 672 292 0 265 3 0 3 3 0 8 0
sockpl 480 75 0 53 4 1 3 4 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 3 0 0 1 0 1 1 0 8 0
mcl2k 2048 63 0 0 8 0 8 8 0 8 0
mtagpl 96 2 0 0 1 0 1 1 0 8 0
mbufpl 256 115 0 0 7 0 7 7 0 8 0
bufpl 288 1938 0 88 133 0 133 133 0 8 0
anonpl 24 38297 0 36253 15 1 14 15 0 186 0
amapchunkpl 152 3610 0 3485 7 1 6 7 0 158 0
amappl16 200 25 0 25 1 1 0 1 0 8 0
amappl15 192 59 0 56 1 0 1 1 0 8 0
amappl13 176 32 0 31 2 1 1 1 0 8 0
amappl12 168 23 0 22 1 0 1 1 0 8 0
amappl11 160 54 0 44 1 0 1 1 0 8 0
amappl10 152 13 0 13 1 1 0 1 0 8 0
amappl9 144 450 0 448 1 0 1 1 0 8 0
amappl8 136 341 0 338 1 0 1 1 0 8 0
amappl7 128 61 0 58 1 0 1 1 0 8 0
amappl6 120 108 0 95 1 0 1 1 0 8 0
amappl5 112 164 0 155 1 0 1 1 0 8 0
amappl4 104 578 0 558 1 0 1 1 0 8 0
amappl3 96 112 0 103 1 0 1 1 0 8 0
amappl2 88 338 0 300 1 0 1 1 0 8 0
amappl1 80 8150 0 7795 10 1 9 9 0 8 0
amappl 88 1713 0 1657 2 0 2 2 0 92 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 278 0 265 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 278 0 265 1 0 1 1 0 8 0
vmmpekpl 168 5878 0 5863 1 0 1 1 0 8 0
vmmpepl 168 24556 0 23790 46 8 38 43 0 357 1
vmsppl 368 277 0 265 2 0 2 2 0 8 0
rwobjpl 56 8974 0 7038 30 1 29 29 0 8 1
pdppl 4096 563 0 530 51 18 33 41 0 8 0
pvpl 32 123639 0 119843 40 6 34 40 0 265 0
pmappl 248 277 0 265 2 1 1 2 0 8 0
extentpl 40 58 0 38 1 0 1 1 0 8 0
phpool 112 401 0 22 11 0 11 11 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
socreate(18,ffff8000211c2c78,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172
sys_socket(ffff8000ffff62b0,ffff8000211c2d08,ffff8000211c2d60) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96
syscall(ffff8000211c2dd0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211c2dd0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff9b40, count: -4
Reply all
Reply to author
Forward
0 new messages