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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E728C25B67 for ; Thu, 26 Oct 2023 13:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JBCuEld5aGPu5xprEpt7TcvNFo62FanODpFgKYj89Xs=; b=0pBvuObedgVya4L6x01noNX60M LAFJYPDWHKnIMVuIO8qdQdsvOjxpbmbcWA5fv6H5Jsd/QlEDd/enoq45H7UtKuqbN/rcn5rH75HRe IiOzO2nCZ0js1Ud7eZpDT/3HI9A/3R+x+YnGowfPfMVawv8Qaon0ym2P0GoZNr8CDwG/Upd6tPoEX wiXg4NR4WlwYmXxFluPD0iudmcEH+HQWsoBpK11+EIZ0srDA91zQx48A96YAIrSDOl9H+6auoXXMG 9I8NYZXtB1ZlTr5GuoGUQwI6Z7/VGlMpW9Gakgd/kpXmr3yjSjNsv7FwxYdySEyTAU5serDEGiPYb a8iCboAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qw0mE-00EaWa-1T; Thu, 26 Oct 2023 13:51:58 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qw0mB-00EaVo-06 for linux-nvme@lists.infradead.org; Thu, 26 Oct 2023 13:51:56 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231026_065155_215094_C3459964 X-CRM114-Status: GOOD ( 10.02 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org 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