Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp494272pxx; Wed, 28 Oct 2020 09:35:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYVtfz72sqaebtkeNBu/GCElDMsDmb98QHKjVEXy/xszFGAxMcuKEM5zzLdHfW1wrpGHCq X-Received: by 2002:a05:6402:3133:: with SMTP id dd19mr8896823edb.100.1603902919336; Wed, 28 Oct 2020 09:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603902919; cv=none; d=google.com; s=arc-20160816; b=JRrlJrV1ZKAyjwdmbLYu03BRTXN/6HkrTtonxg8Pqb0fvkmll0q9i2Xy6pzQNj6Nsb mcX/l/eCPS9y+NXPYDySSAxI+ln8TpWlp3mnn3sUw3/k8ZI5TOFKZOBlFxeWU8H/V5q9 mbVnTGe5sOXBRNpwsRRAdnG6b60JffuXRMJRUfJ+zffAJfKU01fc+F/QTl4pF9wJ/enN kxKr4UCG9y/mq4fx2fs2LltoOGYTXLJa1F7t72kiGD35anE7qADu4W13ebBw5IWyVR+C PYjUF/+tzwi4H3TvbYWry3ZF5eFJoYkcOWZy6aWWuM+5MMxAhDO9OcgKheSZzQCJKwx0 SN5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+okrbjb/iHODDq15kbz52AO2qskIPOLP0uksYlDujII=; b=Vd7CXNIwejYhcA8fhe3p0pdWsPNf9YgHL85hcJedCbp4rMDNwZWc0t8zeig2w7TtYO OIlTCMxpC0CtbMsjvSIAiHf8EPb8Fb5Lpqi8SonZAZYAStsEju+iiteKXTqBJ73HPjIw WPvCZYqQtM0qVjggHQgkk/xnNdGYrSAaVrdbSdTQP3hG/hnKcPUKh+sigvam5Iu8ww31 /BPUz/qnVc3eKh0vi5fNNcOKPb1I+9K3sp++V1oLiLNsikuCXCNeHD4A0g6xWGoS1rWV 2D7Ru6Q8MHl0t97Ma/Ueusp4FBo6Xc3X0fkC65mL/BfG+wm/85SbLM8VjtFC0dxAJWlS 8ujA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A5sADgWU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si3794338ejw.710.2020.10.28.09.34.55; Wed, 28 Oct 2020 09:35:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A5sADgWU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2899578AbgJ0ROY (ORCPT + 99 others); Tue, 27 Oct 2020 13:14:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:60186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1783890AbgJ0O6n (ORCPT ); Tue, 27 Oct 2020 10:58:43 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C56BE20714; Tue, 27 Oct 2020 14:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810722; bh=XEh+266qbHO/JplKpkkP76/x6r4YBQwRmHueb4pivNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A5sADgWUYbc4fvtmnBGspCNguI188E2OAxAJpBPJrCL8MwyUFN50OXKwuxTXkGroG NPCV7tzwo8xcNcmKa3w4sYmyzrV+I6SPAfyx26wKtwiz1ODVLV/rsplMjMjMlmWl1e T1N9SU2WzcoxfCrdZQcs95zmaZWuB00tFT3Ixj70= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilya Leoshkevich , Daniel Borkmann , Andrii Nakryiko , Sasha Levin Subject: [PATCH 5.8 239/633] selftests/bpf: Fix endianness issue in sk_assign Date: Tue, 27 Oct 2020 14:49:42 +0100 Message-Id: <20201027135533.883182575@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilya Leoshkevich [ 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 Signed-off-by: Daniel Borkmann Acked-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20200915113815.3768217-1-iii@linux.ibm.com Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/prog_tests/sk_assign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1