From owner-svn-src-head@freebsd.org Fri Aug 17 13:02:43 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40F71106D3FE; Fri, 17 Aug 2018 13:02:43 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A0A487BC1A; Fri, 17 Aug 2018 13:02:42 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mxback7g.mail.yandex.net (mxback7g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:168]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 2D06C185FB4; Fri, 17 Aug 2018 16:02:32 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback7g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Lt9h8hlbso-2QI0h0dT; Fri, 17 Aug 2018 16:02:26 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1534510946; bh=7XP0l/Z9sssow8FLgk/QTN0hgdhr6EdsTCb0L14lB5Y=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=G2g39/qdRJ3dWYmLfWndpZFL3k/M0EjMpmzWsBK5dJB0bI0hYd5n7yQz4jBFAIl3X LWfIK86+WUXohbo2ph1d8OTwBmU5rBDPfZoiUcO0jeFUObrTTNP8Iv1EbsTIyVSmNs xhuGTnbA3LsrznHwp/5ZuO4GGnLT/2m8OygHOmFg= Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id dxIqwvmXCK-2PqqkYlm; Fri, 17 Aug 2018 16:02:25 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1534510945; bh=7XP0l/Z9sssow8FLgk/QTN0hgdhr6EdsTCb0L14lB5Y=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=G29ugQT5vhlKQtDgdmd0zktrxDQj8zzYWQo7xQClIR2MHUHYjOmTfKWKftOSf2XOj 2e3Pxi41RIa3meRJ1nbtBTwfBQ8Rkxitk/WTkZ+7MrPY7xTRvMbD+lGYyHy0L8qDus PsitORzS4p5Vr6nP41YIntj7ondS7ks8sUecPpuU= Authentication-Results: smtp4p.mail.yandex.net; dkim=pass header.i=@yandex.ru Subject: Re: svn commit: r336439 - in head: share/man/man9 sys/crypto/aesni sys/crypto/armv8 sys/crypto/blake2 sys/crypto/ccp sys/crypto/via sys/dev/cesa sys/dev/cxgbe/crypto sys/dev/hifn sys/dev/safe sys/dev/s... To: Conrad Meyer , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201807180056.w6I0uPb6000705@repo.freebsd.org> From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Autocrypt: addr=bu7cher@yandex.ru; prefer-encrypt=mutual; keydata= xsBNBEwBF1kBCADB9sXFhBEUy8qQ4X63Y8eBatYMHGEFWN9ypS5lI3RE6qQW2EYbxNk7qUC5 21YIIS1mMFVBEfvR7J9uc7yaYgFCEb6Sce1RSO4ULN2mRKGHP3/Sl0ijZEjWHV91hY1YTHEF ZW/0GYinDf56sYpDDehaBF5wkWIo1+QK5nmj3vl0DIDCMNd7QEiWpyLVwECgLX2eOAXByT8B bCqVhJGcG6iFP7/B9Ll6uX5gb8thM9LM+ibwErDBVDGiOgvfxqidab7fdkh893IBCXa82H9N CNwnEtcgz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M7l3gv5ZS3DGqaGIm9gOK1ANxfrR5PgPzvI9VxDhlr2juEVMZYAqPLEJe+SSxbwLoz BcFCNdDAyXcaAzXsx/E02YWm1hIWNRxanAe7Vlg7OL+gvLpdtrYCMg28PNqKNyrQ87LQ49O9 50IIZDOtNFeR0FGucjcLPdS9PiEqCoH7/waJxWp6ydJ+g4OYRBYNM0EmMgy1N85JJrV1mi5i Message-ID: <6d1d2b23-978b-af1d-4022-16d09c9a42f5@yandex.ru> Date: Fri, 17 Aug 2018 16:01:44 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <201807180056.w6I0uPb6000705@repo.freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KFC0c0PSk2x6icLevvyZ2vluPp8N6284P" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2018 13:02:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KFC0c0PSk2x6icLevvyZ2vluPp8N6284P Content-Type: multipart/mixed; boundary="u4g29DgrNyLAd17BAj5hVtDf4awq8uScG"; protected-headers="v1" From: "Andrey V. Elsukov" To: Conrad Meyer , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: <6d1d2b23-978b-af1d-4022-16d09c9a42f5@yandex.ru> Subject: Re: svn commit: r336439 - in head: share/man/man9 sys/crypto/aesni sys/crypto/armv8 sys/crypto/blake2 sys/crypto/ccp sys/crypto/via sys/dev/cesa sys/dev/cxgbe/crypto sys/dev/hifn sys/dev/safe sys/dev/s... References: <201807180056.w6I0uPb6000705@repo.freebsd.org> In-Reply-To: <201807180056.w6I0uPb6000705@repo.freebsd.org> --u4g29DgrNyLAd17BAj5hVtDf4awq8uScG Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 18.07.2018 03:56, Conrad Meyer wrote: > Author: cem > Date: Wed Jul 18 00:56:25 2018 > New Revision: 336439 > URL: https://svnweb.freebsd.org/changeset/base/336439 >=20 > Log: > OpenCrypto: Convert sessions to opaque handles instead of integers > =20 > Track session objects in the framework, and pass handles between the > framework (OCF), consumers, and drivers. Avoid redundancy and comple= xity in > individual drivers by allocating session memory in the framework and > providing it to drivers in ::newsession(). Hi, this produces WITNESS warning, since crypto_newsession() allocates memory with M_WAITOK flag while xform_init() holds mutex: uma_zalloc_arg: zone "crypto_session" with the following non-sleepable locks held: exclusive sleep mutex xforms_list (IPsec transforms list) r =3D 0 (0xffffffff81fdb840) locked @ /home/devel/freebsd/base/head/sys/netipsec/key.c:8676 stack backtrace: #0 0xffffffff80c01643 at witness_debugger+0x73 #1 0xffffffff80c02a21 at witness_warn+0x461 #2 0xffffffff80ed98a8 at uma_zalloc_arg+0x38 #3 0xffffffff80e4a0ca at crypto_newsession+0x1ea #4 0xffffffff80e3994c at esp_init+0x37c #5 0xffffffff80e31e68 at key_setsaval+0x7f8 #6 0xffffffff80e307e2 at key_newsav+0x302 #7 0xffffffff80e2ba0d at key_add+0x53d #8 0xffffffff80e263f5 at key_parse+0xac5 #9 0xffffffff80c34dc7 at sosend_generic+0x447 #10 0xffffffff80c34ffd at sosend+0x6d #11 0xffffffff80c3c170 at kern_sendit+0x240 #12 0xffffffff80c3c4be at sendit+0x19e #13 0xffffffff80c3c30d at sys_sendto+0x4d #14 0xffffffff8107e9c1 at amd64_syscall+0x281 #15 0xffffffff8105846d at fast_syscall_common+0x101 --=20 WBR, Andrey V. Elsukov --u4g29DgrNyLAd17BAj5hVtDf4awq8uScG-- --KFC0c0PSk2x6icLevvyZ2vluPp8N6284P Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlt2xzgACgkQAcXqBBDI oXrITwgAu8htJSVZzcZGwl4kyWQduUDj8Pudl+Fdy7QB+AcTM/IZ7H2nnUpoRT9M 7Z8wqoX0dkVZSXBMm4CYGM61/flWzxToKa2e2+gxKFuQV+Ln/yr5RAtfMlpzwQRM IoPqfiC2BOuwXANPm/8MUPEhHvqb5wxSwxI1RA2l+GvYOy+U/CotMyjtJyyLnLTv MF9AjZhxf4oqx1MOy+jB/EvNhAb9th2yKxc3XdkpDN8BfuGwuyA44LOMcSrlSxug +pgTmfvF1axfcgoyuM1SDKpNIfH0D1AbmPoh3XOC238H9tNy7r6XRFYbNH6zfGhT 8nUlEhY36L5vHSE8TlkxHL2ZPa+TQA== =rUKY -----END PGP SIGNATURE----- --KFC0c0PSk2x6icLevvyZ2vluPp8N6284P--