diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2022-04-08 18:10:35 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-04-12 04:28:03 +0300 |
commit | 49b7d376abe54a49e8bd5e64824032b7c97c62d4 (patch) | |
tree | c77ba33014b956c110acfe9afd5dd81ac992f661 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d22f4f977236f97e01255a80bca2ea93a8094fc8 (diff) | |
download | linux-49b7d376abe54a49e8bd5e64824032b7c97c62d4.tar.xz |
net/smc: Fix af_ops of child socket pointing to released memory
Child sockets may inherit the af_ops from the parent listen socket.
When the listen socket is released then the af_ops of the child socket
points to released memory.
Solve that by restoring the original af_ops for child sockets which
inherited the parent af_ops. And clear any inherited user_data of the
parent socket.
Fixes: 8270d9c21041 ("net/smc: Limit backlog connections")
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: D. Wythe <alibuda@linux.alibaba.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions