From: Andrew Lunn <andrew@lunn.ch>
To: Kenny Ho <Kenny.Ho@amd.com>
Cc: David Howells <dhowells@redhat.com>,
Marc Dionne <marc.dionne@auristor.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
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
Date: Wed, 24 May 2023 02:49:26 +0200 [thread overview]
Message-ID: <01936d68-85d3-4d20-9beb-27ff9f62d826@lunn.ch> (raw)
In-Reply-To: <20230523223944.691076-1-Kenny.Ho@amd.com>
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 <Kenny.Ho@amd.com>
> ---
> 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 <generated/utsrelease.h>
> #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
next prev parent reply other threads:[~2023-05-24 0:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 22:39 Kenny Ho
2023-05-24 0:49 ` Andrew Lunn [this message]
2023-05-24 15:43 ` Marc Dionne
2023-05-24 16:01 ` Andrew Lunn
2023-05-24 17:02 ` Kenny Ho
2023-05-24 17:43 ` Andrew Lunn
2023-05-24 18:01 ` Kenny Ho
2023-05-25 9:14 ` David Laight
2023-05-25 14:27 ` Kenny Ho
2023-05-25 15:04 ` David Laight
2023-05-25 15:37 ` Kenny Ho
2023-05-27 15:08 ` Jeffrey E Altman
2023-05-29 13:32 ` David Laight
2023-05-30 14:39 ` Jeffrey E Altman
2023-05-27 14:45 ` Jeffrey E Altman
2023-05-27 15:08 ` Jeffrey E Altman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01936d68-85d3-4d20-9beb-27ff9f62d826@lunn.ch \
--to=andrew@lunn.ch \
--cc=Kenny.Ho@amd.com \
--cc=davem@davemloft.net \
--cc=dhowells@redhat.com \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.dionne@auristor.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=y2kenny@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®