]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix skb_panic to output real address
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 27 Apr 2020 16:37:43 +0000 (18:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 22:19:59 +0000 (15:19 -0700)
commite696c67312f32e5e25befb077dca906cbed7a05d
treea6ab6ab899590f2074e5a0c32c122b791a26f67d
parentd3b6f0fbe7647a5b2623e6e62565190e5b5a6c35
net: fix skb_panic to output real address

In skb_panic() the real pointer values are really needed to diagnose
issues, e.g. data and head are related (to calculate headroom). The
hashed versions of the addresses doesn't make much sense here. The
patch use the printk specifier %px to print the actual address.

The printk documentation on %px:
https://www.kernel.org/doc/html/latest/core-api/printk-formats.html#unmodified-addresses

Fixes: 7f32ed5e940b ("printk: hash addresses printed with %p")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c