lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 01 May 2008 13:00:56 +0200
From:	Johannes Berg <>
To:	"David S. Miller" <>
Cc:	netdev <>
Subject: [PATCH] [NET] print skb pointer in truesize bug

While debugging the mac80211 truesize problem I always wished
that I knew exactly which skb showed the problem, this makes
skb_truesize_bug() print out the pointer.

Signed-off-by: Johannes Berg <>
 net/core/skbuff.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- everything.orig/net/core/skbuff.c	2008-05-01 12:53:09.000000000 +0200
+++ everything/net/core/skbuff.c	2008-05-01 12:53:31.000000000 +0200
@@ -152,8 +152,8 @@ void skb_under_panic(struct sk_buff *skb
 void skb_truesize_bug(struct sk_buff *skb)
 	printk(KERN_ERR "SKB BUG: Invalid truesize (%u) "
-	       "len=%u, sizeof(sk_buff)=%Zd\n",
-	       skb->truesize, skb->len, sizeof(struct sk_buff));
+	       "len=%u, sizeof(sk_buff)=%Zd, skb=0x%p\n",
+	       skb->truesize, skb->len, sizeof(struct sk_buff), skb);

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists