summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2022-04-08 17:10:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 19:51:47 +0100
commit5e71985e855c40443244ba51e69f36627f78fb41 (patch)
treee09ed6f892211f15c491bbb23bca748d095872cf /lib/mpi/mpi-sub-ui.c
parent5cedfe8aaf1875a5305897107b7f298db4260019 (diff)
net/smc: Fix af_ops of child socket pointing to released memory
commit 49b7d376abe54a49e8bd5e64824032b7c97c62d4 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions