aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorChristian Göttsche <[email protected]>2025-03-18 08:33:32 +0000
committerPaul Moore <[email protected]>2025-04-11 20:29:51 +0000
commitcde3b1b66f2de9eba3ce1beadb91739d803a1018 (patch)
tree240f1e23fe5076588436059e4b17b5ba23f5a9ae /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentselinux: add likely hints for fast paths (diff)
downloadkernel-cde3b1b66f2de9eba3ce1beadb91739d803a1018.tar.gz
kernel-cde3b1b66f2de9eba3ce1beadb91739d803a1018.zip
selinux: unify OOM handling in network hashtables
For network objects, like interfaces, nodes, port and InfiniBands, the object to SID lookup is cached in hashtables. OOM during such hashtable additions of new objects is considered non-fatal and the computed SID is simply returned without adding the compute result into the hash table. Actually ignore OOM in the InfiniBand code, despite the comment already suggesting to do so. This reverts commit c350f8bea271 ("selinux: Fix error return code in sel_ib_pkey_sid_slow()"). Add comments in the other places. Use kmalloc() instead of kzalloc(), since all members are initialized on success and the data is only used in internbal hash tables, so no risk of information leakage to userspace. Fixes: c350f8bea271 ("selinux: Fix error return code in sel_ib_pkey_sid_slow()") Signed-off-by: Christian Göttsche <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions