Ilya Leoshkevich
840aec7a8b
selftests/bpf: fix "bind{4, 6} deny specific IP & port" on s390
...
[ Upstream commit 27df5c7068 ]
"bind4 allow specific IP & port" and "bind6 deny specific IP & port"
fail on s390 because of endianness issue: the 4 IP address bytes are
loaded as a word and compared with a constant, but the value of this
constant should be different on big- and little- endian machines, which
is not the case right now.
Use __bpf_constant_ntohl to generate proper value based on machine
endianness.
Fixes: 1d436885b2 ("selftests/bpf: Selftest for sys_bind post-hooks.")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com >
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2019-09-21 07:18:28 +02:00
..
2019-06-05 17:36:37 +02:00
2019-09-21 07:18:28 +02:00
2019-06-05 17:36:37 +02:00
2019-04-25 13:15:46 -06:00
2019-08-06 19:08:18 +02:00
2019-01-25 14:57:45 -07:00
2018-05-30 15:21:52 -06:00
2019-06-12 11:08:14 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:39 -07:00
2019-01-30 15:19:56 +01:00
2019-05-21 10:50:46 +02:00
2019-06-19 17:09:11 +02:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2018-05-30 21:31:31 -06:00
2019-04-19 17:18:00 -06:00
2019-03-09 14:45:54 -08:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 09:24:30 -06:00
2019-09-10 10:35:23 +01:00
2019-05-21 10:50:46 +02:00
2019-04-15 10:43:21 +02:00
2018-05-30 15:29:06 -06:00
2019-04-22 11:23:14 -04:00
2019-05-21 10:50:46 +02:00
2019-03-05 21:07:19 -08:00
2018-09-05 10:58:31 -06:00
2018-08-09 11:26:07 -06:00
2018-05-30 15:29:06 -06:00
2019-08-29 08:30:04 +02:00
2019-05-23 14:45:36 -07:00
2019-06-05 17:37:06 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 11:52:39 +02:00
2019-06-05 15:06:32 +02:00
2019-06-24 21:20:39 +08:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:46 +02:00
2019-06-19 17:09:11 +02:00
2019-05-24 14:31:58 -07:00
2019-05-21 10:50:46 +02:00
2019-05-07 18:14:36 -07:00
2019-07-31 07:24:49 +02:00
2019-05-31 08:34:32 -07:00
2019-02-12 10:58:51 -08:00
2019-06-19 17:09:51 +02:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:39 -07:00
2018-06-18 09:29:20 -06:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:46 +02:00
2019-04-25 13:15:46 -06:00
2019-05-21 10:50:46 +02:00
2019-08-25 10:10:38 -04:00
2019-06-05 17:36:38 +02:00
2019-05-21 10:50:46 +02:00
2019-04-08 15:58:55 -07:00
2018-05-23 15:24:22 -04:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:20 -07:00
2019-06-19 17:09:53 +02:00
2018-12-13 13:03:19 -07:00
2019-06-05 17:37:17 +02:00
2019-05-21 11:52:39 +02:00
2019-04-25 13:14:13 -06:00
2018-01-12 11:44:31 -07:00
2019-06-19 17:09:51 +02:00
2018-01-12 11:45:05 -07:00
2019-04-08 16:44:20 -06:00
2019-04-08 16:44:11 -06:00
2019-04-25 13:15:46 -06:00
2019-05-13 10:19:43 -06:00
2019-05-14 17:37:41 -06:00