Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp451593rdh; Thu, 26 Oct 2023 06:52:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHAKPFDRQ9eBwVxY47+npZi8ILpirmv7+ANnYIHEzC5WV/sGa3zCa/uGiyysuTpvX12MGpk X-Received: by 2002:a05:6808:90:b0:3b2:f54b:8b3a with SMTP id s16-20020a056808009000b003b2f54b8b3amr19836785oic.27.1698328324099; Thu, 26 Oct 2023 06:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698328324; cv=none; d=google.com; s=arc-20160816; b=nFjGXd7ZC9AYgFXywWsDhLLq25wAXBQSVpLuPihWC9HcsDx135qIXnIldtYRfkVQfj yNW8POKNWKNL/d9AvZX224pfRtN0SOU0+DThNXVKvirW6GhH0aUECYAN3cQ7oy/Lbp1Q naS4VEh6y+ZMJHnP0IctZdS405Dlas2WRgMYt7CaFUYA0wALli0fXuC/1LPmO1VE35bo 1nPHwOKEByKcJx033iAg2yEIKHZXsF2zFrQyx2AfSGNk6kwo4PmIQfeMcoeKooz51JFA 9WdUUIlx+Gddb7gB1lUzJs7+2a6Apr/5XnWpkkQqoW1R/uW83vqsnfFuzNoRbtFcJ6I4 15Ag== 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=JBCuEld5aGPu5xprEpt7TcvNFo62FanODpFgKYj89Xs=; fh=ge8Xwb7ZyrcZeccHohGc2yUuf3DUBj/yERPR+7fhc2M=; b=vMHLcar7dZr706YZxjJJ+M/cu1XUGrtumuGMFdHQ0jZyNUYfpQiyAbelRbN3RDEsEe bekg/PBepjS/FeuhRnmqL68Ebx2s8Uj1LQkZzlYCWPYSiSlfJKZcDOhDfwzWkDciBBHo 1ygmOjH9cBZR9RBWYXLnJqbCnQzefzOoxXTurT0wlmUNvSdm3u4UcbUWb38SU2L4xTZQ CqWvun0zsEkhOdDlM1L8zoBerVrAXXekryiYbSj1KT17MxfZzfCnrooYBjGMjHzia2P/ 6gAA0ar7dQz67PFmYrPTZ8HTk1LlXCiLcQHGsE7hoztcsuqZB9gxu5m5xFy5xz3cvqNT OGig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=oQW5ppm0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id v131-20020a252f89000000b00da04e945ab2si7432211ybv.378.2023.10.26.06.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 06:52:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=oQW5ppm0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1D19F801BE94; Thu, 26 Oct 2023 06:52:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231171AbjJZNvy (ORCPT + 99 others); Thu, 26 Oct 2023 09:51:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbjJZNvx (ORCPT ); Thu, 26 Oct 2023 09:51:53 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 663C6BD; Thu, 26 Oct 2023 06:51:51 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id F2AEB83B; Thu, 26 Oct 2023 15:51:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1698328297; bh=A2vHpdr0ECWoEbHBnmZKVT1XwZOPDdxA2pul7Xe1tD0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oQW5ppm0HRdGsbwA0u1mJ/Lue6P51k+5HRX1Fhp5Kv2uHCySU+okzuvDeoUcGfZgb hPQF1YKn907KyTKOktX+RVVyVbgzh0ObBslW20at4MfjpUT3nfSnmGZ/SIC9l0jJzU eKp+WiHqBFv3XYaaL6ug3mUpl/zeO0BNSKLdnJlM= Date: Thu, 26 Oct 2023 16:51:55 +0300 From: Laurent Pinchart To: Andrew Lunn Cc: Christoph Hellwig , Kees Cook , Justin Stitt , Keith Busch , Jens Axboe , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, ksummit@lists.linux.dev Subject: Re: the nul-terminated string helper desk chair rearrangement Message-ID: <20231026135155.GD26306@pendragon.ideasonboard.com> References: <20231018-strncpy-drivers-nvme-host-fabrics-c-v1-1-b6677df40a35@google.com> <20231019054642.GF14346@lst.de> <202310182248.9E197FFD5@keescook> <20231020044645.GC11984@lst.de> <202310201127.DA7EDAFE4D@keescook> <20231026100148.GA26941@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 26 Oct 2023 06:52:01 -0700 (PDT) On Thu, Oct 26, 2023 at 03:44:22PM +0200, Andrew Lunn wrote: > > > > [1]: https://elixir.bootlin.com/linux/v6.6-rc6/source/include/linux/fortify-string.h#L292 > > I found that https://elixir.bootlin.com/linux is the best way to find > Documentation for functions and structures. I would suggest try it > first, and only when what fails to start using grep. It's painful to have to open the HTML documentation generated by the kernel build system when developing, and even more painful to have to use a particular website. If the documentation is difficult to locate in the source tree, we're doing something wrong. -- Regards, Laurent Pinchart