diff options
| author | Ignat Korchagin <[email protected]> | 2024-10-14 16:38:03 +0100 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-10-15 18:43:08 -0700 |
| commit | 811a7ca7320c062e15d0f5b171fe6ad8592d1434 (patch) | |
| tree | e2828100b98f78a8bd1b1f2e71278573c96a0d8e /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 3945c799f12b8d1f49a3b48369ca494d981ac465 (diff) | |
net: af_can: do not leave a dangling sk pointer in can_create()
On error can_create() frees the allocated sk object, but sock_init_data()
has already attached it to the provided sock object. This will leave a
dangling sk pointer in the sock object and may cause use-after-free later.
Signed-off-by: Ignat Korchagin <[email protected]>
Reviewed-by: Vincent Mailhol <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Reviewed-by: Marc Kleine-Budde <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions