aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/netns.py
diff options
context:
space:
mode:
authorIlia Gavrilov <[email protected]>2025-05-15 12:20:15 +0000
committerDavid S. Miller <[email protected]>2025-05-19 11:12:54 +0000
commit239af1970bcb039a1551d2c438d113df0010c149 (patch)
tree78075848cf47ecd99bbb39fb8ff82f98e4b81615 /tools/testing/selftests/net/lib/py/netns.py
parentmr: consolidate the ipmr_can_free_table() checks. (diff)
downloadkernel-239af1970bcb039a1551d2c438d113df0010c149.tar.gz
kernel-239af1970bcb039a1551d2c438d113df0010c149.zip
llc: fix data loss when reading from a socket in llc_ui_recvmsg()
For SOCK_STREAM sockets, if user buffer size (len) is less than skb size (skb->len), the remaining data from skb will be lost after calling kfree_skb(). To fix this, move the statement for partial reading above skb deletion. Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) Fixes: 30a584d944fb ("[LLX]: SOCK_DGRAM interface fixes") Cc: [email protected] Signed-off-by: Ilia Gavrilov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/netns.py')
0 files changed, 0 insertions, 0 deletions