[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1d4c7d06-0c02-4adb-a2a3-ec85fd802ddb@vrvis.at>
Date: Thu, 8 Feb 2024 12:37:31 +0100
From: Valentin Kleibel <valentin@...is.at>
To: Jordan Rife <jrife@...gle.com>, Salvatore Bonaccorso <carnil@...ian.org>
Cc: David Teigland <teigland@...hat.com>,
Alexander Aring <aahringo@...hat.com>, 1063338@...s.debian.org,
gfs2@...ts.linux.dev, linux-kernel@...r.kernel.org, stable@...r.kernel.org,
gregkh@...uxfoundation.org, regressions@...ts.linux.dev
Subject: Re: [regression 6.1.76] dlm: cannot start dlm midcomms -97 after
backport of e9cdebbe23f1 ("dlm: use kernel_connect() and kernel_bind()")
Hi Jordan, hi all
> Just a quick look comparing dlm_tcp_listen_bind between the latest 6.1
> and 6.6 stable branches,
> it looks like there is a mismatch here with the dlm_local_addr[0] parameter.
>
> 6.1
> ----
>
> static int dlm_tcp_listen_bind(struct socket *sock)
> {
> int addr_len;
>
> /* Bind to our port */
> make_sockaddr(dlm_local_addr[0], dlm_config.ci_tcp_port, &addr_len);
> return kernel_bind(sock, (struct sockaddr *)&dlm_local_addr[0],
> addr_len);
> }
>
> 6.6
> ----
> static int dlm_tcp_listen_bind(struct socket *sock)
> {
> int addr_len;
>
> /* Bind to our port */
> make_sockaddr(&dlm_local_addr[0], dlm_config.ci_tcp_port, &addr_len);
> return kernel_bind(sock, (struct sockaddr *)&dlm_local_addr[0],
> addr_len);
> }
>
> 6.6 contains commit c51c9cd8 (fs: dlm: don't put dlm_local_addrs on heap) which
> changed
>
> static struct sockaddr_storage *dlm_local_addr[DLM_MAX_ADDR_COUNT];
>
> to
>
> static struct sockaddr_storage dlm_local_addr[DLM_MAX_ADDR_COUNT];
>
> It looks like kernel_bind() in 6.1 needs to be modified to match.
We tried to apply commit c51c9cd8 (fs: dlm: don't put dlm_local_addrs on
heap) to the debian kernel 6.1.76 and came up with the attached patch.
Besides the different offsets there is a slight change dlm_tcp_bind()
where in 6.1.76 kernel_bind() is used instead of sock->ops->bind() in
the original commit.
This patch solves the issue we experienced.
Thanks for your help,
Valentin
View attachment "dlm_dont_put_dlm_local_addrs_on_heap.patch" of type "text/x-patch" (3717 bytes)
Powered by blists - more mailing lists