Commit 8542d6fa authored by Tengteng Yang's avatar Tengteng Yang Committed by Jakub Kicinski
Browse files

Fix sock_exceed_buf_limit not being triggered in __sk_mem_raise_allocated



When a process under memory pressure is not part of any cgroup and
the charged flag is false, trace_sock_exceed_buf_limit was not called
as expected.

This regression was introduced by commit 2def8ff3 ("sock:
Code cleanup on __sk_mem_raise_allocated()"). The fix changes the
default value of charged to true while preserving existing logic.

Fixes: 2def8ff3 ("sock: Code cleanup on __sk_mem_raise_allocated()")
Signed-off-by: default avatarAbel Wu <wuyun.abel@bytedance.com>
Signed-off-by: default avatarTengteng Yang <yangtengteng@bytedance.com>
Link: https://patch.msgid.link/20250527030419.67693-1-yangtengteng@bytedance.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 90b83efa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment