Patch "selftests/bpf: Fix endianness issue in sk_assign" has been added to the 5.9-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/bpf: Fix endianness issue in sk_assign

to the 5.9-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-bpf-fix-endianness-issue-in-sk_assign.patch
and it can be found in the queue-5.9 subdirectory.

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



commit 7bd5fc5895d906abc36c5cf1cf3c531ddff1dce0
Author: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>
Date:   Tue Sep 15 13:38:15 2020 +0200

    selftests/bpf: Fix endianness issue in sk_assign
    
    [ Upstream commit b6ed6cf4a3acdeab9aed8e0a524850761ec9b152 ]
    
    server_map's value size is 8, but the test tries to put an int there.
    This sort of works on x86 (unless followed by non-0), but hard fails on
    s390.
    
    Fix by using __s64 instead of int.
    
    Fixes: 2d7824ffd25c ("selftests: bpf: Add test for sk_assign")
    Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>
    Signed-off-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>
    Acked-by: Andrii Nakryiko <andriin@xxxxxx>
    Link: https://lore.kernel.org/bpf/20200915113815.3768217-1-iii@xxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/bpf/prog_tests/sk_assign.c b/tools/testing/selftests/bpf/prog_tests/sk_assign.c
index 47fa04adc1471..21c2d265c3e8e 100644
--- a/tools/testing/selftests/bpf/prog_tests/sk_assign.c
+++ b/tools/testing/selftests/bpf/prog_tests/sk_assign.c
@@ -265,7 +265,7 @@ void test_sk_assign(void)
 		TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false),
 		TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true),
 	};
-	int server = -1;
+	__s64 server = -1;
 	int server_map;
 	int self_net;
 



[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