From: Paolo Abeni <pabeni@redhat.com>
To: Kees Cook <keescook@chromium.org>
Cc: Chris von Recklinghausen <crecklin@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org
Subject: Re: [PATCH] add param that allows bootline control of hardened usercopy
Date: Tue, 26 Jun 2018 19:14:47 +0200 [thread overview]
Message-ID: <a8343284adff3c743121a339035d5010347a3038.camel@redhat.com> (raw)
In-Reply-To: <CAGXu5jKHz=OaU1ejYEB=t-=Gs6gVoRywFbyQw8ThHk6WYG7Qxg@mail.gmail.com>
[hopefully fixed the 'mm' recipient]
On Tue, 2018-06-26 at 09:54 -0700, Kees Cook wrote:
> On Tue, Jun 26, 2018 at 2:48 AM, Paolo Abeni <pabeni@redhat.com> wrote:
> > With CONFIG_HARDENED_USERCOPY=y, perf shows ~6% of CPU time spent
> > cumulatively in __check_object_size (~4%) and __virt_addr_valid (~2%).
>
> Are you able to see which network functions are making the
> __check_object_size() calls?
The call-chain is:
__GI___libc_recvfrom
entry_SYSCALL_64_after_hwframe
do_syscall_64
__x64_sys_recvfrom
__sys_recvfrom
inet_recvmsg
udp_recvmsg
__check_object_size
udp_recvmsg() actually calls copy_to_iter() (inlined) and the latters
calls check_copy_size() (again, inlined).
Cheers,
Paolo
next parent reply other threads:[~2018-06-26 17:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAGXu5jL=aEXHKr5ouVdSKwG-y7xSQFLi=x1nwSjFspYiyKL1Pw@mail.gmail.com>
[not found] ` <64bf81fa-0363-4b46-d8da-94285b592caa@redhat.com>
[not found] ` <a48538cf40c1645669326c92d9600fc98a13a260.camel@redhat.com>
[not found] ` <CAGXu5jKHz=OaU1ejYEB=t-=Gs6gVoRywFbyQw8ThHk6WYG7Qxg@mail.gmail.com>
2018-06-26 17:14 ` Paolo Abeni [this message]
[not found] <1529939300-27461-1-git-send-email-crecklin@redhat.com>
2018-06-25 15:22 ` Christoph von Recklinghausen
2018-06-25 19:44 ` Laura Abbott
2018-06-25 22:29 ` Christoph von Recklinghausen
2018-06-25 22:35 ` Kees Cook
2018-06-25 23:17 ` Christoph von Recklinghausen
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=a8343284adff3c743121a339035d5010347a3038.camel@redhat.com \
--to=pabeni@redhat.com \
--cc=crecklin@redhat.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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