Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2611560rdb; Mon, 12 Feb 2024 10:10:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUp96zT9XjOUP+DGOFMtQoBYCmobzWuzHc9bOaZRIlOS/fJ/hzrYidtbfNBoT0AvwSXTqbrqpOn7/TUULtbm+oO4lAf2JDJCexnKWBdaQ== X-Google-Smtp-Source: AGHT+IGMcuXOTsN0H/Lat8bPGhOmghgq2rEM9ITfyTd74iNMb3e1hasqNf0QqZLQAXF7dcvYvCAd X-Received: by 2002:a05:651c:624:b0:2d0:c1c0:bbc3 with SMTP id k36-20020a05651c062400b002d0c1c0bbc3mr4383509lje.2.1707761423307; Mon, 12 Feb 2024 10:10:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707761423; cv=pass; d=google.com; s=arc-20160816; b=CA5KLUR2N85KwJfjM5K/uOV3x32btHLHtcMQOqOHDqEbLZoqxYfPO5LJSlhewLziN1 bJGjDqShdIwP/C4F5Z4kie3EsjvrLTV5uR/Lh/WdLRxowWUKzQVwkTfvK4f15dMOIVjw 5ZLijNyXHNlw917iEwDDD+FHfEml/4YgAqR7Ktev8hijSqt9cdoNfZJU7VaiD7YaHjIS 3d1nv+7eFeJSLxxM6LcB8EQe7mNmPhk2ogzvhIICLEFEFMRsBRgoo08zKz0YYLDaePtW IFMpLbsKBtqqLHKCE+anyyBoY6Z4aVKmr6PFrf7xdKjXutDj3NzV3CWt7UkQjxMQRWFX 5aWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=RfY7k+3q4R6f1MlcI01eujkqMf6SWAsOnRx9qJy401s=; fh=zb4dht8D7TO/4/I5L3lqj/U5kErZ3eoq1FoAqPyFaYA=; b=yw2ZcsdWK1t6bB5t5SB58bwsHcbZRUBhch3XEYCkMThXCQTzlvjbTvNIpFlx3QN7rU 7y2M1DBKWgu6TVb2bipli8NSGoVfiYHZpovTxo8AYYgRcffVsmzA5p4De4IWq5elAKaV yrXwbI9NsaFDUf0dZPWI6AJ9qEgxTmWrAIbtthnySbAdPZE5fQe01tVnLFibwWkg5dNP DNyeBgW9TkIpHVL8lykX+U33SUsvrGwnJ2HlH24vhpPmzoXnV4OBpKBIRMVaU1AvxvOc FIKG565ofAO3K87a+AXu0b+nb5IRjY85sijrsNyC2HxDkgr8mC5tqyNm+6tueyZ9NFTb g4dA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vFIawtyR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCU97/pW7IExwRop0JV2EOBUj3EhV7Qee+Y/OCWnHaWGv1N3E5m7hYrLzXKTlN/+hul4vG16TVcvCPAPv4Y3GZhrgUVe4JHz/8gmC9IiwQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id op25-20020a170906bcf900b00a386d3f4c64si415978ejb.741.2024.02.12.10.10.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 10:10:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vFIawtyR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0E3AD1F22DC8 for ; Mon, 12 Feb 2024 18:10:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FB193F9FE; Mon, 12 Feb 2024 18:10:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vFIawtyR" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB33A3F9FC; Mon, 12 Feb 2024 18:10:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707761417; cv=none; b=Bl9Bbf8yxm2bfNrutHZgTc1foIAf8qwpyLHcuVi9xqKAAyv70bpwgslDgH/J94OeB30ldt2zjRf0w9KiLQbOVvprBS+TO93zgaJAueOqbkche4qzVZl50ymhrIG5GfZ3rI6M0bn2aU7zZincriavaiqvrSfR4l1WbsZYpNjPWVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707761417; c=relaxed/simple; bh=psuq9G62OgxIDSLiGci5UEeAxIL4X5IB+bm5lXCKv8g=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=HWTvhtYDsI+6YZ3nklYj2oXfR5GSZfa/83UBT53t54XO68QImZEdVOKRaDjGEzbZ7JzTNFF8yFdvMEeTf8skAwO1ozZ+BcXg1pLj3lTAFu3CzOfi7rZ5QQwSISFbMw3Pe9n3but+WTzu0sWYxJsLHPjeRZPU+dfcAVatv/6foGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vFIawtyR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A846DC433C7; Mon, 12 Feb 2024 18:10:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707761417; bh=psuq9G62OgxIDSLiGci5UEeAxIL4X5IB+bm5lXCKv8g=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=vFIawtyRi8KSPg3CLx+yYmehX3VE58Gg3FAgXNqYf/1tCs2jWpr/wipPtEG61zIKr z/3J6TAJ3LmKCgRe0uou6EiUo6kk3frvKmV+VOrmpAe5RawpMHSJsgUAMmzUTKZU7w AJXcXkijSZ4s7BMdyR/ORh4ibmsVs88YceDV1qYmoaODRcovZqaS7obKr91gTsQIQ2 mclFKFy8xXYL+ia1TQvugSXcRr6cR9PGGrI8S/+x+q/3YedVY9INyih8j9JcZ4DAmS gl0fDolVaaUmh/3thGiCAJi60xm4JuFMI+6U4YnMWYvdcq3oUMmCVOrG/gAkIP73pj z7DwvsYCqHefg== Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 12 Feb 2024 20:10:12 +0200 Message-Id: Cc: , , "Andy Shevchenko" , "Peter Zijlstra" , "Dan Williams" , "Ard Biesheuvel" , "Nick Desaulniers" , "Nathan Chancellor" Subject: Re: [PATCH v2] X.509: Introduce scope-based x509_certificate allocation From: "Jarkko Sakkinen" To: "Lukas Wunner" , "David Howells" , "Herbert Xu" , "David S. Miller" , "Jonathan Cameron" X-Mailer: aerc 0.16.0 References: <4143b15418c4ecf87ddeceb36813943c3ede17aa.1707734526.git.lukas@wunner.de> In-Reply-To: <4143b15418c4ecf87ddeceb36813943c3ede17aa.1707734526.git.lukas@wunner.de> On Mon Feb 12, 2024 at 1:24 PM EET, Lukas Wunner wrote: > Jonathan suggests adding cleanup.h support for x509_certificate structs. Please remove as this is just repeating suggested-by tag. > cleanup.h is a newly introduced way to automatically free allocations at > end of scope: https://lwn.net/Articles/934679/ cleanup.h is not a feature, it is a header file. Use link tag for LWN and I guess the feature is called scoped based resource maangement. BR, Jarkko