Revert "bpf: Eliminate rlimit-based memory accounting for devmap maps"
This reverts commit
70294d8bc31f3b7789e5e32f757aa9344556d964 which is
commit
844f157f6c0a905d039d2e20212ab3231f2e5eaf upstream.
Commit
70294d8bc31f ("bpf: Eliminate rlimit-based memory accounting for
devmap maps") is part of the v5.11+ base 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. Let's roll back to rlimit-based memory accounting mode for
devmap.
Link: https://lore.kernel.org/bpf/20201201215900.3569844-1-guro@fb.com
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name revert-bpf-eliminate-rlimit-based-memory-accounting-for-devmap-maps.patch