Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5083649rwd; Tue, 23 May 2023 18:09:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4b8P9u+LTtSd5w172zoK2JI4nQkTQrHauvac3/uxSkgqdhHJwdQoTDtyMppWqIuwtbwP9H X-Received: by 2002:a17:90a:eb8a:b0:246:af1f:62ef with SMTP id o10-20020a17090aeb8a00b00246af1f62efmr14968062pjy.5.1684890543042; Tue, 23 May 2023 18:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684890543; cv=none; d=google.com; s=arc-20160816; b=nJjbr2zV1dAu89yV+cLPPSY4xRXDGKHAM5Fvg3GqV8LLtgv5TS8GMfYMLoYDLTX73L Tr5Km1+8KZrXpr6kYQbt4ijgX3i231CN92u+dOS95rr6TZMjAE6OgerieBH+e1Ri9207 l60gFzf8a1d2eXV26+I66LSxxAuk8WWM5hxIlHmI3RzgkgbxQ5dP4itEU70n3Kk8JnBV F6sof6dCKhHGtH/VExOQzWkm0MrPfvA9L3a98wEhGX9xzF8CLiGeDsHo/aTyD0K5/Skl Ljeiyc++13kTlesnLncL8zVTjkrsg9NfIY6ySIG15uSolAqGCiBHyQTtQVpyXo0Ns8Q5 a9fw== 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=O4zO94iFTrLjEiMrq1dnb+x3JXQnGuk03+XEMWVY2So=; b=uHMnPiLSOyPOKdmcki/yvWfeGtrbm3kXZIBBc2xIUepDTy3HR7LZ1qDPPhYwdajf+1 KxhEYFcIf+ezr5bzrOOGOmUY8919gTeGFzP788ZVHyoYbKWyhZusNZ2q0l7yLTnOr4Wm bU6DUls3TYcIXpQ/SqpwwND1rez9z+irQ+CpsSx4HcLiZIKV3Tj+tBFCaeJ5x3mqWjVv y0n3T/+FHXfUZ6TXUxoiKu5vzMN6Bqpwn9cv/rVd73a5mX5laBPh0+Sqgmm4W2G3O54o ATi1LjVc1LMUoFI/Ui0u/9WZvJ+fwaumNsxkgBMO1tpn6+19LGUlYpm/9F0LlVh8PtV0 2irA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wYbhQOg5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m129-20020a633f87000000b0053084a794f0si7441582pga.290.2023.05.23.18.08.43; Tue, 23 May 2023 18:09:03 -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=@lunn.ch header.s=20171124 header.b=wYbhQOg5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238655AbjEXAuD (ORCPT + 99 others); Tue, 23 May 2023 20:50:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234277AbjEXAuA (ORCPT ); Tue, 23 May 2023 20:50:00 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B33C4126; Tue, 23 May 2023 17:49:58 -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=O4zO94iFTrLjEiMrq1dnb+x3JXQnGuk03+XEMWVY2So=; b=wYbhQOg5kZ7jk5zD083qFdm86E mhGO4DMm6pld8ANOD5zePR/6jmBHk9Wx+H89xqedEjfv2R88n8qQ06mvbH0lzhKzAWAEwzh7jzYEl bWMpoqMuScq2+pwbJw0xw2Y11uCSqKaJWVykww06h7OezfE2nHJ2AoRLzCKLM8L35s6s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q1cgw-00DjwO-8o; Wed, 24 May 2023 02:49:26 +0200 Date: Wed, 24 May 2023 02:49:26 +0200 From: Andrew Lunn To: Kenny Ho Cc: David Howells , Marc Dionne , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-afs@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, y2kenny@gmail.com Subject: Re: [PATCH] Remove hardcoded static string length Message-ID: <01936d68-85d3-4d20-9beb-27ff9f62d826@lunn.ch> References: <20230523223944.691076-1-Kenny.Ho@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523223944.691076-1-Kenny.Ho@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, May 23, 2023 at 06:39:44PM -0400, Kenny Ho wrote: > UTS_RELEASE length can exceed the hardcoded length. This is causing > compile error when WERROR is turned on. > > Signed-off-by: Kenny Ho > --- > net/rxrpc/local_event.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/rxrpc/local_event.c b/net/rxrpc/local_event.c > index 19e929c7c38b..61d53ee10784 100644 > --- a/net/rxrpc/local_event.c > +++ b/net/rxrpc/local_event.c > @@ -16,7 +16,7 @@ > #include > #include "ar-internal.h" > > -static const char rxrpc_version_string[65] = "linux-" UTS_RELEASE " AF_RXRPC"; > +static const char rxrpc_version_string[] = "linux-" UTS_RELEASE " AF_RXRPC"; This is not an area of the network stack i know about, so please excuse what might be a dumb question. How is the protocol defined here? Is there an RFC or some other sort of standard? A message is being built and sent over a socket. The size of that message was fixed, at 65 + sizeof(whdr). Now the message is variable length. Does the protocol specification actually allow this? Andrew