Thread (6 messages) 6 messages, 3 authors, 2024-11-01

Re: [PATCH net-next v4] net: Implement fault injection forcing skb reallocation

From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-11-01 00:04:30
Also in: linux-doc, lkml

On Thu, 31 Oct 2024 02:41:18 -0700 Breno Leitao wrote:
quoted
Should we mention here that KASAN or some such is needed to catch 
the bugs? Chances are the resulting UAF will not crash and go unnoticed
without KASAN.  
What about adding something like this in the fail_skb_realloc section in
the fault-injection.rst file:
SG
quoted
the buffer needs to be null terminated, like:

skb_realloc.devname[IFNAMSIZ - 1] = '\0';

no?  
Yes, but isn't it what the next line do, with strim()?
I could be wrong, but looks like first thing strim does is call strlen()
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help