Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp479924rdh; Thu, 26 Oct 2023 07:28:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDb0CKRJ0SRE8u/qmi1qXAvC7GGdBt0APgUH7bzEJZubYGK+EKhW9SK+SIzhIp+1qu4g24 X-Received: by 2002:a05:6870:90cd:b0:1ea:c913:3494 with SMTP id s13-20020a05687090cd00b001eac9133494mr21555303oab.6.1698330518408; Thu, 26 Oct 2023 07:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698330518; cv=none; d=google.com; s=arc-20160816; b=X+AUpXXU/EZwFryTQno/lgItP8gLG6I1gmiwlEQiW6T6Bu+mgyMKaVjVAoivDewfee mo3SAk5otHZqvd83UCyIEVliCZgFOqW3wUj/FfrF3ArRLLkRvPX9ZGrG0UVjrBYXlJmO cEMKCLO72EpioUHGP0AXjEnvP5e+ADYU+lQPFfA/zS1QeiT8Q3zMkM/X6yaC0Ra2S4rV ivSXNxQlWkGvO00pWdzs+k7iN0VLZ+ZCgBcVweV5JEO4Oxq4qh08PEeQUKoPKDivNaur rMbi+lwd60YbgV+xw6s9d/h4ADgMjAoXDOkgYxZ91ZW3MCDLMispsl8MOP9yj4y9RkaJ QloA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=qFUhlGjkcLkxkNSVC8sr2b/kBSVhfMrzjpQI2SBzx3U=; fh=Q5VMEpH8qc2VKPZxRdrICORqfl58x31azMFW4rOcf5c=; b=kYMLe7V9TPp2UVK/oS7VlSKekg78mFZM+900fYrSDhqIQAIc5WgowX4j3OjOY8xbnw 9v9q3gdh0qMOni1jJyGZXAlFKi34Ywd47XRapekrd1oAhSrQMlZbAZF1V198F1GQToNl FrIq7holrDqt3ue35phhcj7mDAn/0ukFe16Eo0jXm7d6l1rUHS/V2WKaqCS48NLd1uJh i33pWmK0aKGFaGFPI1kuEsUMb4eR0redk/+gjOAoq4wRVqZeeuEMdfDu7yctvDGITaYH 5QU505X6G/v8zRUKTSxkrFQqD1PhWrHPP6AwFaAqGNdtPiyLcLA/jsBoqcMDdEg/fnzV 92Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=h6cR5JYN; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=Y6dY9H2A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x66-20020a817c45000000b005841b3e0b57si13593617ywc.271.2023.10.26.07.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 07:28:38 -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 header.i=@hansenpartnership.com header.s=20151216 header.b=h6cR5JYN; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=Y6dY9H2A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6BE7881049A0; Thu, 26 Oct 2023 07:28:31 -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 S1345249AbjJZO15 (ORCPT + 99 others); Thu, 26 Oct 2023 10:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345237AbjJZO14 (ORCPT ); Thu, 26 Oct 2023 10:27:56 -0400 Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [96.44.175.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BF811B9 for ; Thu, 26 Oct 2023 07:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1698330470; bh=+AVbEQ2cO0W9NNjiJtJkceR113CnWKAa4egRigHhpC8=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=h6cR5JYN2ZWd9xnbjDhtTfiqFnYa7QwdfKSvUPHy2sPmCvLqnUWcTcYNzMcg+2QuQ B7yAAh9KNG9PMgTSwpZDR7BSNH2ogrBNpVHMBnfh9kXusJbz1ED0sLguYX36OkdewS DSpW/5oH06539YK83ggl+fQt8QRx7dOo/t2MQRUE= Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 248311287229; Thu, 26 Oct 2023 10:27:50 -0400 (EDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavis, port 10024) with ESMTP id ZZkmk4Z3gm94; Thu, 26 Oct 2023 10:27:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1698330469; bh=+AVbEQ2cO0W9NNjiJtJkceR113CnWKAa4egRigHhpC8=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=Y6dY9H2Ag71Glx/YfwRdXuukMdycq0MxM73+lD+vaQqdcz4au5+rNKmd/9D7ptupA QM7lQ0BOpVCJE2L0eyXBZA93gOyWaok2k8pGROHfh6X2YlIKXyQnqNYudbPqejHGVj 9iBvcEpE9yOctDEZApzyqJziWi6xU6Gayw/agEZQ= Received: from lingrow.int.hansenpartnership.com (unknown [IPv6:2601:5c4:4302:c21::c14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 992DA1281005; Thu, 26 Oct 2023 10:27:47 -0400 (EDT) Message-ID: Subject: Re: the nul-terminated string helper desk chair rearrangement From: James Bottomley To: Andrew Lunn , 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 Date: Thu, 26 Oct 2023 10:27:45 -0400 In-Reply-To: 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> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 07:28:31 -0700 (PDT) On Thu, 2023-10-26 at 15:44 +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 That's a 404, I think you mean https://elixir.bootlin.com/linux/latest/source >  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. I just tried it with system_state and it doesn't even find the definition. I think it might be because it has annotations which confuse the searcher (it's in init/main.c as enum system_states system_state __read_mostly; ). If there's any meaningful doc about it, elixir also doesn't find it. James