android_kernel_xiaomi_sm7250/include
Willy Tarreau 695309c5c7 secure_seq: use the 64 bits of the siphash for port offset calculation
commit b2d057560b8107c633b39aabe517ff9d93f285e3 upstream.

SipHash replaced MD5 in secure_ipv{4,6}_port_ephemeral() via commit
7cd23e5300 ("secure_seq: use SipHash in place of MD5"), but the output
remained truncated to 32-bit only. In order to exploit more bits from the
hash, let's make the functions return the full 64-bit of siphash_3u32().
We also make sure the port offset calculation in __inet_hash_connect()
remains done on 32-bit to avoid the need for div_u64_rem() and an extra
cost on 32-bit systems.

Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: Moshe Kol <moshe.kol@mail.huji.ac.il>
Cc: Yossi Gilad <yossi.gilad@mail.huji.ac.il>
Cc: Amit Klein <aksecurity@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
[SG: Adjusted context]
Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-06 08:24:20 +02:00
..
acpi ACPICA: actypes.h: Expand the ACPI_ACCESS_ definitions 2022-01-27 09:04:27 +01:00
asm-generic hugetlbfs: flush TLBs correctly after huge_pmd_unshare 2021-12-01 09:27:43 +01:00
clocksource
crypto crypto: public_key: fix overflow during implicit conversion 2021-09-22 11:47:59 +02:00
drm drm: Return -ENOTTY for non-drm ioctls 2021-07-28 11:13:51 +02:00
dt-bindings
keys
kvm
linux Reinstate some of "swiotlb: rework "fix info leak with DMA_FROM_DEVICE"" 2022-05-25 09:10:41 +02:00
math-emu
media media: subdev: disallow ioctl for saa6588/davinci 2021-07-20 16:16:05 +02:00
memory
misc
net secure_seq: use the 64 bits of the siphash for port offset calculation 2022-06-06 08:24:20 +02:00
pcmcia
ras
rdma RDMA/netlink: Add __maybe_unused to static inline in C file 2021-11-26 11:36:24 +01:00
scsi scsi: iscsi: Fix conn use after free during resets 2021-07-20 16:16:08 +02:00
soc
sound ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock 2022-05-15 19:41:58 +02:00
target scsi: target: Fix ordered tag handling 2021-11-26 11:36:20 +01:00
trace f2fs: fix up f2fs_lookup tracepoints 2021-11-26 11:36:21 +01:00
uapi bpf: Fix comment for helper bpf_current_task_under_cgroup() 2022-04-15 14:14:59 +02:00
video
xen xen/gnttab: fix gnttab_end_foreign_access() without page specified 2022-03-11 10:15:13 +01:00