[Bug 230304] Malloc while lock is held in crypto code

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 2 20:17:07 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230304

            Bug ID: 230304
           Summary: Malloc while lock is held in crypto code
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: sef at FreeBSD.org

When using swcr_newsession(), changes in r336439 result in:

uma_zalloc_arg: zone "64" with the following non-sleepable locks held:
exclusive sleep mutex crypto (crypto driver table) r = 0 (0xffffffff81faf330)
locked @ /FreeBSD/src-git-new/sys/opencrypto/crypto.c:573 stack backtrace:
#0 0xffffffff80c00013 at witness_debugger+0x73
#1 0xffffffff80c013f1 at witness_warn+0x461
#2 0xffffffff80ed6478 at uma_zalloc_arg+0x38
#3 0xffffffff80b6d165 at malloc+0x95
#4 0xffffffff80e4ad35 at swcr_newsession+0x75
#5 0xffffffff80e47bb1 at crypto_newsession+0x3b1

Discussed with cem, filing a PR for tracking.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list