public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: "Mickaël Salaün" <mic@digikod.net>
To: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	stable@vger.kernel.org, "Günther Noack" <gnoack@google.com>,
	"Tingmao Wang" <m@maowtm.org>,
	"Matthieu Buffet" <matthieu@buffet.re>
Subject: Re: [PATCH 6.12.y 2/9] landlock: Fix handling of disconnected directories
Date: Thu, 2 Apr 2026 20:52:45 +0200	[thread overview]
Message-ID: <20260402.chiniey9Beex@digikod.net> (raw)
In-Reply-To: <e5296586-c00d-437d-b7b5-bca4ee3a330a@oracle.com>

On Thu, Apr 02, 2026 at 12:31:13AM +0530, Harshit Mogalapalli wrote:
> Hi Mickaël,
> 
> On 01/04/26 20:54, Mickaël Salaün wrote:
> > Thanks Harshit.  BTW, the following commit should also be backported
> > (and it was specifically created to ease backports): 6803b6ebb816
> > ("landlock: Fix cosmetic change").
> > 
> 
> I did see this as an approach, but I felt like for CVE backports keep the
> cherry-picks minimal if they don't really help resolving conflicts. I had no
> conflicts while cherry-picking and its a cosmetic change so according to
> stable rules I didn't take it as cherry-picking the final fix is clean.

Ok, makes sense.

> 
> 
> > The current patch should be backported down to 5.15, but it needs to be
> > adapted.  Harshit, I can work on it, please let me know.
> > 
> 
> I agree and will give it a try, and if I can't do it I will let you know.
> (just was focusing on new branches first)

Great, thanks!

> 
> > I'm wondering why I didn't get notified that some Fixes patch couldn't
> > automatically be backported.  Greg, is there some way to register for
> > this kind of issue?  What are the rules to not automatically backport
> > patches?
> > 
> 
> Greg can answer this better probably but just sharing my learnings, Fixes
> tag is never an assurance for getting a patch backported to stable or
> getting a failed patch notification when it fails to apply, CC:stable is the
> only way to request backporting a patch to stable.

Ok, I couldn't figure out in which case a Fixes commit would not make
sense to backport, but I'll add CC:stable next times.

> 
> Commits with Fixes tag only(without stable tag) are not guaranteed to be
> backported and particularly if they have conflicts. So, for making sure
> these get to stable I suggest to use CC:stable that way you will also be
> notified if the patch fails to apply.

Good to know.

> 
> > I also noticed that other Fixes commits were not backported to stable
> > branches whereas they can be cleanly cherry-picked.  I'm also wondering
> > why they weren't pick.
> > 
> 
> They might be clean cherry-picks now but not when they appeared upstream,
> that is one case, and Fixes tag doesn't always ensure a patch is backported
> to stable.

I'm genuinely wondering in which case a backport would not be needed.

> 
> > FYI, here are the ones that can be backported without needing changes:
> > - 602acfb54119 ("landlock: Optimize stack usage when !CONFIG_AUDIT")
> > - 60207df2ebf3 ("landlock: Remove useless include")
> > - 7aa593d8fb64 ("selftests/landlock: Fix missing semicolon")
> > 
> 
> The first one doesn't apply on 6.12.y(6.12.77) , maybe that's the reason.
> 
> 
> > They should all be backported, even if they look like cosmetic fixes>
> (because they might be needed for other fixes/backports).
> > 
> > Here is the other one that needs to be adapted:
> > - e4d82cbce225 ("landlock: Fix TCP handling of short AF_UNSPEC addresses")
> > 
> 
> I think the way to get these to stable is include CC:stable along with Fixes
> tag. As documented in Option 1 of [1]
> 
> Now that we have missing fixes, I think the best way is to send backports to
> stable@vger.kernel.org

Yes, I'll do that.

> 
> I wonder if it would be helpful to make this explicitly stated: "Fixes tag
> alone is not a trigger for stable backports, CC:stable is needed if you want
> you patch to be backported to stable kernels(and also get notified if it
> fails to apply)" ?

I think yes. My understanding was that if there is a Fixes tag, it will
be backported.  The same for CC:stable, but in this case in a
best-effort way because the fixed commit wasn't specified.

> 
> [1] https://www.kernel.org/doc/html/v6.19/process/stable-kernel-rules.html
> 
> > Thanks,
> >   Mickaël
> > 

  reply	other threads:[~2026-04-02 19:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-24 14:04 [PATCH 6.12.y 0/9] Few stable backports for CVE fixes Harshit Mogalapalli
2026-03-24 14:04 ` [PATCH 6.12.y 1/9] landlock: Optimize file path walks and prepare for audit support Harshit Mogalapalli
2026-03-24 14:04 ` [PATCH 6.12.y 2/9] landlock: Fix handling of disconnected directories Harshit Mogalapalli
2026-04-01 15:24   ` Mickaël Salaün
2026-04-01 19:01     ` Harshit Mogalapalli
2026-04-02 18:52       ` Mickaël Salaün [this message]
2026-03-24 14:04 ` [PATCH 6.12.y 3/9] ice: fix using untrusted value of pkt_len in ice_vc_fdir_parse_raw() Harshit Mogalapalli
2026-03-24 14:04 ` [PATCH 6.12.y 4/9] ice: fix devlink reload call trace Harshit Mogalapalli
2026-03-24 14:04 ` [PATCH 6.12.y 5/9] ice: Fix PTP NULL pointer dereference during VSI rebuild Harshit Mogalapalli
2026-03-24 14:04 ` [PATCH 6.12.y 6/9] idpf: check error for register_netdev() on init Harshit Mogalapalli
2026-03-24 14:04 ` [PATCH 6.12.y 7/9] idpf: detach and close netdevs while handling a reset Harshit Mogalapalli
2026-03-24 14:04 ` [PATCH 6.12.y 8/9] idpf: Fix RSS LUT NULL pointer crash on early ethtool operations Harshit Mogalapalli
2026-03-24 14:04 ` [PATCH 6.12.y 9/9] idpf: Fix RSS LUT NULL ptr issue after soft reset Harshit Mogalapalli
2026-04-01  6:29 ` [PATCH 6.12.y 0/9] Few stable backports for CVE fixes Harshit Mogalapalli
2026-04-01  7:29   ` Greg Kroah-Hartman

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=20260402.chiniey9Beex@digikod.net \
    --to=mic@digikod.net \
    --cc=gnoack@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=harshit.m.mogalapalli@oracle.com \
    --cc=m@maowtm.org \
    --cc=matthieu@buffet.re \
    --cc=stable@vger.kernel.org \
    /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