From: Peilin Ye <yepeilin.cs@gmail•com>
To: kerneljasonxing@gmail•com
Cc: davem@davemloft•net, yoshfuji@linux-ipv6•org, dsahern@kernel•org,
kuba@kernel•org, pabeni@redhat•com, ast@kernel•org,
daniel@iogearbox•net, andrii@kernel•org, kafai@fb•com,
songliubraving@fb•com, yhs@fb•com, john.fastabend@gmail•com,
kpsingh@kernel•org, netdev@vger•kernel.org,
linux-kernel@vger•kernel.org, bpf@vger•kernel.org,
Jason Xing <xingwanli@kuaishou•com>
Subject: Re: [PATCH net-next] net: use the %px format to display sock
Date: Fri, 6 May 2022 11:56:41 -0700 [thread overview]
Message-ID: <20220506185641.GA2289@bytedance> (raw)
In-Reply-To: <20220505130826.40914-1-kerneljasonxing@gmail.com>
Hi Jason,
On Thu, May 05, 2022 at 09:08:26PM +0800, kerneljasonxing@gmail•com wrote:
> - pr_err("Attempt to release TCP socket in state %d %p\n",
> + pr_err("Attempt to release TCP socket in state %d %px\n",
I think we cannot use %px here for security reasons? checkpatch is also
warning about it:
WARNING: Using vsprintf specifier '%px' potentially exposes the kernel memory layout, if you don't really need the address please consider using '%p'.
#21: FILE: net/ipv4/af_inet.c:142:
+ pr_err("Attempt to release TCP socket in state %d %px\n",
sk->sk_state, sk);
Thanks,
Peilin Ye
next prev parent reply other threads:[~2022-05-06 18:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-05 13:08 [PATCH net-next] net: use the %px format to display sock kerneljasonxing
2022-05-06 18:56 ` Peilin Ye [this message]
2022-05-07 1:26 ` Jason Xing
2022-05-07 14:22 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220506185641.GA2289@bytedance \
--to=yepeilin.cs@gmail$(echo .)com \
--cc=andrii@kernel$(echo .)org \
--cc=ast@kernel$(echo .)org \
--cc=bpf@vger$(echo .)kernel.org \
--cc=daniel@iogearbox$(echo .)net \
--cc=davem@davemloft$(echo .)net \
--cc=dsahern@kernel$(echo .)org \
--cc=john.fastabend@gmail$(echo .)com \
--cc=kafai@fb$(echo .)com \
--cc=kerneljasonxing@gmail$(echo .)com \
--cc=kpsingh@kernel$(echo .)org \
--cc=kuba@kernel$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=songliubraving@fb$(echo .)com \
--cc=xingwanli@kuaishou$(echo .)com \
--cc=yhs@fb$(echo .)com \
--cc=yoshfuji@linux-ipv6$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox