[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a8343284adff3c743121a339035d5010347a3038.camel@redhat.com>
Date: Tue, 26 Jun 2018 19:14:47 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Kees Cook <keescook@...omium.org>
Cc: Chris von Recklinghausen <crecklin@...hat.com>,
LKML <linux-kernel@...r.kernel.org>, linux-mm@...ck.org
Subject: Re: [PATCH] add param that allows bootline control of hardened
usercopy
[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@...hat.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
Powered by blists - more mailing lists