netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: control the length of the altname list
@ 2022-03-09 18:29 Jakub Kicinski
  2022-03-09 18:29 ` [PATCH net-next 1/2] net: account alternate interface name memory Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jakub Kicinski @ 2022-03-09 18:29 UTC (permalink / raw)
  To: davem; +Cc: netdev, dsahern, jiri, Jakub Kicinski

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-11  4:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-09 18:29 [PATCH net-next 0/2] net: control the length of the altname list Jakub Kicinski
2022-03-09 18:29 ` [PATCH net-next 1/2] net: account alternate interface name memory Jakub Kicinski
2022-03-09 18:29 ` [PATCH net-next 2/2] net: limit altnames to 64k total Jakub Kicinski
2022-03-10  2:51   ` David Ahern
2022-03-10  3:37     ` Jakub Kicinski
2022-03-10  3:50       ` David Ahern
2022-03-11  4:30 ` [PATCH net-next 0/2] net: control the length of the altname list patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).