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 8AB41CE7A81 for ; Mon, 25 Sep 2023 06:55:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232378AbjIYGz0 (ORCPT ); Mon, 25 Sep 2023 02:55:26 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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