From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80F66CE79A4 for ; Mon, 25 Sep 2023 21:37:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233401AbjIYVhc (ORCPT ); Mon, 25 Sep 2023 17:37:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233481AbjIYVh2 (ORCPT ); Mon, 25 Sep 2023 17:37:28 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7809116; Mon, 25 Sep 2023 14:37:21 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 21C7B1C0003; Mon, 25 Sep 2023 21:37:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695677840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+MbpunQASxv1AWuVJ9bN9SKqKRFM7WNZ5Xe2hEdzA5w=; b=kW7z5d9cqLL/D+DSp72pmvMhNhFtli2ArXy3l6x6qfw1/vvye6sToRUGoT5nDoSutPDcCu Anv0T/1pF+HZJAYULlu2Q4oKp/rJoZwXYjgdedZZceJHPTiHQJhnbI34yR0SWCDG97Xgdr 1IfF9qFR+YWckOYk6LsgvNuiNe6Zss10Av0gF+XIhbyulrfUiDau0FXImzJTe4Ij5Ay9El SPA2qSTJRvU5V8IJtdSGQVMpuqbc/QCQZXY/a+P0akemUEoAloHx/AouF5KmU5qSbqK3yV 3yfQN+tsuW+gEd38WS49VzVIV+4jZHrI1EUv6sOEahZLA+Mm2Y0KjKKU7alARA== Date: Mon, 25 Sep 2023 23:37:17 +0200 From: Alexandre Belloni To: Miquel Raynal , Kees Cook Cc: Conor Culhane , linux-i3c@lists.infradead.org, Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org Subject: Re: [PATCH] i3c: svc: Annotate struct svc_i3c_xfer with __counted_by Message-ID: <169567773740.243402.6244573348098066977.b4-ty@bootlin.com> References: <20230922175023.work.239-kees@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230922175023.work.239-kees@kernel.org> X-GND-Sasl: alexandre.belloni@bootlin.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Sep 2023 10:50:23 -0700, Kees Cook wrote: > Prepare for the coming implementation by GCC and Clang of the __counted_by > attribute. Flexible array members annotated with __counted_by can have > their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS > (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family > functions). > > As found with Coccinelle[1], add __counted_by for struct svc_i3c_xfer. > > [...] Applied, thanks! [1/1] i3c: svc: Annotate struct svc_i3c_xfer with __counted_by commit: a8b163e184dede158c94f6392a406ac40a08fb1b Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com