Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp146045rdb; Sun, 28 Jan 2024 18:32:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGH8bo7XuweG52t4g/IGWmo+F5agBtSce96dXdGwuCJyRqtTgP1hhw/H/gy9AoPyng9/tBh X-Received: by 2002:a17:906:552:b0:a35:b38f:4ec with SMTP id k18-20020a170906055200b00a35b38f04ecmr1120396eja.69.1706495566251; Sun, 28 Jan 2024 18:32:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706495566; cv=pass; d=google.com; s=arc-20160816; b=LSdIUGOvKRCiXwqtvq0MlnrS8xReHC0H7w02ER6c+TOwAqB7jb7tAxCPmPK46IV/oQ h8y0fB4R7pJ9a6C3kRDyKuja6C3MLNMwpaF+ZfBWmn7n7L1Peudmphov/t0fYLg77jM9 kxAyfB2DkJFjAREQrJiC3F1cEeHr8SSd2lfOHEoliqKfkCRMY+83wo1gNINJN99YmDNf KFXdLylnIJ+cets8/Zu5DZTWuaCTc+jorg3k72LcJI3JWSfRRn4ANosT/tkP4sDbkjgx 2Dr4O1GM6DlEMBtZndhs74KksDjpeySjPV3uVZ2V0B8wb2i6eY2w9pKs84d/ndcXLBso cq8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=tCH2tj2XDqU/0RTr89bV2G6uSuRFHbMOWwZAHa6Efvg=; fh=qvqhL3K1DGiBcx3hu6y6So/SqD81yIBXDEqcN8Xc0c4=; b=otDatCXH86Jiwb7jy+RZfdW0DCqHUa5CzYTt2rFnAoRnXYncIUq+ppxKfggrizJyf0 b/9K+ts/CA/tgHmlDjuJSjk1a2Izc/CPhuHzpXo4cOfS+opctPSPkLIIpqjBaVI4V2Ye l+J46aULweThphP1wb5hiGUw885MKSlrsy+NXgZsy7R+/iTkBYfAYwZmpJUlw3DJdIJG IkI78nrA2nwl3aNXJJKKIInhqENwFec/LlSO/ZHQ8xV0y5Venhxf590eoARmJvYQC7tX 5YcyUDOCi+8sIvBuKDafXmf5CpubJOVk4AmLJztsWhs6XTZMLu1YDa3ObGRl/qje+cgY uguw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-crypto+bounces-1724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1724-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f1-20020a170906494100b00a352623fc7fsi2291492ejt.391.2024.01.28.18.32.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 18:32:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-crypto+bounces-1724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1724-linux.lists.archive=gmail.com@vger.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 06DA21F22930 for ; Mon, 29 Jan 2024 02:32:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 588F4F515; Mon, 29 Jan 2024 02:32:35 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (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 55E93DDA1; Mon, 29 Jan 2024 02:32:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=144.6.53.87 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706495555; cv=none; b=CnPAQwWATR7DgYQTdGGJDk5N5LjsxWaKRfNQYVe4eWIwjEaKsE+uUAEVundutT8g+OQwQR2kpnjUxALBxVbcOL42AYFVoZFp3pk61b6GH/jk3VFbeM6Wj9DysDAJJusK77y8fg3tIoK2q1g2Gy4sxurK+FJsH3gv8WEe8rRXOF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706495555; c=relaxed/simple; bh=qBGpcZPu/3sex15m9xWirKpdLjj/RrctxEN2gU1w3j4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lnIruYF8EJNXn8u8ZNmYq8rHViHwBFvE/IvCyUI2MfiVW3bAjHvJSQo4jyrSKisaviSWnCBQoXGqyXfy5AU1G2drCr+ESg+Zue4DFF6lnU/XXMmNSBzQlPOjkxA/Ib+F6ZEkIxVdHOI/ngK9JoSDe/SUjP09n9badpTBFPgms0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au; spf=pass smtp.mailfrom=gondor.apana.org.au; arc=none smtp.client-ip=144.6.53.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rUHRC-006zi2-4t; Mon, 29 Jan 2024 10:31:55 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Mon, 29 Jan 2024 10:32:07 +0800 Date: Mon, 29 Jan 2024 10:32:07 +0800 From: Herbert Xu To: Andy Shevchenko Cc: Lukas Wunner , David Howells , "David S. Miller" , Jonathan Cameron , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, Peter Zijlstra , Dan Williams , Ard Biesheuvel Subject: Re: [PATCH] X.509: Introduce scope-based x509_certificate allocation Message-ID: References: <70ecd3904a70d2b92f8f1e04365a2b9ce66fac25.1705857475.git.lukas@wunner.de> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Jan 28, 2024 at 03:32:31PM +0200, Andy Shevchenko wrote: > > But why? The cleanup.h insists on having an explicit check, so call will be > ignored completely on the branches when it's not needed. This is the pattern > that is currently being used. Why do we need a deviation here? Well he was talking about eliminating duplicate checks, and one way of doing that is by moving it into the cleanup function. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt