From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFAAC18B02 for ; Thu, 28 Sep 2023 23:42:12 +0000 (UTC) Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-57bce354d94so3728742eaf.2 for ; Thu, 28 Sep 2023 16:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695944532; x=1696549332; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3RV2WVrYFvmUIy/kF4sgLaI/igSwAmnqnqr5+CNVDt8=; b=X5L4+UU7OM8IrgoYKAnzYlL3NgeevaZEwuCkwTTDBMHq0Cge1TYW+Y1nlGqwWcrq0j X1JcGQt7Pt3qc189ithwCUL5Qm0TADW6aRdh578rBQJQ7KTwtRj78B1HggFmx8cdO6N0 ufk/IyNx60JY5ngZjYLnQWIrwXlr99fDBWOBY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695944532; x=1696549332; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3RV2WVrYFvmUIy/kF4sgLaI/igSwAmnqnqr5+CNVDt8=; b=iUDQHLCpTlb6c/hBJxZ9L7dyJ/JFXrOaOpkyIGW3Q+aC1Dgimdfx0ZX95Cafcultxk un6I0NqiruBylE/sFPDs5+LkDCmAX0t9xA4b5R/Ht8p0cpv7ZFoIeH8W0BHYk3WSt2r1 J4s3NuMuxVAzU45Qe39mpfOQCdR2D/ZL5PkStMmeGABwlrngp8maGlLdd9mgStP4TkD6 9OkT3kktZonv5rZm+f6ruwNjwfEnnCBK1Su7D2ik0cVYzChlqBbFXGHCYjU1iZ95WY0R DDQ5I/ZDjmgbhSGEU/1SEaLW0OTOMG+hjYTUWbDrppItQ5FMLjQAXXeJ1LeZJzoh4JuR CgxQ== X-Gm-Message-State: AOJu0Yy9ua0ETSJSF8ct9lPyqM+s7F2ACDn1AedL4G1EpARjXGYUjUZ4 PKSRHLpGYvDOUTzIix491hXVHg== X-Google-Smtp-Source: AGHT+IHBsCldxysDZTajanQY+g4dIkq4a5ohe3XveIhxwgWt0zJyzNyJaoBdNbO8ZXRuiDiGJefhMw== X-Received: by 2002:a05:6358:2808:b0:13e:ea2a:40aa with SMTP id k8-20020a056358280800b0013eea2a40aamr1895209rwb.8.1695944531707; Thu, 28 Sep 2023 16:42:11 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id t6-20020a639546000000b0057a868900a9sm13316234pgn.67.2023.09.28.16.42.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 16:42:10 -0700 (PDT) Date: Thu, 28 Sep 2023 16:42:09 -0700 From: Kees Cook To: Vinod Koul Cc: Hector Martin , Sven Peter , Alyssa Rosenzweig , Ludovic Desroches , Tudor Ambarus , Lars-Peter Clausen , Zhou Wang , Jie Hai , Andy Gross , Bjorn Andersson , Konrad Dybcio , Green Wan , Orson Zhai , Baolin Wang , Chunyan Zhang , Patrice Chotard , Maxime Coquelin , Alexandre Torgue , Laxman Dewangan , Jon Hunter , Thierry Reding , Peter Ujfalusi , Kunihiko Hayashi , Masami Hiramatsu , Yu Kuai , Greg Kroah-Hartman , Jordy Zomer , Jernej Skrabec , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-tegra@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org Subject: Re: [PATCH 00/21] dmaengine: Annotate with __counted_by Message-ID: <202309281641.47911CC@keescook> References: <20230817235428.never.111-kees@kernel.org> <169590216841.152265.1942803099201042070.b4-ty@kernel.org> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <169590216841.152265.1942803099201042070.b4-ty@kernel.org> On Thu, Sep 28, 2023 at 05:26:08PM +0530, Vinod Koul wrote: > > On Thu, 17 Aug 2023 16:58:37 -0700, Kees Cook wrote: > > This annotates several structures with the coming __counted_by attribute > > for bounds checking of flexible arrays at run-time. For more details, see > > commit dd06e72e68bc ("Compiler Attributes: Add __counted_by macro"). > > > > Thanks! > > > > -Kees > > > > [...] > > Applied, thanks! Thanks! I've dropped them from my tree. :) Also, I found 1 more, which I'll send separately. -Kees -- Kees Cook