Received: by 2002:ac8:734e:0:b0:40f:fb00:664b with SMTP id q14csp1721220qtp; Wed, 9 Aug 2023 09:56:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExFjXf0ryPG7Bz9TuiqUhziq4PNjYPGTPlcqfnULGyt2Z7qvQZaZLzVVi9fDTS1D4pJ8Cx X-Received: by 2002:a05:6402:559:b0:51d:91ef:c836 with SMTP id i25-20020a056402055900b0051d91efc836mr2480269edx.32.1691600187418; Wed, 09 Aug 2023 09:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691600187; cv=none; d=google.com; s=arc-20160816; b=IsaKobFN0BaVKDtgkXy/BqTCDyyjDydQaI1vXTHur4CLNCO6FL2F69qaIeCm2mmm9x XO9stnu531b13hi+41quTwHiZwNKoIL9H1c4VtQLpU02drhoDFros8WyiLbDtUmIJIEN qMOt8Mx5Ag3gty8STTw9l1TuG2que4e1LujLFOVh/Jrcsseap3XFEKfmCTPdSqI0sx4D zwl53eiTGhrfH4Df9/WJTThTv1WXspvayz8D0zITR9s66I/VIvrzjPbtfROi+uEPJS1L pXMqUKelu6ZoWviv6w9ODKrEKPGJgSYzyu8h0CdoPnvq0YbZIfNQ5eJLZt66NTqmeg8J CUzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:cc:content-transfer-encoding :mime-version:date:message-id:subject:references:in-reply-to :dkim-signature; bh=z6l11VxyDZSaUALoCccZa3ct54qsws22cbS5n25+v6E=; fh=aXxAfkqHw50M6dphbs+mclxesHV5FfwIbbCj2+Cvp28=; b=U++v01jMp62igAwjf7GB224e5MjiLT3Z/v6VgjcVgazbtNd5KgZ3jkECi5whqAvehn f4Nr+E7JZoIaEGeyiT4c/coCAgGJu5TrPPc/LZmWLshEF2fcNTvejlE8KFkJcC22/1AS lcwJzX0Iktxu59zpW28eyvbdnvgUxI1TOO7mXZs+TymrnfEZQN2lPBDjjib6svyHdIFR 6B5Jf+Wzy03RscLE/IDVuHc6iW1V1W1sONM22jl0zE+LblTCcOcr80mH73k2Wxr3OSsF n0BiQhc2nwq6v6tfU74nVvFQ6R6ugD+sV7ihEpqcQCdAZG3JVVe/1ccb6CZ1q7PmiTbS 7bzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=cunsTonL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a50ee09000000b00523282a8f4asi4966107eds.263.2023.08.09.09.56.02; Wed, 09 Aug 2023 09:56:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=cunsTonL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232752AbjHIOLT (ORCPT + 99 others); Wed, 9 Aug 2023 10:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbjHIOLS (ORCPT ); Wed, 9 Aug 2023 10:11:18 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBEEF1FD7 for ; Wed, 9 Aug 2023 07:11:17 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-686f8614ce5so6646240b3a.3 for ; Wed, 09 Aug 2023 07:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1691590277; x=1692195077; h=to:from:cc:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:from:to:cc:subject:date:message-id :reply-to; bh=z6l11VxyDZSaUALoCccZa3ct54qsws22cbS5n25+v6E=; b=cunsTonL+/rWgH+Lz4jAFC9Fo4cKyoBxC4j8WwFEL0jWFMA+joGcIwndpf6zjM5229 dx6v9awRlPeyKhuvOZRcrwlygUYnDLfH+Qf932m5p+FEeyQ32VubnIHh37ergH2QyDIH ihBHO08YMM+DYT6tf5UHpbNyycbFk9p46sIjtWMyGoYhKL9ZNbZsX9PuWvdcUU9tn8f8 1+718/OVevz8jTL02NAoVMe2BjJWYV6FQVrsntfs5HWe0o6+l3QEf0NiVLqboOXmhn3i M3AgIxnXhvi72UTRCLEep+//oU3BH6phQpMtFQeH7t4r8ty6APS9Hy8D9WqnWF8SDIqs WJIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691590277; x=1692195077; h=to:from:cc:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z6l11VxyDZSaUALoCccZa3ct54qsws22cbS5n25+v6E=; b=jrgMG2QDMwb0pTrHxRrwWTYsXEkM4s7dZr70nIIiQzxVa/4Tps7JXjSt4r9BbrjRwA PtscxYfEAnB1usqNwFBrSPQ9oUR+2VY86hRB9wso9o3pLIoWgf8XfP9xvPeiacRmMtTd V98lyVtVysely25UR61aOpUN99RBjYw+7kVScelt/QoLbxzVzjuBLk29RrkH7cMsfOhG 3bemZacc83qZwZrBy6W0LXg36L87hjn50U6jA6DKh9VNCBM8KYUmKhByfNvto54aL+jR /Mpoe63j9dBz7ANMDVMoVo//csoDczqbxQ3ZI5pnYq/nl3ZtJaR8+V81ue2cegXdfcgt nFhA== X-Gm-Message-State: AOJu0YwpbUQy5M8XrL6gL2H0/wC6Y6dLZiOMj0RROrapCaC8xHm0yefN oC2g+vXEjQ1UKoI5tZnbBiD41g== X-Received: by 2002:a05:6a21:7787:b0:126:92de:b893 with SMTP id bd7-20020a056a21778700b0012692deb893mr2471053pzc.31.1691590277193; Wed, 09 Aug 2023 07:11:17 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id u6-20020a62ed06000000b006833bcc95b0sm10012207pfh.115.2023.08.09.07.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 07:11:16 -0700 (PDT) In-Reply-To: <20230802-arch-riscv-kernel-v2-1-24266e85bc96@google.com> References: <20230802-arch-riscv-kernel-v2-1-24266e85bc96@google.com> Subject: Re: [PATCH v2] RISC-V: cpu: refactor deprecated strncpy Message-Id: <169159026875.18421.15201020596285945791.b4-ty@rivosinc.com> Date: Wed, 09 Aug 2023 07:11:08 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-901c5 Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Kees Cook , Nick Desaulniers , linux-hardening@vger.kernel.org From: Palmer Dabbelt To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Justin Stitt X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 On Wed, 02 Aug 2023 00:21:58 +0000, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > Favor not copying strings onto stack and instead use strings directly. > This avoids hard-coding sizes and buffer lengths all together. > > Applied, thanks! [1/1] RISC-V: cpu: refactor deprecated strncpy https://git.kernel.org/palmer/c/12d61a1bc28e Best regards, -- Palmer Dabbelt