Thread (8 messages) 8 messages, 4 authors, 2015-12-08

Re: 4.4-rc2 xfrm_lookup kasan trace

From: David Miller <davem@davemloft.net>
Date: 2015-12-03 16:59:19

From: Eric Dumazet <redacted>
Date: Mon, 30 Nov 2015 17:22:11 -0800
quoted hunk ↗ jump to hunk
@@ -2198,6 +2198,7 @@ struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
 	xdst = NULL;
 	route = NULL;
 
+	sk = sk_to_full_sk((struct sock *)sk);
The war against const...

I know this is the only instance where const is input, but you may want to
consider adding the const verion of the helper anyways to avoid ugly casts
like this.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help