summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.org>2026-10-12 01:52:46 -0300
committerPaulo Alcantara <pc@manguebit.org>2026-10-13 00:52:25 -0300
commitf13208f26c052d06a10c53eda4c78c930f2b9c47 (patch)
tree813f270beb6af368a35b2122dfa01c96618d20a1 /tools/perf/scripts/python/net_dropmonitor.py
parentb012ffcd45b0c5bb9eeb57ec1e7e2a71d3f36e06 (diff)
downloadlinux-f13208f26c052d06a10c53eda4c78c930f2b9c47.tar.gz
linux-f13208f26c052d06a10c53eda4c78c930f2b9c47.zip
smb: client: allocate struct sess_data on the stack
CIFS_SessSetup() kzalloc()s struct sess_data only to run a synchronous state machine and free it before returning; the object never escapes the function. At 96 bytes it fits comfortably on the stack even under CONFIG_FRAME_WARN=1024, so drop the allocation and its failure path. memzero_explicit() preserves the kfree_sensitive() scrubbing. Signed-off-by: Paulo Alcantara <pc@manguebit.org> Reviewed-by: David Howells <dhowells@redhat.com> Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com> Cc: Shyam Prasad N <sprasad@microsoft.com> Cc: Tom Talpey <tom@talpey.com> Cc: Bharath SM <bharathsm@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions