Re: [PATCH] fanotify: Make sure to check event_len when copying

2018-12-05 Thread Jan Kara
On Wed 05-12-18 09:15:44, Amir Goldstein wrote: > On Wed, Dec 5, 2018 at 1:44 AM Kees Cook wrote: > > > > As a precaution, make sure we check event_len when copying to userspace. > > Based on old feedback: https://lkml.kernel.org/r/542d9fe5.3010...@gmx.de > > > > This precaution serves the new fa

Re: [PATCH] fanotify: Make sure to check event_len when copying

2018-12-05 Thread Jan Kara
On Tue 04-12-18 15:44:46, Kees Cook wrote: > As a precaution, make sure we check event_len when copying to userspace. > Based on old feedback: https://lkml.kernel.org/r/542d9fe5.3010...@gmx.de > > Signed-off-by: Kees Cook Thanks for the patch, I've added it to my tree.

Re: [PATCH] fanotify: Make sure to check event_len when copying

2018-12-04 Thread Amir Goldstein
On Wed, Dec 5, 2018 at 1:44 AM Kees Cook wrote: > > As a precaution, make sure we check event_len when copying to userspace. > Based on old feedback: https://lkml.kernel.org/r/542d9fe5.3010...@gmx.de > This precaution serves the new fanotify_event_info_fid format well: https://marc.info/?l=linux-