diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-09-13 21:15:41 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-09-14 21:53:08 -0300 |
| commit | e1253a82bb4c0fed6706a5839fc8b6e01be1abe2 (patch) | |
| tree | 950d81d4a96fbaaaf991e64ee6dbdd5ae2579f2b /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | e1aeaf79dea51e6065da56924bc07e22d59012ac (diff) | |
| download | linux-next-e1253a82bb4c0fed6706a5839fc8b6e01be1abe2.tar.gz linux-next-e1253a82bb4c0fed6706a5839fc8b6e01be1abe2.zip | |
smb: client: fix fattr leaking on wsl_to_fattr() failure
wsl_to_fattr() mutates fattr fields as it parses each WSL EA. If
validation later fails, the function returns false with partially
mutated fattr fields that callers do not reset.
Fix this by parsing into local variables and only committing them to
fattr on success.
Closes: https://sashiko.dev/#/patchset/20260906200517.725015-1-pc%40manguebit.org
Fixes: 78e26bec4d6d ("smb: client: parse uid, gid, mode and dev from WSL reparse points")
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Shyam Prasad N <sprasad@microsoft.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Bharath SM <bharathsm@microsoft.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
