lkml.org 
[lkml]   [2017]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fcntl: don't cap l_start and l_end values for F_GETLK64 in compat syscall
Jeff Layton писал 15.11.17 16:17:
> From: Jeff Layton <jlayton@redhat.com>
>
> Currently, we're capping the values too low in the F_GETLK64 case. The
> fields in that structure are 64-bit values, so we shouldn't need to any
> sort of fixup there.
>
> Make sure we check that assumption at build time in the future however
> by ensuring that the sizes we're copying will fit.
Nice fix.
The only question I do not know answer is what is purpose of
COMPAT_LOFF_T_MAX macro?

--
С уважением,
Виталий Липатов,
Etersoft

\
 
 \ /
  Last update: 2017-11-15 14:37    [W:0.032 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site