Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1021428rdh; Mon, 25 Sep 2023 00:10:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHs7u5gzdm/Zpm8sENuZJioxrzqqioVFBEAB9zt8fpkFhhHqrmt1t/e3YLoTHi2Hloa6v2a X-Received: by 2002:a17:902:934a:b0:1bc:10cf:50d8 with SMTP id g10-20020a170902934a00b001bc10cf50d8mr3539581plp.23.1695625850481; Mon, 25 Sep 2023 00:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695625850; cv=none; d=google.com; s=arc-20160816; b=x0ArO/82dRnpu4Asib3RhHw+xrcX7v+FL54tVKGMiyxuBSa+mdPcAEP0wsOezQYklu YTzAJnJ3XPv49itr2HlT5Z9N3DadqtCdv3YpuFe+hNplBoAUwfTu0CvQcNrg5w8bN8FP bnylkC4TS3VqqgBrvhl8vdqhYJ9C5ogdMdXiPqebW/IfD34slZcSr4tIVtaUoQJj319j dt3p8khANwAmST1IsGsU7K4F9BKxFTsB6gG+jcHxK/ssSJADAZ84VdIsB0tDFQDaRbAL IH8olTRHy7PbtRRd/rfdvJrfeMmbbGJGa13v8IsAe7fEhhxLNcgksro39nkf4Y+OgEAQ Eq+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JTPFw9Se8cQ8TdaXok+YR9HcaQ7UEx9cZ+ezfb+sgB8=; fh=c3Q25i6iD2fuMHt/QCj484gBWtjEOXd+/mlcq80rWMk=; b=BM4NhyyzDvLhB3gc23VBF3L7U+9NOVnKaWhyvkLV2c1Q0Vt+ACeBDZoql04khRT+lM 7FosNm89MMpg6hPL26y/ok+x9jsyp+raUUdwFxJD8W15U9qy3wuK9mQWhILiJutIjByK 5HH3RfmmXisr5CJCurr7t6KH8/QTudNyTmQiTHWayaXMkQJOuwswng1o79BN9mSaWMvr r2r0eBxrWtK6P9JS/WGOppEQvqaqFJ0CSRpsyPuB4h1pZqCxx5ag7JrYf6IxU54ggEyk d6f8MHOJQuCs6KtK5l3TrLFqd6YZesN9EZYszUVUg5im9xBlglmjacd9KOwIOo4l0cFR vsgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id l4-20020a170903244400b001bf01c6bc1bsi9999285pls.551.2023.09.25.00.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 00:10:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 3F55F807865C; Sun, 24 Sep 2023 23:55:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232415AbjIYGzZ (ORCPT + 99 others); Mon, 25 Sep 2023 02:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232377AbjIYGzP (ORCPT ); Mon, 25 Sep 2023 02:55:15 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 109E6CC4; Sun, 24 Sep 2023 23:55:05 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="383943282" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="383943282" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2023 23:54:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="697883720" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="697883720" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2023 23:54:37 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qkfUI-00000000GwT-1ikF; Mon, 25 Sep 2023 09:54:34 +0300 Date: Mon, 25 Sep 2023 09:54:34 +0300 From: Andy Shevchenko To: Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Cc: Linus Walleij , Bartosz Golaszewski , Nathan Chancellor , Nick Desaulniers , Tom Rix Subject: Re: [PATCH v1 1/1] gpiolib: cdev: Annotate struct linereq with __counted_by() Message-ID: References: <20230918091553.1103567-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230918091553.1103567-1-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 24 Sep 2023 23:55:47 -0700 (PDT) On Mon, Sep 18, 2023 at 12:15:53PM +0300, Andy Shevchenko 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). Kees' patch is better, please ignore this one. -- With Best Regards, Andy Shevchenko