bpf: Move bpf map owner out of common struct

Upstream commit: fd1c98f0ef5cbcec842209776505d9e70d8fcd53

Given this is only relevant for BPF tail call maps, it is adding up space
and penalizing other map types. We also need to extend this with further
objects to track / compare to. Therefore, lets move this out into a separate
structure and dynamically allocate it only for BPF tail call maps.

BUG=b/438183726
TEST=presubmit
RELEASE_NOTE=None

cos-patch: security-high
Change-Id: I400dc2573bbd130809093431fa5263f6d36da9b3
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/109213
Main-Branch-Verified: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Miri Amarilio <mirilio@google.com>
3 files changed