Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp448035rdh; Thu, 26 Oct 2023 06:46:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQzNzIhBXxJRtkgyrB0IOYRxZCZk5I5LQeFdBpFwQB+iwOMEkx76WpR4pmHnHjg0ZhNoqn X-Received: by 2002:a05:6830:2b0b:b0:6b9:4155:7dbd with SMTP id l11-20020a0568302b0b00b006b941557dbdmr21156648otv.0.1698327976102; Thu, 26 Oct 2023 06:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698327976; cv=none; d=google.com; s=arc-20160816; b=0FaRFk71BrYiWeH0WFtyX08nXqIQ5dzafosURevA4ii0pNvx2KyN2k8F34Gs0MYGVl VUxZUOng6hgnTxFDmTpaCofxseV31OAxMtXWomVL9mrfYhX0S7htHuMxq58l+t72uchA XjIPXAZE/TScrefvP0XKjYYFaov5Z/wceoZ6edjGqWueUPDRch4BLmSN3J3vJak+f+wu GGl9CY482h6gbUjeKKKAnv3faaLXQ9SMmiu8bgC8kDT36s9CgPul5orfFamXvLSgf8I0 hd1i3JXvA1wEQYu6q13YBR1oibZca5Q3v6n5kvh/Ss17XHxWZIOdLkJSGS5F9HY3N1L0 w0Zw== 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=7rK2Gdfki2buF/+1fFTKgr/9v5OKh28TcBAEfhAtzbY=; fh=+yJpv2Nx7HNQaTaLf6/K6U9u0ivbu/D+PWMtr6T1yn8=; b=S3OV/dTpJEzb+e7/YIPLOwiWYSTzhYWRT9Sh4e09Y9sYKeLWMu5Mc/e2kKotuUvn/E WIiETL6rOTm5T3CzzFPPO8IMSf2qLWunu9wkJbDQedOdsMajCsHrj3D7wTKVd4MzW7Bv HIT09dDpgxOEpUvQo0DdAasjdO0efjGZ1d34T3NJCniOarzjM+dPrBKiK480d7sHDdiU rVRzSlJN2wMzJrhPTcLAxNnruZpXg3UmffR5di4gOqMvqWo+EU8uqBRKcJ9ZiB5oP80A s1U0oFZUDUnIGceZd9ZS5bj/4LNnbbhC5ppHl0aSjMGBfimm8fMdrM+b3GY0J9IE+oAx FFUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=SyaND0yG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i131-20020a816d89000000b005a7b54ebfbdsi15051339ywc.65.2023.10.26.06.46.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 06:46:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=SyaND0yG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 48026806AFE0; Thu, 26 Oct 2023 06:45:16 -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 S231216AbjJZNop (ORCPT + 99 others); Thu, 26 Oct 2023 09:44:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231200AbjJZNol (ORCPT ); Thu, 26 Oct 2023 09:44:41 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE279196; Thu, 26 Oct 2023 06:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=7rK2Gdfki2buF/+1fFTKgr/9v5OKh28TcBAEfhAtzbY=; b=SyaND0yGQAPqt81flZS4dBYhle vn6XPG4EuXJXpl4O+824HTxahalYMm2NMP2TsavRDixuzk8hf2KKHAgwF039d2HibyhcgC1eXPSIy p+/NRTqy+HfHFMYqDP/dmyvFY52Eh1j+7OKo8bMDtXJ9+R8zMZWsve/9cUrFZHmgo2Fc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qw0es-000Fs7-Og; Thu, 26 Oct 2023 15:44:22 +0200 Date: Thu, 26 Oct 2023 15:44:22 +0200 From: Andrew Lunn To: Christoph Hellwig Cc: 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: 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=us-ascii Content-Disposition: inline In-Reply-To: <20231026100148.GA26941@lst.de> 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:45:16 -0700 (PDT) > > > [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. Andrew