Revert "bpf: Fix DEVMAP_HASH overflow check on 32-bit arches"
authorPu Lehui <pulehui@huawei.com>
Fri, 27 Sep 2024 13:51:16 +0000 (13:51 +0000)
committerBen Hutchings <benh@debian.org>
Thu, 3 Oct 2024 21:58:46 +0000 (23:58 +0200)
commitf2eeb0355a0910451ae50fffaadc06a3e2815724
tree9b796b1c1f7dd1f90c538817a747673c50c29452
parentae3dadc1d2a08070e596c1603797ea85aa1bd90f
Revert "bpf: Fix DEVMAP_HASH overflow check on 32-bit arches"

This reverts commit 225da02acdc97af01b6bc6ce1a3e5362bf01d3fb which is
commit 281d464a34f540de166cee74b723e97ac2515ec3 upstream.

Commit 225da02acdc9 ("bpf: fix DEVMAP_HASH overflow check on 32-bit
architectures") relies on the v5.11+ base mechanism of memcg-based
memory accounting[0], which is not yet supported on the 5.10 stable
branch, so let's revert this commit in preparation for re-adapting it.

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-fix-devmap_hash-overflow-check-on-32-bit-arches.patch
kernel/bpf/devmap.c