Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1500645rdd; Thu, 11 Jan 2024 00:37:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFt4/mucCIdeepGXHnTn1UezuEGxuatnNjC2b0Wh91DpQcmRMRY9gPB3ZzPG4CzpJwSf5Ee X-Received: by 2002:a05:6358:311a:b0:174:e47a:f4b3 with SMTP id c26-20020a056358311a00b00174e47af4b3mr912872rwe.13.1704962275608; Thu, 11 Jan 2024 00:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704962275; cv=none; d=google.com; s=arc-20160816; b=MMcEIcMkoM7TBCOKiqZgE74clW6wu0YcFiM/61lzcMN4D/qWI1Il1yLar1kuQNCVcZ hsEiQRWSixp152WBHi/jf306qkYgbftzYVC5Zv9DewQKzz5joceKww1DFzzcgsLJT7DS 4qmJDQSEPSEsEn8F0EUAAqZ3UebDO3bU/10ekCRS7CwIO1DNKuTDpnAd1ZZVV78l4F4K PBIztAuWBDwakO9V0SZXEPa9mfQs/EREwJRf90dGDEKRGfvx24GAo7Tra/Es2pXn0Z0S djzv3gK8we10bw5d6IU4NK84NwkWzK4RrNAkcSAL2W0um4dLFoPJpfr78VDg2qE8QIjQ 8/fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=oQ2Oy2vE4Y+KSIGzjxEVBp2pts3FTmVlEXlZ7nc293g=; fh=4VK5F4jG1Bzhlw/LOkUMBlLurqs40YL+TBZHUfwMrBc=; b=pEimRDFttalm10s5XAHf9cIlsEViZMzcgqNC3ua8Vmufkn+MMoUK+9OY60GbbEsWNV fMIXQCE7LLPP7bJYeFlYf7FzYalGlQjGTXksAXMSSn1hff2IO3/I1ZkzuvBUZruKT/xw zzprUm7bTDz/p/cxG5/KvQZh4KodhPfnMA3Sfyg7qnR9MKxqisHq4B6SwvZH5zUJXhdo /ajJFwFvYzcnNJv/YzrNgF5ibHI2Y0392gqTgPfAKaIGaIzjkyowQPg3px83e53zpr4y vak+ZfhoV1ExlqGilSzva1porO2b8ZFBSB3T6VZ9XvTVHrZ1NBbZhB5egSx+mU2szHpN +Nvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23228-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y24-20020a63b518000000b00577e00c5ffasi621078pge.867.2024.01.11.00.37.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 00:37:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23228-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7A60FB23E52 for ; Thu, 11 Jan 2024 08:35:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A411BF9DF; Thu, 11 Jan 2024 08:35:17 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 D0545101D5 for ; Thu, 11 Jan 2024 08:35:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 7F67668CFE; Thu, 11 Jan 2024 09:35:10 +0100 (CET) Date: Thu, 11 Jan 2024 09:35:10 +0100 From: Christoph Hellwig To: Peng Zhang Cc: hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com, petr.tesarik1@huawei-partners.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, wangkefeng.wang@huawei.com, sunnanyong@huawei.com Subject: Re: [PATCH v2] swiotlb: check alloc_size before the allocation of a new memory pool Message-ID: <20240111083510.GA13211@lst.de> References: <20240109024547.3541529-1-zhangpeng362@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240109024547.3541529-1-zhangpeng362@huawei.com> User-Agent: Mutt/1.5.17 (2007-11-01) Thanks, applied.