All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Maciej Żenczykowski" <maze@google.com>
Cc: Greg Kroah-Hartman <gregkh@google.com>,
	Sasha Levin <sashalevin@google.com>,
	Sasha Levin <sashal@kernel.org>,
	stable@vger.kernel.org, Stanislav Fomichev <sdf@google.com>,
	Eric Dumazet <edumazet@google.com>
Subject: Re: 5.10 LTS - Request for inclusion of getsockopt(SO_NETNS_COOKIE)
Date: Wed, 22 Mar 2023 20:22:04 +0100	[thread overview]
Message-ID: <ZBtVXJVi/zKb8eAk@kroah.com> (raw)
In-Reply-To: <CANP3RGeiFUsO4X_qQszO5JRY7UDSQVxuC+57aCscL0p+dmjyKA@mail.gmail.com>

On Wed, Mar 22, 2023 at 12:17:55PM -0700, Maciej Żenczykowski wrote:
> Could we please get:
>   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e8b9eab99232c4e62ada9d7976c80fd5e8118289
>   'net: retrieve netns cookie via getsocketopt'
> 
> included in 5.10 LTS.
> 
> This is technically a feature, but it's absolutely trivial - it just
> adds a new getsockopt to fetch a u64.
> Using netns cookies from bpf without it is pretty annoying.

This really is a new feature, why not just move to a new kernel version
instead if you really need this?

> It doesn't cherrypick to 5.10 cleanly, due to trivial conflicts in
> header files (previous constants haven't yet been defined),
> and because of a post 5.10 change from atomic64_t to u64 - which
> requires adding in an atomic_read(&).
> 
> I've uploaded a compiling version to:
>   https://android-review.googlesource.com/c/kernel/common/+/2503056
> I think you should be able to cherrypick it via:
>   git fetch https://android.googlesource.com/kernel/common
> refs/changes/56/2503056/2 && git cherry-pick FETCH_HEAD

Please always submit a working backport here, we can't use random git
commands for this type of thing, sorry.  That way we can all properly
review it and verify that you sent what you want us to apply.

thanks,

greg k-h

  reply	other threads:[~2023-03-22 19:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22 19:17 5.10 LTS - Request for inclusion of getsockopt(SO_NETNS_COOKIE) Maciej Żenczykowski
2023-03-22 19:22 ` Greg Kroah-Hartman [this message]
2023-03-22 19:27   ` [PATCH] net: retrieve netns cookie via getsocketopt Maciej Żenczykowski
2023-03-22 19:37   ` 5.10 LTS - Request for inclusion of getsockopt(SO_NETNS_COOKIE) Maciej Żenczykowski
2023-03-22 19:44     ` 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=ZBtVXJVi/zKb8eAk@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=edumazet@google.com \
    --cc=gregkh@google.com \
    --cc=maze@google.com \
    --cc=sashal@kernel.org \
    --cc=sashalevin@google.com \
    --cc=sdf@google.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.