All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH v3 0/2] igb: Proactively round up to kmalloc bucket size
@ 2022-10-18  9:25 ` Kees Cook
  0 siblings, 0 replies; 23+ messages in thread
From: Kees Cook @ 2022-10-18  9:25 UTC (permalink / raw)
  To: Ruhl, Michael J
  Cc: Kees Cook, intel-wired-lan, linux-kernel, Eric Dumazet,
	linux-hardening, netdev, Jakub Kicinski, Paolo Abeni,
	David S. Miller

Hi,

In preparation for removing the "silently change allocation size"
users of ksize(), explicitly round up all q_vector allocations so that
allocations can be correctly compared to ksize().

Before that, fix a potential Use After Free under memory pressure.

Thanks,

-Kees

v3; split UAF fix from bucket rounding.
v2: https://lore.kernel.org/lkml/20220923202822.2667581-7-keescook@chromium.org/

Kees Cook (2):
  igb: Do not free q_vector unless new one was allocated
  igb: Proactively round up to kmalloc bucket size

 drivers/net/ethernet/intel/igb/igb_main.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

-- 
2.34.1

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

end of thread, other threads:[~2022-11-02 14:22 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18  9:25 [Intel-wired-lan] [PATCH v3 0/2] igb: Proactively round up to kmalloc bucket size Kees Cook
2022-10-18  9:25 ` Kees Cook
2022-10-18  9:25 ` [Intel-wired-lan] [PATCH v3 1/2] igb: Do not free q_vector unless new one was allocated Kees Cook
2022-10-18  9:25   ` Kees Cook
2022-10-18 12:20   ` [Intel-wired-lan] " Ruhl, Michael J
2022-10-18 12:20     ` Ruhl, Michael J
2022-10-20 21:59     ` [Intel-wired-lan] " Jacob Keller
2022-10-29  3:29   ` G, GurucharanX
2022-10-29  3:29     ` G, GurucharanX
2022-10-18  9:25 ` [Intel-wired-lan] [PATCH v3 2/2] igb: Proactively round up to kmalloc bucket size Kees Cook
2022-10-18  9:25   ` Kees Cook
2022-10-29  3:17   ` [Intel-wired-lan] " Kees Cook
2022-10-29  3:17     ` Kees Cook
2022-10-31 20:42     ` [Intel-wired-lan] " Ruhl, Michael J
2022-10-31 20:42       ` Ruhl, Michael J
2022-11-01 21:37       ` [Intel-wired-lan] " Kees Cook
2022-11-01 21:37         ` Kees Cook
2022-11-02 14:12         ` [Intel-wired-lan] " Ruhl, Michael J
2022-11-02 14:12           ` Ruhl, Michael J
2022-10-29  3:30   ` [Intel-wired-lan] " G, GurucharanX
2022-10-29  3:30     ` G, GurucharanX
2022-10-18 10:09 ` [Intel-wired-lan] [PATCH v3 0/2] " Kees Cook
2022-10-18 10:09   ` Kees Cook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.