Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
K
kernel
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Commits
  • phytec
  • vm016-mx8m
  • kernel
  • Repository

Switch branch/tag
  • kernel
  • fs
  • fcntl.c
Find file
BlameHistoryPermalink
  • Jeff Layton's avatar
    fcntl: don't cap l_start and l_end values for F_GETLK64 in compat syscall · fc2f8021
    Jeff Layton authored Nov 14, 2017
    commit 4d2dc2cc upstream.
    
    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 do
    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.
    
    With this, we no longer need COMPAT_LOFF_T_MAX either, so remove it.
    
    Fixes: 94073ad7 (fs/locks: don't mess with the address limit in compat_fcntl64)
    Reported-by: default avatarVitaly Lipatov <lav@etersoft.ru>
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    fc2f8021
fcntl.c 23 KB
EditWeb IDE

Replace fcntl.c

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.