Patch "selftests: mptcp: clean tmp files in simult_flows" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests: mptcp: clean tmp files in simult_flows

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-mptcp-clean-tmp-files-in-simult_flows.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit df544f7c9e56f2f7515a310a919f8abb94e4d7ba
Author: Matthieu Baerts <matthieu.baerts@xxxxxxxxxxxx>
Date:   Wed Sep 1 10:15:37 2021 -0700

    selftests: mptcp: clean tmp files in simult_flows
    
    [ Upstream commit bfd862a7e9318dd906844807a713d27cdd1a72b1 ]
    
    '$cin' and '$sin' variables are local to a function: they are then not
    available from the cleanup trap.
    
    Instead, we need to use '$large' and '$small' that are not local and
    defined just before setting the trap.
    
    Without this patch, running this script in a loop might cause a:
    
      write: No space left on device
    
    issue.
    
    Fixes: 1a418cb8e888 ("mptcp: simult flow self-tests")
    Acked-by: Paolo Abeni <pabeni@xxxxxxxxxx>
    Signed-off-by: Matthieu Baerts <matthieu.baerts@xxxxxxxxxxxx>
    Signed-off-by: Mat Martineau <mathew.j.martineau@xxxxxxxxxxxxxxx>
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/net/mptcp/simult_flows.sh b/tools/testing/selftests/net/mptcp/simult_flows.sh
index 2f649b431456..8fcb28927818 100755
--- a/tools/testing/selftests/net/mptcp/simult_flows.sh
+++ b/tools/testing/selftests/net/mptcp/simult_flows.sh
@@ -21,8 +21,8 @@ usage() {
 
 cleanup()
 {
-	rm -f "$cin" "$cout"
-	rm -f "$sin" "$sout"
+	rm -f "$cout" "$sout"
+	rm -f "$large" "$small"
 	rm -f "$capout"
 
 	local netns



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux