diff options
author | Jiang Wang <[email protected]> | 2021-10-04 23:25:28 +0000 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-10-06 14:40:21 +0200 |
commit | d0c6416bd7091647f6041599f396bfa19ae30368 (patch) | |
tree | a731f7ecafcf4deb48ad7e2ce2c4e304d3ed8e12 /scripts/gdb/linux/utils.py | |
parent | b0e875bac0fab3e7a7431c2eee36a8ccc0c712ac (diff) |
unix: Fix an issue in unix_shutdown causing the other end read/write failures
Commit 94531cfcbe79 ("af_unix: Add unix_stream_proto for sockmap") sets
unix domain socket peer state to TCP_CLOSE in unix_shutdown. This could
happen when the local end is shutdown but the other end is not. Then,
the other end will get read or write failures which is not expected.
Fix the issue by setting the local state to shutdown.
Fixes: 94531cfcbe79 ("af_unix: Add unix_stream_proto for sockmap")
Reported-by: Casey Schaufler <[email protected]>
Suggested-by: Cong Wang <[email protected]>
Signed-off-by: Jiang Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Tested-by: Casey Schaufler <[email protected]>
Reviewed-by: Casey Schaufler <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions