Commit 8542d6f
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 2def8ff ("sock:
Code cleanup on __sk_mem_raise_allocated()"). The fix changes the
default value of charged to true while preserving existing logic.
Fixes: 2def8ff ("sock: Code cleanup on __sk_mem_raise_allocated()")
Signed-off-by: Abel Wu <wuyun.abel@bytedance.com>
Signed-off-by: Tengteng Yang <yangtengteng@bytedance.com>
Link: https://patch.msgid.link/20250527030419.67693-1-yangtengteng@bytedance.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 90b83ef commit 8542d6f
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3284 | 3284 | | |
3285 | 3285 | | |
3286 | 3286 | | |
3287 | | - | |
| 3287 | + | |
3288 | 3288 | | |
3289 | 3289 | | |
3290 | 3290 | | |
3291 | 3291 | | |
3292 | 3292 | | |
3293 | 3293 | | |
3294 | | - | |
| 3294 | + | |
| 3295 | + | |
3295 | 3296 | | |
3296 | | - | |
3297 | 3297 | | |
3298 | 3298 | | |
3299 | 3299 | | |
| |||
3378 | 3378 | | |
3379 | 3379 | | |
3380 | 3380 | | |
3381 | | - | |
| 3381 | + | |
3382 | 3382 | | |
3383 | 3383 | | |
3384 | 3384 | | |
| |||
0 commit comments