Skip to content
  1. Jul 21, 2017
  2. Jul 20, 2017
  3. Jul 19, 2017
    • Linus Torvalds's avatar
      Merge tag 'gcc-plugins-v4.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · e06fdaf4
      Linus Torvalds authored
      Pull structure randomization updates from Kees Cook:
       "Now that IPC and other changes have landed, enable manual markings for
        randstruct plugin, including the task_struct.
      
        This is the rest of what was staged in -next for the gcc-plugins, and
        comes in three patches, largest first:
      
         - mark "easy" structs with __randomize_layout
      
         - mark task_struct with an optional anonymous struct to isolate the
           __randomize_layout section
      
         - mark structs to opt _out_ of automated marking (which will come
           later)
      
        And, FWIW, this continues to pass allmodconfig (normal and patched to
        enable gcc-plugins) builds of x86_64, i386, arm64, arm, powerpc, and
        s390 for me"
      
      * tag 'gcc-plugins-v4.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        randstruct: opt-out externally exposed function pointer structs
        task_struct: Allow randomized layout
        randstruct: Mark various structs for randomization
      e06fdaf4
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-4.13-rc2' of git://github.com/ceph/ceph-client · a90c6ac2
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "A number of small fixes for -rc1 Luminous changes plus a readdir race
        fix, marked for stable"
      
      * tag 'ceph-for-4.13-rc2' of git://github.com/ceph/ceph-client:
        libceph: potential NULL dereference in ceph_msg_data_create()
        ceph: fix race in concurrent readdir
        libceph: don't call encode_request_finish() on MOSDBackoff messages
        libceph: use alloc_pg_mapping() in __decode_pg_upmap_items()
        libceph: set -EINVAL in one place in crush_decode()
        libceph: NULL deref on osdmap_apply_incremental() error path
        libceph: fix old style declaration warnings
      a90c6ac2
    • Shu Wang's avatar
      audit: fix memleak in auditd_send_unicast_skb. · b0659ae5
      Shu Wang authored
      
      
      Found this issue by kmemleak report, auditd_send_unicast_skb
      did not free skb if rcu_dereference(auditd_conn) returns null.
      
      unreferenced object 0xffff88082568ce00 (size 256):
      comm "auditd", pid 1119, jiffies 4294708499
      backtrace:
      [<ffffffff8176166a>] kmemleak_alloc+0x4a/0xa0
      [<ffffffff8121820c>] kmem_cache_alloc_node+0xcc/0x210
      [<ffffffff8161b99d>] __alloc_skb+0x5d/0x290
      [<ffffffff8113c614>] audit_make_reply+0x54/0xd0
      [<ffffffff8113dfa7>] audit_receive_msg+0x967/0xd70
      ----------------
      (gdb) list *audit_receive_msg+0x967
      0xffffffff8113dff7 is in audit_receive_msg (kernel/audit.c:1133).
      1132    skb = audit_make_reply(0, AUDIT_REPLACE, 0,
                                      0, &pvnr, sizeof(pvnr));
      ---------------
      [<ffffffff8113e402>] audit_receive+0x52/0xa0
      [<ffffffff8166c561>] netlink_unicast+0x181/0x240
      [<ffffffff8166c8e2>] netlink_sendmsg+0x2c2/0x3b0
      [<ffffffff816112e8>] sock_sendmsg+0x38/0x50
      [<ffffffff816117a2>] SYSC_sendto+0x102/0x190
      [<ffffffff81612f4e>] SyS_sendto+0xe/0x10
      [<ffffffff8176d337>] entry_SYSCALL_64_fastpath+0x1a/0xa5
      [<ffffffffffffffff>] 0xffffffffffffffff
      
      Signed-off-by: default avatarShu Wang <shuwang@redhat.com>
      Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
      b0659ae5
    • Dan Williams's avatar
      device-dax: fix sysfs duplicate warnings · bbb3be17
      Dan Williams authored
      Fix warnings of the form...
      
           WARNING: CPU: 10 PID: 4983 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x62/0x80
           sysfs: cannot create duplicate filename '/class/dax/dax12.0'
           Call Trace:
            dump_stack+0x63/0x86
            __warn+0xcb/0xf0
            warn_slowpath_fmt+0x5a/0x80
            ? kernfs_path_from_node+0x4f/0x60
            sysfs_warn_dup+0x62/0x80
            sysfs_do_create_link_sd.isra.2+0x97/0xb0
            sysfs_create_link+0x25/0x40
            device_add+0x266/0x630
            devm_create_dax_dev+0x2cf/0x340 [dax]
            dax_pmem_probe+0x1f5/0x26e [dax_pmem]
            nvdimm_bus_probe+0x71/0x120
      
      ...by reusing the namespace id for the device-dax instance name.
      
      Now that we have decided that there will never by more than one
      device-dax instance per libnvdimm-namespace parent device [1], we can
      directly reuse the namepace ids. There are some possible follow-on
      cleanups, but those are saved for a later patch to simplify the -stable
      backport.
      
      [1]: https://lists.01.org/pipermail/linux-nvdimm/2016-December/008266.html
      
      
      
      Fixes: 98a29c39 ("libnvdimm, namespace: allow creation of multiple pmem...")
      Cc: Jeff Moyer <jmoyer@redhat.com>
      Cc: <stable@vger.kernel.org>
      Reported-by: default avatarDariusz Dokupil <dariusz.dokupil@intel.com>
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      bbb3be17
    • Linus Torvalds's avatar
      Merge tag 'md/4.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md · 74cbd96b
      Linus Torvalds authored
      Pull MD fixes from Shaohua Li:
      
       - raid5-ppl fix by Artur. This one is introduced in this release cycle.
      
       - raid5 reshape fix by Xiao. This is an old bug and will be added to
         stable.
      
       - bitmap fix by Guoqing.
      
      * tag 'md/4.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md:
        raid5-ppl: use BIOSET_NEED_BVECS when creating bioset
        Raid5 should update rdev->sectors after reshape
        md/bitmap: don't read page from device with Bitmap_sync
      74cbd96b
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma · bef85bd7
      Linus Torvalds authored
      Pull rdma fixes from Doug Ledford:
       "First set of -rc fixes for 4.13 cycle:
      
         - misc iSER fixes
      
         - namespace fixups
      
         - fix the fact that IPoIB didn't use the proper API for noio mem allocs
      
         - rxe driver fixes
      
         - hns_roce fixes
      
         - misc core fixes
      
         - misc IPoIB fixes"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (27 commits)
        IB/core: Allow QP state transition from reset to error
        IB/hns: Fix for checkpatch.pl comment style warnings
        IB/hns: Fix the bug with modifying the MAC address without removing the driver
        IB/hns: Fix the bug with rdma operation
        IB/hns: Fix the bug with wild pointer when destroy rc qp
        IB/hns: Fix the bug of polling cq failed for loopback Qps
        IB/rxe: Set dma_mask and coherent_dma_mask
        IB/rxe: Fix kernel panic from skb destructor
        IB/ipoib: Let lower driver handle get_stats64 call
        IB/core: Add ordered workqueue for RoCE GID management
        IB/mlx5: Clean mr_cache debugfs in case of failure
        IB/core: Remove NOIO QP create flag
        {net, IB}/mlx4: Remove gfp flags argument
        IB/{rdmavt, qib, hfi1}: Remove gfp flags argument
        IB/IPoIB: Convert IPoIB to memalloc_noio_* calls
        IB/IPoIB: Forward MTU change to driver below
        IB: Convert msleep below 20ms to usleep_range
        IB/uverbs: Make use of ib_modify_qp variant to avoid resolving DMAC
        IB/core: Introduce modify QP operation with udata
        IB/core: Don't resolve IP address to the loopback device
        ...
      bef85bd7
    • Linus Torvalds's avatar
      Merge tag 'nfsd-4.13-1' of git://linux-nfs.org/~bfields/linux · 15b0a8d1
      Linus Torvalds authored
      Pull nfsd fix from Bruce Fields:
       "One fix for a problem introduced in the most recent merge window and
        found by Dave Jones and KASAN"
      
      * tag 'nfsd-4.13-1' of git://linux-nfs.org/~bfields/linux:
        nfsd: Fix a memory scribble in the callback channel
      15b0a8d1
  4. Jul 18, 2017