]> git.proxmox.com Git - grub2.git/commit
net/netbuff: Block overly large netbuff allocs
authorDaniel Axtens <dja@axtens.net>
Tue, 8 Mar 2022 12:47:46 +0000 (23:47 +1100)
committerJulian Andres Klode <julian.klode@canonical.com>
Wed, 8 Jun 2022 10:41:03 +0000 (12:41 +0200)
commit4ea64c827f8bc57180772fd5671ddd010cb7b2ed
tree52dcc9e17eb2c278759b10c4d3d0fb42183111ae
parent557370849b914110a9efbd7256dc3942a8af8b99
net/netbuff: Block overly large netbuff allocs

A netbuff shouldn't be too huge. It's bounded by MTU and TCP segment
reassembly.

This helps avoid some bugs (and provides a spot to instrument to catch
them at their source).

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/netbuff.c