summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorIgnat Korchagin <ignat@cloudflare.com>2024-10-14 18:38:02 +0300
committerJakub Kicinski <kuba@kernel.org>2024-10-16 04:43:08 +0300
commit3945c799f12b8d1f49a3b48369ca494d981ac465 (patch)
treec280f0d4f02836472fea6e7337a17538dddb164f /tools/perf/scripts/python/export-to-postgresql.py
parent7c4f78cdb8e7501e9f92d291a7d956591bf73be9 (diff)
downloadlinux-3945c799f12b8d1f49a3b48369ca494d981ac465.tar.xz
Bluetooth: RFCOMM: avoid leaving dangling sk pointer in rfcomm_sock_alloc()
bt_sock_alloc() attaches allocated sk object to the provided sock object. If rfcomm_dlc_alloc() fails, we release the sk object, but leave the dangling pointer in the sock object, which may cause use-after-free. Fix this by swapping calls to bt_sock_alloc() and rfcomm_dlc_alloc(). Signed-off-by: Ignat Korchagin <ignat@cloudflare.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20241014153808.51894-4-ignat@cloudflare.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions