[DragonFlyBSD - Bug #3370] (New) panic: crypto: malloc limit exceeded

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Jun 14 13:18:21 PDT 2024


Issue #3370 has been reported by mneumann.

----------------------------------------
Bug #3370: panic: crypto: malloc limit exceeded
http://bugs.dragonflybsd.org/issues/3370

* Author: mneumann
* Status: New
* Priority: Normal
* Category: Crypto
* Target version: 6.6
* Start date: 2024-06-14
----------------------------------------
This bug is reproducible (I got this 4 times within one hour), when "tcplay -i -d /dev/da8" is used and then I open up "mutt" (I guess any SSL connection would trigger the bug):

/var/crash # vmstat -M vmcore.0 -N kern.0 -m | grep " crypto "
               Type   Count  MemUse SlabUse   Limit Requests
             crypto   2.63M    756M       0    756M    5.25M




(kgdb) bt
#0  _get_mycpu () at ./machine/thread.h:69
#1  panic (fmt=fmt at entry=0xffffffff80d0c09d "%s: malloc limit exceeded")
    at /usr/src/sys/kern/kern_shutdown.c:868
#2  0xffffffff806582e9 in _kmalloc (size=260, type=0xffffffff81132bc0 <M_CRYPTO_DATA>,
    flags=<optimized out>, flags at entry=258) at /usr/src/sys/kern/kern_slaballoc.c:877
#3  0xffffffff80a07491 in __kmalloc (_flags=258, _type=<optimized out>, _size=<optimized out>)
    at /usr/src/sys/sys/malloc.h:287
#4  swcr_newsession (dev=<optimized out>, sid=<optimized out>, cri=0xfffff802035357b8)
    at /usr/src/sys/opencrypto/cryptosoft.c:903
#5  0xffffffff80a031d2 in CRYPTODEV_NEWSESSION (cri=0xfffff802035357b8, sid=0xfffff802035356e4,
    dev=0xfffff800cf2640a0) at ./cryptodev_if.h:24
#6  crypto_newsession (sid=sid at entry=0xfffff80203535780, cri=0xfffff802035357b8,
    crid=<optimized out>) at /usr/src/sys/opencrypto/crypto.c:418
#7  0xffffffff80a05e9a in cryptof_ioctl (fp=<optimized out>, cmd=3224396645,
    data=0xfffff80203535878 "\027", cred=<optimized out>, msg=<optimized out>)
    at /usr/src/sys/opencrypto/cryptodev.c:306
#8  0xffffffff806ad3fa in fo_ioctl (msg=<optimized out>, cred=<optimized out>,
    data=<optimized out>, com=<optimized out>, fp=0xfffff801ea7cf400)
    at /usr/src/sys/sys/file2.h:84
#9  mapped_ioctl (fd=<optimized out>, com=<optimized out>, uspc_data=<optimized out>, map=0x0,
    msg=<optimized out>) at /usr/src/sys/kern/sys_generic.c:717
#10 0xffffffff80be9dce in syscall2 (frame=0xfffff802035359f8)
    at /usr/src/sys/platform/pc64/x86_64/trap.c:1284
#11 0xffffffff80bace8d in Xfast_syscall () at /usr/src/sys/platform/pc64/x86_64/exception.S:448
#12 0x000000000000002b in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)






-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list