aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJohannes Weiner <[email protected]>2024-01-29 20:34:38 -0500
committerAndrew Morton <[email protected]>2024-02-07 21:20:35 -0800
commit2e601e1e8e4b330020a346c55ba111d49e0b188e (patch)
tree7516700287f584302bb93ce534f3b67df5405b7d /lib/test_fortify/write_overflow-strncpy-src.c
parent4c2da3188b848d33c26d7f0f8b14f3150331c923 (diff)
mm: zswap: fix objcg use-after-free in entry destruction
In the per-memcg LRU universe, LRU removal uses entry->objcg to determine which list count needs to be decreased. Drop the objcg reference after updating the LRU, to fix a possible use-after-free. Link: https://lkml.kernel.org/r/[email protected] Fixes: a65b0e7607cc ("zswap: make shrinking memcg-aware") Signed-off-by: Johannes Weiner <[email protected]> Acked-by: Yosry Ahmed <[email protected]> Reviewed-by: Nhat Pham <[email protected]> Reviewed-by: Chengming Zhou <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions