Linux kernel -stable discussions
 help / color / mirror / Atom feed
* 5.10 LTS - Request for inclusion of getsockopt(SO_NETNS_COOKIE)
@ 2023-03-22 19:17 Maciej Żenczykowski
  2023-03-22 19:22 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Maciej Żenczykowski @ 2023-03-22 19:17 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Greg Kroah-Hartman, Sasha Levin, Sasha Levin,
	stable
  Cc: Stanislav Fomichev, Eric Dumazet

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.

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

Thanks!

Maciej Żenczykowski, Kernel Networking Developer @ Google

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-22 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox