public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5.10 v2 0/3] Re-adapt "bpf: Fix DEVMAP_HASH overflow check on 32-bit arches"
@ 2024-09-27 13:51 Pu Lehui
  2024-09-27 13:51 ` [PATCH 5.10 v2 1/3] Revert " Pu Lehui
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pu Lehui @ 2024-09-27 13:51 UTC (permalink / raw)
  To: stable, bpf
  Cc: Greg Kroah-Hartman, Sasha Levin, Toke Høiland-Jørgensen,
	Pu Lehui

Commit 70294d8bc31f ("bpf: Eliminate rlimit-based memory accounting for
devmap maps") relies on the v5.11+ basic mechanism of memcg-based memory
accounting [0]. The commit cannot be independently backported to the
5.10 stable branch, otherwise the related memory when creating devmap
will be unrestricted and the associated bpf selftest map_ptr will fail.
Let's roll back to rlimit-based memory accounting mode for devmap and
re-adapt the commit 225da02acdc9 ("bpf: Fix DEVMAP_HASH overflow check
on 32-bit arches") to the 5.10 stable branch.

Link: https://lore.kernel.org/bpf/20201201215900.3569844-1-guro@fb.com [0]

Pu Lehui (2):
  Revert "bpf: Fix DEVMAP_HASH overflow check on 32-bit arches"
  Revert "bpf: Eliminate rlimit-based memory accounting for devmap maps"

Toke Høiland-Jørgensen (1):
  bpf: Fix DEVMAP_HASH overflow check on 32-bit arches

 kernel/bpf/devmap.c | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-10-01  8:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 13:51 [PATCH 5.10 v2 0/3] Re-adapt "bpf: Fix DEVMAP_HASH overflow check on 32-bit arches" Pu Lehui
2024-09-27 13:51 ` [PATCH 5.10 v2 1/3] Revert " Pu Lehui
2024-09-27 13:51 ` [PATCH 5.10 v2 2/3] Revert "bpf: Eliminate rlimit-based memory accounting for devmap maps" Pu Lehui
2024-09-27 13:51 ` [PATCH 5.10 v2 3/3] bpf: Fix DEVMAP_HASH overflow check on 32-bit arches Pu Lehui
2024-10-01  8:09 ` [PATCH 5.10 v2 0/3] Re-adapt "bpf: Fix DEVMAP_HASH overflow check on 32-bit arches" 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