Re: [PATCH 27/38] sctp: Copy struct sctp_sock.autoclose to userspace using put_user()

2018-01-18 Thread Kees Cook
On Thu, Jan 18, 2018 at 1:31 PM, Laura Abbott wrote: > On 01/10/2018 06:02 PM, Kees Cook wrote: >> >> From: David Windsor >> >> The autoclose field can be copied with put_user(), so there is no need to >> use copy_to_user(). In both cases, hardened usercopy is being bypassed >> since the size is

Re: [PATCH 27/38] sctp: Copy struct sctp_sock.autoclose to userspace using put_user()

2018-01-18 Thread Laura Abbott
On 01/10/2018 06:02 PM, Kees Cook wrote: From: David Windsor The autoclose field can be copied with put_user(), so there is no need to use copy_to_user(). In both cases, hardened usercopy is being bypassed since the size is constant, and not open to runtime manipulation. This patch is verbatim

[PATCH 27/38] sctp: Copy struct sctp_sock.autoclose to userspace using put_user()

2018-01-10 Thread Kees Cook
From: David Windsor The autoclose field can be copied with put_user(), so there is no need to use copy_to_user(). In both cases, hardened usercopy is being bypassed since the size is constant, and not open to runtime manipulation. This patch is verbatim from Brad Spengler/PaX Team's PAX_USERCOPY