1. Jan 05, 2019
  2. Dec 10, 2018
    • Chanho Min's avatar
      exec: make prepare_bprm_creds static · 4addd264
      Chanho Min authored
      
      
      prepare_bprm_creds is not used outside exec.c, so there's no reason for it
      to have external linkage.
      
      Signed-off-by: default avatarChanho Min <chanho.min@lge.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      4addd264
    • Al Viro's avatar
      genheaders: %-<width>s had been there since v6; %-*s - since v7 · a40612ef
      Al Viro authored
      
      
      Please, use at least K&R C; printf had been able to left-adjust
      a field for as long as stdio existed and use of '*' for variable
      width had been there since v7.  Yes, the first edition of K&R
      didn't cover the latter feature (it slightly predates v7), but
      you are using a much later feature of the language than that -
      in K&R C
      static char *stoupperx(const char *s)
      {
      ...
      }
      would've been spelled as
      static char *stoupperx(s)
      char *s;
      {
      ...
      }
      
      While we are at it, the use of strstr() is bogus - it finds the
      _first_ instance of substring, so it's a lousy fit for checking
      if a string ends with given suffix...
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      a40612ef
  3. Nov 30, 2018
    • NeilBrown's avatar
      VFS: use synchronize_rcu_expedited() in namespace_unlock() · 22cb7405
      NeilBrown authored
      
      
      The synchronize_rcu() in namespace_unlock() is called every time
      a filesystem is unmounted.  If a great many filesystems are mounted,
      this can cause a noticable slow-down in, for example, system shutdown.
      
      The sequence:
        mkdir -p /tmp/Mtest/{0..5000}
        time for i in /tmp/Mtest/*; do mount -t tmpfs tmpfs $i ; done
        time umount /tmp/Mtest/*
      
      on a 4-cpu VM can report 8 seconds to mount the tmpfs filesystems, and
      100 seconds to unmount them.
      
      Boot the same VM with 1 CPU and it takes 18 seconds to mount the
      tmpfs filesystems, but only 36 to unmount.
      
      If we change the synchronize_rcu() to synchronize_rcu_expedited()
      the umount time on a 4-cpu VM drop to 0.6 seconds
      
      I think this 200-fold speed up is worth the slightly high system
      impact of using synchronize_rcu_expedited().
      
      Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> (from general rcu perspective)
      Signed-off-by: default avatarNeilBrown <neilb@suse.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      22cb7405
  4. Nov 28, 2018
  5. Nov 26, 2018
  6. Nov 23, 2018
    • Pan Bian's avatar
      exportfs: do not read dentry after free · 2084ac6c
      Pan Bian authored
      The function dentry_connected calls dput(dentry) to drop the previously
      acquired reference to dentry. In this case, dentry can be released.
      After that, IS_ROOT(dentry) checks the condition
      (dentry == dentry->d_parent), which may result in a use-after-free bug.
      This patch directly compares dentry with its parent obtained before
      dropping the reference.
      
      Fixes: a056cc89
      
      ("exportfs: stop retrying once we race with
      rename/remove")
      
      Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      2084ac6c
  7. Nov 19, 2018
  8. Nov 17, 2018
  9. Nov 10, 2018
  10. Nov 05, 2018
    • Linus Torvalds's avatar
      Linux 4.20-rc1 · 65102238
      Linus Torvalds authored
      65102238
    • Linus Torvalds's avatar
      Merge tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs · 42bd06e9
      Linus Torvalds authored
      Pull UBIFS updates from Richard Weinberger:
      
       - Full filesystem authentication feature, UBIFS is now able to have the
         whole filesystem structure authenticated plus user data encrypted and
         authenticated.
      
       - Minor cleanups
      
      * tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs: (26 commits)
        ubifs: Remove unneeded semicolon
        Documentation: ubifs: Add authentication whitepaper
        ubifs: Enable authentication support
        ubifs: Do not update inode size in-place in authenticated mode
        ubifs: Add hashes and HMACs to default filesystem
        ubifs: authentication: Authenticate super block node
        ubifs: Create hash for default LPT
        ubfis: authentication: Authenticate master node
        ubifs: authentication: Authenticate LPT
        ubifs: Authenticate replayed journal
        ubifs: Add auth nodes to garbage collector journal head
        ubifs: Add authentication nodes to journal
        ubifs: authentication: Add hashes to index nodes
        ubifs: Add hashes to the tree node cache
        ubifs: Create functions to embed a HMAC in a node
        ubifs: Add helper functions for authentication support
        ubifs: Add separate functions to init/crc a node
        ubifs: Format changes for authentication support
        ubifs: Store read superblock node
        ubifs: Drop write_node
        ...
      42bd06e9
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 4710e789
      Linus Torvalds authored
      Pull NFS client bugfixes from Trond Myklebust:
       "Highlights include:
      
        Bugfix:
         - Fix build issues on architectures that don't provide 64-bit cmpxchg
      
        Cleanups:
         - Fix a spelling mistake"
      
      * tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        NFS: fix spelling mistake, EACCESS -> EACCES
        SUNRPC: Use atomic(64)_t for seq_send(64)
      4710e789
    • Linus Torvalds's avatar
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 35e74524
      Linus Torvalds authored
      Pull more timer updates from Thomas Gleixner:
       "A set of commits for the new C-SKY architecture timers"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        dt-bindings: timer: gx6605s SOC timer
        clocksource/drivers/c-sky: Add gx6605s SOC system timer
        dt-bindings: timer: C-SKY Multi-processor timer
        clocksource/drivers/c-sky: Add C-SKY SMP timer
      35e74524
    • Linus Torvalds's avatar
      Merge tag 'ntb-4.20' of git://github.com/jonmason/ntb · 04578e84
      Linus Torvalds authored
      Pull NTB updates from Jon Mason:
       "Fairly minor changes and bug fixes:
      
        NTB IDT thermal changes and hook into hwmon, ntb_netdev clean-up of
        private struct, and a few bug fixes"
      
      * tag 'ntb-4.20' of git://github.com/jonmason/ntb:
        ntb: idt: Alter the driver info comments
        ntb: idt: Discard temperature sensor IRQ handler
        ntb: idt: Add basic hwmon sysfs interface
        ntb: idt: Alter temperature read method
        ntb_netdev: Simplify remove with client device drvdata
        NTB: transport: Try harder to alloc an aligned MW buffer
        ntb: ntb_transport: Mark expected switch fall-throughs
        ntb: idt: Set PCIe bus address to BARLIMITx
        NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks
        ntb: intel: fix return value for ndev_vec_mask()
        ntb_netdev: fix sleep time mismatch
      04578e84
  11. Nov 04, 2018