android_kernel_motorola_sm6375/net/key
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Herbert Xu dd56c671cc af_key: Fix send_acquire race with pfkey_register
[ Upstream commit 7f57f8165cb6d2c206e2b9ada53b9e2d6d8af42f ]

The function pfkey_send_acquire may race with pfkey_register
(which could even be in a different name space).  This may result
in a buffer overrun.

Allocating the maximum amount of memory that could be used prevents
this.

Reported-by: [email protected]
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Herbert Xu <[email protected]>
Reviewed-by: Sabrina Dubroca <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2022-12-08 11:22:57 +01:00
..
af_key.c af_key: Fix send_acquire race with pfkey_register 2022-12-08 11:22:57 +01:00
Makefile