Skip to content
Snippets Groups Projects
  1. May 14, 2019
  2. May 09, 2019
  3. May 08, 2019
  4. May 07, 2019
    • Sascha Hauer's avatar
      ubifs: Remove #ifdef around CONFIG_FS_ENCRYPTION · eea2c05d
      Sascha Hauer authored
      
      ifdefs reduce readablity and compile coverage. This removes the ifdefs
      around CONFIG_FS_ENCRYPTION by using IS_ENABLED and relying on static
      inline wrappers. A new static inline wrapper for setting sb->s_cop is
      introduced to allow filesystems to unconditionally compile in their
      s_cop operations.
      
      Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      eea2c05d
    • Pieter Jansen van Vuuren's avatar
      net/sched: remove block pointer from common offload structure · d6787147
      Pieter Jansen van Vuuren authored
      
      Based on feedback from Jiri avoid carrying a pointer to the tcf_block
      structure in the tc_cls_common_offload structure. Instead store
      a flag in driver private data which indicates if offloads apply
      to a shared block at block binding time.
      
      Suggested-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
      Reviewed-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d6787147
    • Parav Pandit's avatar
      vfio/mdev: Drop redundant extern for exported symbols · 50732af3
      Parav Pandit authored
      
      There is no need use 'extern' for exported functions.
      
      Acked-by: default avatarCornelia Huck <cohuck@redhat.com>
      Reviewed-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
      Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
      Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      50732af3
    • Joe Gorse's avatar
      afs: implement acl setting · b10494af
      Joe Gorse authored
      
      Implements the setting of ACLs in AFS by means of setting the
      afs.acl extended attribute on the file.
      
      Signed-off-by: default avatarJoe Gorse <jhgorse@gmail.com>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      b10494af
    • David Howells's avatar
      afs: Get an AFS3 ACL as an xattr · 260f082b
      David Howells authored
      
      Implement an xattr on AFS files called "afs.acl" that retrieves a file's
      ACL.  It returns the raw AFS3 ACL from the result of calling FS.FetchACL,
      leaving any interpretation to userspace.
      
      Note that whilst YFS servers will respond to FS.FetchACL, this will render
      a more-advanced YFS ACL down.  Use "afs.yfs.acl" instead for that.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      260f082b
    • Gal Pressman's avatar
      lib/scatterlist: Remove leftover from sg_page_iter comment · d2c4ada1
      Gal Pressman authored
      
      Commit d901b276 ("lib/scatterlist: Provide a DMA page iterator") added
      the sg DMA iterator but a leftover remained in the sg_page_iter
      documentation as you cannot get the page dma address (only the page
      itself), fix it.
      
      Signed-off-by: default avatarGal Pressman <galpress@amazon.com>
      Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      d2c4ada1
    • Christoph Hellwig's avatar
      block: fix mismerge in bvec_advance · b8753433
      Christoph Hellwig authored
      
      When Jens merged my commit to only allow contiguous page structs in a
      bio_vec with Ming's 5.1 fix to ensue the bvec length didn't overflow
      we failed to keep the removal of the expensive nth_page calls.  This
      commits adds them back as intended.
      
      Fixes: 5c61ee2c ("Merge tag 'v5.1-rc6' into for-5.2/block")
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      b8753433
    • Alexey Gladkov's avatar
      moduleparam: Save information about built-in modules in separate file · 898490c0
      Alexey Gladkov authored
      
      Problem:
      
      When a kernel module is compiled as a separate module, some important
      information about the kernel module is available via .modinfo section of
      the module.  In contrast, when the kernel module is compiled into the
      kernel, that information is not available.
      
      Information about built-in modules is necessary in the following cases:
      
      1. When it is necessary to find out what additional parameters can be
      passed to the kernel at boot time.
      
      2. When you need to know which module names and their aliases are in
      the kernel. This is very useful for creating an initrd image.
      
      Proposal:
      
      The proposed patch does not remove .modinfo section with module
      information from the vmlinux at the build time and saves it into a
      separate file after kernel linking. So, the kernel does not increase in
      size and no additional information remains in it. Information is stored
      in the same format as in the separate modules (null-terminated string
      array). Because the .modinfo section is already exported with a separate
      modules, we are not creating a new API.
      
      It can be easily read in the userspace:
      
      $ tr '\0' '\n' < modules.builtin.modinfo
      ext4.softdep=pre: crc32c
      ext4.license=GPL
      ext4.description=Fourth Extended Filesystem
      ext4.author=Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others
      ext4.alias=fs-ext4
      ext4.alias=ext3
      ext4.alias=fs-ext3
      ext4.alias=ext2
      ext4.alias=fs-ext2
      md_mod.alias=block-major-9-*
      md_mod.alias=md
      md_mod.description=MD RAID framework
      md_mod.license=GPL
      md_mod.parmtype=create_on_open:bool
      md_mod.parmtype=start_dirty_degraded:int
      ...
      
      Co-Developed-by: default avatarGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
      Signed-off-by: default avatarGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
      Signed-off-by: default avatarAlexey Gladkov <gladkov.alexey@gmail.com>
      Acked-by: default avatarJessica Yu <jeyu@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      898490c0
    • Christian Brauner's avatar
      clone: add CLONE_PIDFD · b3e58382
      Christian Brauner authored
      
      This patchset makes it possible to retrieve pid file descriptors at
      process creation time by introducing the new flag CLONE_PIDFD to the
      clone() system call.  Linus originally suggested to implement this as a
      new flag to clone() instead of making it a separate system call.  As
      spotted by Linus, there is exactly one bit for clone() left.
      
      CLONE_PIDFD creates file descriptors based on the anonymous inode
      implementation in the kernel that will also be used to implement the new
      mount api.  They serve as a simple opaque handle on pids.  Logically,
      this makes it possible to interpret a pidfd differently, narrowing or
      widening the scope of various operations (e.g. signal sending).  Thus, a
      pidfd cannot just refer to a tgid, but also a tid, or in theory - given
      appropriate flag arguments in relevant syscalls - a process group or
      session. A pidfd does not represent a privilege.  This does not imply it
      cannot ever be that way but for now this is not the case.
      
      A pidfd comes with additional information in fdinfo if the kernel supports
      procfs.  The fdinfo file contains the pid of the process in the callers
      pid namespace in the same format as the procfs status file, i.e. "Pid:\t%d".
      
      As suggested by Oleg, with CLONE_PIDFD the pidfd is returned in the
      parent_tidptr argument of clone.  This has the advantage that we can
      give back the associated pid and the pidfd at the same time.
      
      To remove worries about missing metadata access this patchset comes with
      a sample program that illustrates how a combination of CLONE_PIDFD, and
      pidfd_send_signal() can be used to gain race-free access to process
      metadata through /proc/<pid>.  The sample program can easily be
      translated into a helper that would be suitable for inclusion in libc so
      that users don't have to worry about writing it themselves.
      
      Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarChristian Brauner <christian@brauner.io>
      Co-developed-by: default avatarJann Horn <jannh@google.com>
      Signed-off-by: default avatarJann Horn <jannh@google.com>
      Reviewed-by: default avatarOleg Nesterov <oleg@redhat.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: David Howells <dhowells@redhat.com>
      Cc: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
      Cc: Andy Lutomirsky <luto@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Aleksa Sarai <cyphar@cyphar.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      b3e58382
  5. May 06, 2019
Loading