Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: Jordan Rife <jrife@google.com>
Cc: stable@vger.kernel.org, ccaulfie@redhat.com, teigland@redhat.com,
	cluster-devel@redhat.com, valentin@vrvis.at, aahringo@redhat.com,
	carnil@debian.org
Subject: Re: [PATCH 6.1.y] dlm: Treat dlm_local_addr[0] as sockaddr_storage *
Date: Sun, 11 Feb 2024 11:29:35 -0500	[thread overview]
Message-ID: <Zcj17ysVY9kU8xVs@sashalap> (raw)
In-Reply-To: <CADKFtnROEHN4w8pRz7u1Udjg+Jm3kVb5meJSjGXZQ_=zQp-=qw@mail.gmail.com>

On Fri, Feb 09, 2024 at 11:08:45AM -0800, Jordan Rife wrote:
>On Fri, Feb 9, 2024 at 10:52 AM Sasha Levin <sashal@kernel.org> wrote:
>>
>> On Fri, Feb 09, 2024 at 10:26:57AM -0600, Jordan Rife wrote:
>> >Backport e11dea8 ("dlm: use kernel_connect() and kernel_bind()") to
>> >Linux stable 6.1 caused a regression. The original patch expected
>> >dlm_local_addrs[0] to be of type sockaddr_storage, because c51c9cd ("fs:
>> >dlm: don't put dlm_local_addrs on heap") changed its type from
>> >sockaddr_storage* to sockaddr_storage in Linux 6.5+ while in older Linux
>> >versions this is still the original sockaddr_storage*.
>>
>> Or we can just take c51c9cd8addc ("fs: dlm: don't put dlm_local_addrs on
>> heap") into the relevant trees?
>>
>> --
>> Thanks,
>> Sasha
>
>Hi Sasha,
>
>Just my 2c, but backporting c51c9cd8addc ("fs: dlm: don't put dlm_local_addrs on
>> heap") feels a bit riskier than just correcting the call to kernel_bind(), as it's a much
>bigger change. Maybe someone more familiar with the dlm codebase can chime in
>and say whether or not they are confident with backporting this change.

It's a bigger change, but in our experience it's the small fixups that
end up carrying the bigger risk.

Backporting the original change also has the advantage of preventing
similar issues from happening in the future.

-- 
Thanks,
Sasha

  reply	other threads:[~2024-02-11 16:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-09 16:26 [PATCH 6.1.y] dlm: Treat dlm_local_addr[0] as sockaddr_storage * Jordan Rife
2024-02-09 18:51 ` Sasha Levin
2024-02-09 19:08   ` Jordan Rife
2024-02-11 16:29     ` Sasha Levin [this message]
2024-02-11 17:30       ` Jordan Rife
2024-02-13 12:20         ` Sasha Levin
2024-02-13 17:14           ` Jordan Rife

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=Zcj17ysVY9kU8xVs@sashalap \
    --to=sashal@kernel.org \
    --cc=aahringo@redhat.com \
    --cc=carnil@debian.org \
    --cc=ccaulfie@redhat.com \
    --cc=cluster-devel@redhat.com \
    --cc=jrife@google.com \
    --cc=stable@vger.kernel.org \
    --cc=teigland@redhat.com \
    --cc=valentin@vrvis.at \
    /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