Hi all,
with source fetched few minutes ago i wanted to test bluhm@ diff
https://marc.info/?l=openbsd-tech&m=162645141414262&w=2
I've found out that with or without bluhm@ diff i'm getting panic. panic
in attachment.
I'm sending traffic over ipsec tunnel from r620-1 box to x3550m4 box. If
at one point while sending traffic over tunnel i hit "enter" over serial
console on x3550m4, that box panic with this log:
x3550m4# panic: malloc: out of space in kmem_map
Stopped at db_enter+0x10: popq %rbp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*153853 51636 0 0x100003 0 3 ksh
194352 78666 0 0x14000 0x200 4 crynlk
43942 98148 0 0x14000 0x200 1 softnet
db_enter() at db_enter+0x10
panic(ffffffff81ea2c7a) at panic+0xbf
malloc(10000,7f,1) at malloc+0x7b4
ufs_readdir(ffff800026ff6a50) at ufs_readdir+0xf8
VOP_READDIR(fffffd887f03e380,ffff800026ff6ab8,fffffd887f7d7600,ffff800026ff6afc)
at VOP_READDIR+0x50
sys_getdents(ffff800026ed57a8,ffff800026ff6b70,ffff800026ff6bd0) at
sys_getdents+0x161
syscall(ffff800026ff6c40) at syscall+0x3a9
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffcc780, count: 7
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{3}>
x3550m4# panic: malloc: out of space in kmem_map
Stopped at db_enter+0x10: popq %rbp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*153853 51636 0 0x100003 0 3 ksh
194352 78666 0 0x14000 0x200 4 crynlk
43942 98148 0 0x14000 0x200 1 softnet
db_enter() at db_enter+0x10
panic(ffffffff81ea2c7a) at panic+0xbf
malloc(10000,7f,1) at malloc+0x7b4
ufs_readdir(ffff800026ff6a50) at ufs_readdir+0xf8
VOP_READDIR(fffffd887f03e380,ffff800026ff6ab8,fffffd887f7d7600,ffff800026ff6afc)
at VOP_READDIR+0x50
sys_getdents(ffff800026ed57a8,ffff800026ff6b70,ffff800026ff6bd0) at
sys_getdents+0x161
syscall(ffff800026ff6c40) at syscall+0x3a9
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffcc780, count: 7
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{3}>
ddb{3}> show reg
rdi 0
rsi 0x14
rbp 0xffff800026ff6710
rbx 0x10000 __ALIGN_SIZE+0xf000
rdx 0xfe00000000000003
rcx 0x206
rax 0x28
r8 0x101010101010101
r9 0
r10 0
r11 0x49e3f089d74cd5c1
r12 0xffff8000219dca00
r13 0x10000 __ALIGN_SIZE+0xf000
r14 0
r15 0xffffffff81ea2c7a apollo_udma100_tim+0xd4a7
rip 0xffffffff8117d3a0 db_enter+0x10
cs 0x8
rflags 0x202
rsp 0xffff800026ff6710
ss 0x10
db_enter+0x10: popq %rbp
ddb{3}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 98112 50978K 50979K 78643K 99556 0
pcb 13 8K 8K 78643K 13 0
rtable 155 5K 5K 78643K 257 0
ifaddr 177 22K 22K 78643K 185 0
counters 322 212K 212K 78643K 322 0
ioctlops 0 0K 4K 78643K 1567 0
iov 0 0K 0K 78643K 19 0
mount 9 9K 9K 78643K 9 0
log 0 0K 13K 78643K 49397 0
vnodes 1194 75K 75K 78643K 1204 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 37 87K 87K 78643K 37 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 2 0K 0K 78643K 2 0
dirhash 27 5K 5K 78643K 54 0
ACPI 3991 479K 519K 78643K 15335 0
file desc 3 1K 1K 78643K 4 0
proc 69 87K 100K 78643K 669 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 28 1K 1K 78643K 28 0
ether_multi 7 0K 0K 78643K 7 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 37 175K 175K 78643K 37 0
exec 0 0K 3K 78643K 814 0
pfkey data 0 0K 2K 78643K 308 0
tdb 3 1K 2K 78643K 6 0
xform_data 322973 40366K 70359K 78643K 5546065 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 33K 78643K 13 0
newblk 1 0K 0K 78643K 1 0
indirdep 0 0K 16K 78643K 5 0
VM swap 7 2326K 2326K 78643K 7 0
UVM amap 402 79K 105K 78643K 5865 0
UVM aobj 3 2K 2K 78643K 3 0
USB 84 28K 28K 78643K 98 0
USB device 19 1K 1K 78643K 19 0
witness 1 1600K 1600K 78643K 1 0
memdesc 1 4K 4K 78643K 1 0
crypto data 5 1K 1K 78643K 5 0
IPsec creds 3 0K 0K 78643K 52 0
NDP 20 0K 0K 78643K 20 0
temp 72 4243K 4247K 78643K 15366 0
kqueue 30 45K 45K 78643K 31 0
SYN cache 2 16K 16K 78643K 2 0
ddb{3}>
ddb{3}> show all pool
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
tdb 1080 62 0 48 3 0 3 3 0 8 0
ebepl 112 5 0 0 1 0 1 1 0 8 0
plcache 128 132 0 0 5 0 5 5 0 8 0
rtpcb 120 22 0 18 1 0 1 1 0 8 0
rtentry 112 74 0 7 2 0 2 2 0 8 0
unpcb 120 110 0 25 3 0 3 3 0 8 0
syncache 296 5 0 5 3 3 0 1 0 8 0
tcpcb 736 20 0 8 2 0 2 2 0 8 0
arp 120 20 0 0 1 0 1 1 0 8 0
inpcb 304 343 0 303 4 0 4 4 0 8 0
nd6 48 11 0 7 1 0 1 1 0 8 0
ipsec policy 336 2 0 0 1 0 1 1 0 8 0
pkpcb 40 5 0 3 1 0 1 1 0 8 0
cryptop 352 5872133 0 5549196 259257 229899 29358 51176 0 8 0
pfosfp 40 1428 0 1005 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfruleitem 16 42 0 34 1 0 1 1 0 8 0
pfstitem 24 140 0 97 1 0 1 1 0 8 0
pfstkey 112 140 0 97 4 0 4 4 0 8 0
pfstate 320 98 0 63 6 0 6 6 0 8 0
pfrule 1360 20 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 225 0 32 13 0 13 13 0 8 0
art_table 32 226 0 32 2 0 2 2 0 8 0
art_node 16 74 0 8 1 0 1 1 0 8 0
dirhash 1024 88 0 40 6 0 6 6 0 8 0
newdirblk 32 16 0 16 1 1 0 1 0 8 0
dirrem 64 1659 0 1659 27 27 0 27 0 8 0
mkdir 56 16 0 16 1 1 0 1 0 8 0
diradd 56 1667 0 1667 23 23 0 23 0 8 0
freefile 48 1640 0 1640 22 22 0 20 0 8 0
freeblks 192 1660 0 1660 83 83 0 81 0 8 0
freefrag 64 15 0 15 2 2 0 1 0 8 0
allocindir 104 11643 0 11642 250 249 1 217 0 8 0
indirdep 56 20 0 19 2 1 1 1 0 8 0
allocdir 128 2745 0 2745 76 76 0 76 0 8 0
bmsafemap 64 43 0 43 3 3 0 1 0 8 0
newblk 64 14388 0 14388 6 6 0 1 0 8 0
inodedep 160 1711 0 1711 71 71 0 71 0 8 0
pagedep 128 29 0 29 1 1 0 1 0 8 0
dino1pl 128 5401 0 1648 124 2 122 122 0 8 0
ffsino 272 5401 0 1648 255 4 251 251 0 8 0
nchpl 144 5703 0 2497 124 5 119 119 0 8 0
rtmask 32 1 0 0 1 0 1 1 0 8 0
uvmvnodes 72 5418 0 0 99 0 99 99 0 8 0
vnodes 224 5418 0 0 319 0 319 319 0 8 0
namei 1024 19784 0 19784 4 3 1 1 0 8 1
percpumem 96 38 0 0 1 0 1 1 0 8 0
aesni 576 4 0 0 1 0 1 1 1 8 0
vcpupl 1984 4 0 0 1 0 1 1 0 8 0
vmpool 560 4 0 0 1 0 1 1 0 8 0
ehcixfer 296 175 0 170 1 0 1 1 0 8 0
scxspl 216 102345 0 102341 26 25 1 8 0 8 0
plimitpl 152 33 0 15 1 0 1 1 0 8 0
sigapl 424 579 0 514 9 0 9 9 0 8 0
futexpl 56 6017 0 6013 1 0 1 1 0 8 0
knotepl 112 128 0 0 4 0 4 4 0 8 0
kqueuepl 216 21 0 1 2 0 2 2 0 8 0
pipepl 336 151 0 139 5 4 1 2 0 8 0
fdescpl 496 551 0 514 7 0 7 7 0 8 0
filepl 152 8216 0 7989 10 0 10 10 0 8 0
lockfpl 104 7 0 2 1 0 1 1 0 8 0
lockfspl 48 6 0 1 1 0 1 1 0 8 0
sessionpl 144 20 0 2 1 0 1 1 0 8 0
pgrppl 48 41 0 23 1 0 1 1 0 8 0
ucredpl 96 119 0 86 1 0 1 1 0 8 0
zombiepl 144 514 0 514 3 3 0 1 0 8 0
processpl 1072 579 0 514 6 0 6 6 0 8 0
procpl 672 648 0 575 9 0 9 9 0 8 0
srpgc 96 1 0 1 1 1 0 1 0 8 0
sockpl 480 480 0 349 17 0 17 17 0 8 0
mcl12k 12288 144 0 0 13 0 13 13 0 8 0
mcl8k 8192 1 0 0 1 0 1 1 0 8 0
mcl4k 4096 7 0 0 1 0 1 1 0 8 0
mcl2k2 2112 572160 0 0 38138 3 38135 38138 0 8 0
mcl2k 2048 97 0 0 12 0 12 12 0 8 0
mtagpl 96 1402 0 0 24 0 24 24 0 8 0
mbufpl 256 572222 0 0 35753 2 35751 35753 0 8 0
bufpl 280 103913 0 12687 6518 1 6517 6517 0 8 0
anonpl 24 918867 0 158161 4603 20 4583 4583 0 3034 0
amapchunkpl 152 60114 0 12428 1858 23 1835 1835 0 158 0
amappl16 200 808 0 797 19 17 2 15 0 8 0
amappl15 192 213 0 187 2 0 2 2 0 8 0
amappl14 184 11 0 8 2 1 1 1 0 8 0
amappl13 176 74 0 54 2 0 2 2 0 8 0
amappl12 168 81 0 76 3 2 1 3 0 8 0
amappl11 160 146 0 78 4 1 3 4 0 8 0
amappl10 152 19 0 13 1 0 1 1 0 8 0
amappl9 144 41 0 37 1 0 1 1 0 8 0
amappl8 136 1077 0 1067 13 10 3 13 0 8 0
amappl7 128 151 0 134 2 1 1 2 0 8 0
amappl6 120 432 0 390 4 1 3 4 0 8 0
amappl5 112 240 0 199 4 2 2 4 0 8 0
amappl4 104 2043 0 1989 25 21 4 24 0 8 0
amappl3 96 591 0 551 9 6 3 7 0 8 0
amappl2 88 3420 0 3205 39 31 8 31 0 8 0
amappl1 80 14564 0 13289 32 0 32 32 0 8 0
amappl 88 5163 0 4815 26 16 10 25 0 92 0
dma16384 16384 3 0 3 1 1 0 1 0 8 0
dma4096 4096 7 0 1 1 0 1 1 0 8 0
dma2048 2048 50 0 50 23 22 1 1 0 8 1
dma1024 1024 46 0 46 23 22 1 1 0 8 1
dma512 512 281 0 281 23 22 1 1 0 8 1
dma256 256 7 0 7 1 1 0 1 0 8 0
dma128 128 64 0 64 1 1 0 1 0 8 0
dma64 64 24 0 24 23 22 1 1 0 8 1
dma32 32 12 0 12 1 1 0 1 0 8 0
dma16 16 1 0 1 1 1 0 1 0 8 0
aobjpl 64 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 555 0 514 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 555 0 514 1 0 1 1 0 8 0
vmmpekpl 168 48244 0 48213 2 0 2 2 0 8 0
vmmpepl 168 60152 0 56804 401 132 269 401 0 357 81
vmsppl 368 554 0 514 5 0 5 5 0 8 0
rwobjpl 56 21100 0 19125 83 40 43 83 0 8 0
pdppl 4096 1118 0 1032 152 66 86 114 0 8 0
pvpl 32 1166378 0 740239 3932 495 3437 3437 0 265 0
pmappl 224 554 0 514 4 0 4 4 0 8 0
extentpl 40 268 0 180 1 0 1 1 0 8 0
phpool 112 36285 0 148 1033 0 1033 1033 0 8 0
ddb{3}>
ddb{3}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
23835 256596 36450 68 3 0x90 select isakmpd
36450 335635 1 0 3 0x80 netio isakmpd
*51636 153853 1 0 7 0x100003 ksh
61607 500901 1 0 3 0x100098 poll cron
78815 214906 26710 107 3 0x100090 fsleep vmd
78815 511590 26710 107 3 0x4100010 biowait vmd
78815 67919 26710 107 3 0x4100090 kqread vmd
56161 402260 26710 107 3 0x100090 fsleep vmd
56161 369102 26710 107 3 0x4100010 biowait vmd
56161 72887 26710 107 3 0x4100090 kqread vmd
68297 360750 26710 107 3 0x100090 fsleep vmd
68297 326907 26710 107 3 0x4100010 biowait vmd
68297 367853 26710 107 3 0x4100090 kqread vmd
59674 297875 26710 107 3 0x100090 fsleep vmd
59674 42725 26710 107 3 0x4100010 biowait vmd
59674 11450 26710 107 3 0x4100090 kqread vmd
47051 195071 1 0 3 0x100080 kqread vmd
26710 262065 1 107 3 0x100092 kqread vmd
37930 478856 1 107 3 0x100092 kqread vmd
16274 516529 1 0 3 0x92 kqread vmd
29356 495465 79977 95 3 0x100092 kqread smtpd
92875 224845 79977 103 3 0x100092 kqread smtpd
19961 117274 79977 95 3 0x100092 kqread smtpd
61014 489862 79977 95 3 0x100092 kqread smtpd
31658 148626 79977 95 3 0x100092 kqread smtpd
69816 337608 79977 95 3 0x100092 kqread smtpd
79977 420088 1 0 3 0x100080 kqread smtpd
73309 2362 51210 75 3 0x100092 poll bgpd
91737 133920 51210 75 3 0x100092 poll bgpd
60739 489671 51210 75 3 0x100092 poll bgpd
51210 347662 1 0 3 0x80 poll bgpd
69858 344536 1 0 3 0x88 select sshd
53779 7806 1 0 3 0x100080 poll ntpd
3386 355161 61764 83 3 0x100092 poll ntpd
61764 166184 1 83 3 0x100092 poll ntpd
65220 473346 48360 74 3 0x100092 bpf pflogd
48360 281854 1 0 3 0x80 netio pflogd
88312 199302 725 73 3 0x100090 kqread syslogd
725 167139 1 0 3 0x100082 netio syslogd
28967 470233 1 0 3 0x100080 kqread resolvd
38365 388093 25448 77 3 0x100092 kqread dhcpleased
13921 203733 25448 77 3 0x100092 kqread dhcpleased
25448 137812 1 0 3 0x80 kqread dhcpleased
38156 478101 0 0 3 0x14200 bored smr
49434 329301 0 0 3 0x14200 pgzero zerothread
68655 298587 0 0 3 0x14200 aiodoned aiodoned
8767 497855 0 0 3 0x14200 syncer update
22353 397544 0 0 3 0x14200 cleaner cleaner
81156 21644 0 0 3 0x14200 reaper reaper
41866 367933 0 0 3 0x14200 pgdaemon pagedaemon
78666 194352 0 0 7 0x14200 crynlk
48928 146801 0 0 3 0x14200 netlock crypto
67557 259786 0 0 3 0x14200 usbtsk usbtask
6047 307060 0 0 3 0x14200 usbatsk usbatsk
3433 454991 0 0 3 0x40014200 acpi0 acpi0
7977 498678 0 0 7 0x40014200 idle11
32364 427251 0 0 7 0x40014200 idle10
23112 359437 0 0 7 0x40014200 idle9
68296 408891 0 0 7 0x40014200 idle8
19747 309220 0 0 7 0x40014200 idle7
79246 397678 0 0 7 0x40014200 idle6
13923 447825 0 0 7 0x40014200 idle5
5410 353585 0 0 3 0x40014200 idle4
88279 412102 0 0 3 0x40014200 idle3
33844 489711 0 0 7 0x40014200 idle2
55687 240555 0 0 3 0x40014200 idle1
79702 44969 0 0 3 0x14200 bored sensors
98148 43942 0 0 7 0x14200 softnet
33265 293037 0 0 3 0x14200 bored systqmp
24600 223899 0 0 3 0x14200 bored systq
18930 467526 0 0 3 0x40014200 netlock softclock
97512 195409 0 0 7 0x40014200 idle0
1 413495 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{3}>