Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1109978rdb; Sun, 1 Oct 2023 21:51:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfelIdnDLaXI2m8TG6R7nAeioUvw5imnvVjCBt1UgVqidCHxCHRBjG89fiROjq1LiYXshd X-Received: by 2002:a17:90a:74cc:b0:277:4be4:7a84 with SMTP id p12-20020a17090a74cc00b002774be47a84mr16525055pjl.19.1696222317853; Sun, 01 Oct 2023 21:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696222317; cv=none; d=google.com; s=arc-20160816; b=QsKpWss2i067T/MwuqF7b9jEGcNLIo8vVmlC91Hl+V2HxEequYTHOyGvv0UcJMn1db OLzAbE47Y4bbMotCUKa/QdNtGfNowg9514hVn1NJ6swuKJOHhMaInXY2La+jlLgdSPmO jdD0d+wrEUCe+zwR3yi0sswRV8Oj7+W4qAE1nZhIYaq8eJStTkWFRMUOr3MK7RCo4Zii TG36b04sJbO3FmTiz0OGhUYNvo0290+KgHrBhQm/VjaNc0mipIzRpZsBDF+2aUltw2Bw AyTp5STWVLJwthBcW7qaxSW2Xlkr1XEeF81KrrKwjevPaMDX4frm6TmbwtzZEHRNu9fz +VWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oPET9w0ktAjq+TgFKzzsSU899+RQr2NesK2FVmHe4kw=; fh=vzI13+Le9X4g6qIpJSxvbVRKWcrur6qfGmlImdnjChE=; b=CQA39fKdMryE1WwcQvJzWtedremyIbHZpgr0M2zVo7LLX9H868RhxNAODvtG6bycuw 4SKAkETVxIfwiOAP6Eb44YgctZZX6VqEddwPZE66fEX5dFoLXCIqhLaDJdeEyadxx+jS cNamGX/fvaZvA+evCgGYo3440rXp1bz1XRYorBnoW7BAOfWf84ilAOKASXbLI2SJnN77 nnwqLs606964BtUca2D9t4U8RekmKaL801iZifWfG3edkCmaDbb9h4oDimb/CF015UNr vbUS0463Dzio6dvA2SV1aSsnU4GjJi16iEci1RxIAoZ0T7OSfkGRzqCu5tMMXdK21/zJ XZnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="hfQm/i2c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cq13-20020a17090af98d00b002791bfc67bdsi6651717pjb.41.2023.10.01.21.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 21:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="hfQm/i2c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id AD2A8801E138; Sun, 1 Oct 2023 14:05:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235377AbjJAVF5 (ORCPT + 99 others); Sun, 1 Oct 2023 17:05:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235355AbjJAVF4 (ORCPT ); Sun, 1 Oct 2023 17:05:56 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E94C8BF for ; Sun, 1 Oct 2023 14:05:50 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-690b7cb71aeso1698486b3a.0 for ; Sun, 01 Oct 2023 14:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696194350; x=1696799150; darn=vger.kernel.org; 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=oPET9w0ktAjq+TgFKzzsSU899+RQr2NesK2FVmHe4kw=; b=hfQm/i2c3iIU6NuDvBvdAwDcI2x6tSxTZDkToKU5jkDdjFSSCOstKg0ihGXLm7fTzQ VdLnCATCoPwOsnDceiE4gi0zT4yc7hTroxnRJS/k2TBqjc6+h5xMhJraaDGR8dIkzLr7 Kd82n8lq/zAIiV/3VGo+BrjoXUMGW8O+w+Fb8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696194350; x=1696799150; 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=oPET9w0ktAjq+TgFKzzsSU899+RQr2NesK2FVmHe4kw=; b=RbX4LR82Dnq35UbLe0sbGIRu6/1RrRnIFy2nZ9hjdmcKcqXYm21Rqe2wua04v1zjQs nchJehcz2kXOnVkBiUrvE5At8eLL68qtUuni6OA443UFWK3XzujGkRcSlMD1b7PeeOSj pNt7Bw7GCpPgLmiltunOREsmJPVoDAZy/ftwH9FSOCmhFkd5VfJm+0nL/rRK2I2eKnQQ HqnnEBKFMBlzO6wEFJ9E72G/7Fn24MD1+SqCkozaurx7y9yHrY3S4+zQpcXadRCzUhRC DVu3CNAw/jtFegNASHwhrMKJMM8FNuyrlybj2cNXuCye9K+IUu88HLw1CcMwERLMW8V0 +0OQ== X-Gm-Message-State: AOJu0YxNbXE/0+Kc6qXTFBB1EGswVbS4AGzLUBfcT1TduwDqAlYzl/Gw kgI7jBkBaTaJZmgluUYdZhgG8g== X-Received: by 2002:a05:6a00:1886:b0:68f:cc67:e709 with SMTP id x6-20020a056a00188600b0068fcc67e709mr18341051pfh.16.1696194350427; Sun, 01 Oct 2023 14:05:50 -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 u7-20020a637907000000b00584b293d157sm9552553pgc.80.2023.10.01.14.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 14:05:49 -0700 (PDT) Date: Sun, 1 Oct 2023 14:05:46 -0700 From: Kees Cook To: Julia Lawall Cc: Kees Cook , Christophe JAILLET , Ian Abbott , H Hartley Sweeten , "Gustavo A. R. Silva" , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-hardening@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] comedi: Annotate struct comedi_lrange with __counted_by Message-ID: <202310011405.7599BA9@keescook> References: <5c3b7459b820e22e2ac6ce892d4aadcc119cc919.1696065263.git.christophe.jaillet@wanadoo.fr> <202309301342.5B5BED40A1@keescook> <90E2BBA5-8A2D-42DE-B36A-CD37BABBB433@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Sun, 01 Oct 2023 14:05:59 -0700 (PDT) On Sun, Oct 01, 2023 at 09:14:02PM +0200, Julia Lawall wrote: > Kees, > > You can try the following. Cool! Yeah, this finds the example: drivers/comedi/drivers/rti800.c:74: struct comedi_lrange: field at offset 0 is the counter for the flex array drivers/comedi/drivers/rti800.c:83: struct comedi_lrange: field at offset 0 is the counter for the flex array drivers/comedi/drivers/rti800.c:92: struct comedi_lrange: field at offset 0 is the counter for the flex array I'll run it on the whole codebase... -- Kees Cook