[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220309182914.423834-1-kuba@kernel.org>
Date: Wed, 9 Mar 2022 10:29:12 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, dsahern@...il.com, jiri@...nulli.us,
Jakub Kicinski <kuba@...nel.org>
Subject: [PATCH net-next 0/2] net: control the length of the altname list
Count the memory used for altnames and don't let user
overflow the property nlattr. This was reported by George:
https://lore.kernel.org/all/3e564baf-a1dd-122e-2882-ff143f7eb578@gmail.com/
Targeting net-next because I think we generally don't consider
tightening "root controlled" memory accounting to be a fix.
There's also some risk of breakage.
Jakub Kicinski (2):
net: account alternate interface name memory
net: limit altnames to 64k total
net/core/rtnetlink.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
--
2.34.1
Powered by blists - more mailing lists