1. 22 Oct, 2018 10 commits
  2. 21 Oct, 2018 4 commits
  3. 20 Oct, 2018 13 commits
  4. 19 Oct, 2018 13 commits
    • Masami Hiramatsu's avatar
      selftests: ftrace: Add synthetic event syntax testcase · ba0e41ca
      Masami Hiramatsu authored
      Add a testcase to check the syntax and field types for
      synthetic_events interface.
      
      Link: http://lkml.kernel.org/r/153986838264.18251.16627517536956299922.stgit@devboxAcked-by: default avatarShuah Khan <shuah@kernel.org>
      Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
      Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
      ba0e41ca
    • Masami Hiramatsu's avatar
      tracing: Fix synthetic event to allow semicolon at end · a360d9e4
      Masami Hiramatsu authored
      Fix synthetic event to allow independent semicolon at end.
      
      The synthetic_events interface accepts a semicolon after the
      last word if there is no space.
      
       # echo "myevent u64 var;" >> synthetic_events
      
      But if there is a space, it returns an error.
      
       # echo "myevent u64 var ;" > synthetic_events
       sh: write error: Invalid argument
      
      This behavior is difficult for users to understand. Let's
      allow the last independent semicolon too.
      
      Link: http://lkml.kernel.org/r/153986835420.18251.2191216690677025744.stgit@devbox
      
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
      Cc: stable@vger.kernel.org
      Fixes: commit 4b147936 ("tracing: Add support for 'synthetic' events")
      Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
      Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
      a360d9e4
    • Masami Hiramatsu's avatar
      tracing: Fix synthetic event to accept unsigned modifier · 282447ba
      Masami Hiramatsu authored
      Fix synthetic event to accept unsigned modifier for its field type
      correctly.
      
      Currently, synthetic_events interface returns error for "unsigned"
      modifiers as below;
      
       # echo "myevent unsigned long var" >> synthetic_events
       sh: write error: Invalid argument
      
      This is because argv_split() breaks "unsigned long" into "unsigned"
      and "long", but parse_synth_field() doesn't expected it.
      
      With this fix, synthetic_events can handle the "unsigned long"
      correctly like as below;
      
       # echo "myevent unsigned long var" >> synthetic_events
       # cat synthetic_events
       myevent	unsigned long var
      
      Link: http://lkml.kernel.org/r/153986832571.18251.8448135724590496531.stgit@devbox
      
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
      Cc: stable@vger.kernel.org
      Fixes: commit 4b147936 ("tracing: Add support for 'synthetic' events")
      Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
      Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
      282447ba
    • David S. Miller's avatar
      Revert "bond: take rcu lock in netpoll_send_skb_on_dev" · 48995423
      David S. Miller authored
      This reverts commit 6fe94878.
      
      It is causing more serious regressions than the RCU warning
      it is fixing.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      48995423
    • Greg Kroah-Hartman's avatar
      Merge tag 'usb-4.19-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · c7b70a64
      Greg Kroah-Hartman authored
      I wrote:
        "USB fixes for 4.19-final
      
         Here are a small number of last-minute USB driver fixes
      
         Included here are:
           - spectre fix for usb storage gadgets
           - xhci fixes
           - cdc-acm fixes
           - usbip fixes for reported problems
      
         All of these have been in linux-next with no reported issues."
      
      * tag 'usb-4.19-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: gadget: storage: Fix Spectre v1 vulnerability
        USB: fix the usbfs flag sanitization for control transfers
        usb: xhci: pci: Enable Intel USB role mux on Apollo Lake platforms
        usb: roles: intel_xhci: Fix Unbalanced pm_runtime_enable
        cdc-acm: correct counting of UART states in serial state notification
        cdc-acm: do not reset notification buffer index upon urb unlinking
        cdc-acm: fix race between reset and control messaging
        usb: usbip: Fix BUG: KASAN: slab-out-of-bounds in vhci_hub_control()
        selftests: usbip: add wait after attach and before checking port status
      c7b70a64
    • Greg Kroah-Hartman's avatar
      Merge tag 'for-linus-20181019' of git://git.kernel.dk/linux-block · b2a205ff
      Greg Kroah-Hartman authored
      Jens writes:
        "Block fixes for 4.19-final
      
         Two small fixes that should go into this release."
      
      * tag 'for-linus-20181019' of git://git.kernel.dk/linux-block:
        block: don't deal with discard limit in blkdev_issue_discard()
        nvme: remove ns sibling before clearing path
      b2a205ff
    • Jens Axboe's avatar
      Merge branch 'nvme-4.20' of git://git.infradead.org/nvme into for-4.20/block · bbc15282
      Jens Axboe authored
      Pull NVMe updates from Christoph:
      
      "The second batch of updates for Linux 4.20:
       - lot of fixes for issues found by static type checkers from Bart
       - two small fixes from Keith
       - fabrics cleanups in preparation of the TCP transport from Sagi
       - more cleanups from Chaitanya"
      
      * 'nvme-4.20' of git://git.infradead.org/nvme:
        nvme-fabrics: move controller options matching to fabrics
        nvme-rdma: always have a valid trsvcid
        nvme-pci: remove duplicate check
        nvme-pci: fix hot removal during error handling
        nvmet-fcloop: suppress a compiler warning
        nvme-core: make implicit seed truncation explicit
        nvmet-fc: fix kernel-doc headers
        nvme-fc: rework the request initialization code
        nvme-fc: introduce struct nvme_fcp_op_w_sgl
        nvme-fc: fix kernel-doc headers
        nvmet: avoid integer overflow in the discard code
        nvmet-rdma: declare local symbols static
        nvmet: use strlcpy() instead of strcpy()
        nvme-pci: fix nvme_suspend_queue() kernel-doc header
        nvme-core: rework a NQN copying operation
        nvme-core: declare local symbols static
        nvmet-rdma: check for timeout in nvme_rdma_wait_for_cm()
        nvmet: use strcmp() instead of strncmp() for subsystem lookup
        nvmet: remove unreachable code
        nvme: update node paths after adding new path
      bbc15282
    • James Morse's avatar
      arm64: KVM: Guests can skip __install_bp_hardening_cb()s HYP work · 4debef55
      James Morse authored
      enable_smccc_arch_workaround_1() passes NULL as the hyp_vecs start and
      end if the HVC conduit is in use, and ARM_SMCCC_ARCH_WORKAROUND_1 is
      detected.
      
      If the guest kernel happened to be built with KVM_INDIRECT_VECTORS,
      we go on to allocate a slot, memcpy() the empty workaround in and
      do the appropriate cache maintenance.
      
      This works as we always tell memcpy() the range is 0, so it never
      accesses the NULL src pointer, but we still do the cache maintenance.
      
      If hyp_vecs_start is NULL we know we're a guest, just update the fn
      like the !KVM_INDIRECT_VECTORS version.
      Reviewed-by: default avatarJulien Thierry <julien.thierry@arm.com>
      Acked-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: default avatarJames Morse <james.morse@arm.com>
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      4debef55
    • Sagi Grimberg's avatar
      nvme-fabrics: move controller options matching to fabrics · b7c7be6f
      Sagi Grimberg authored
      IP transports will most likely use the same controller options
      matching when detecting a duplicate connect. Move it to
      fabrics.
      Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      b7c7be6f
    • Sagi Grimberg's avatar
      nvme-rdma: always have a valid trsvcid · bb59b8e5
      Sagi Grimberg authored
      If not passed, we set the default trsvcid. We can rely on having trsvcid
      and can simplify the controller matching logic.
      Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      bb59b8e5
    • Boris Brezillon's avatar
      drm/sun4i: Fix an ulong overflow in the dotclock driver · e84cb605
      Boris Brezillon authored
      The calculated ideal rate can easily overflow an unsigned long, thus
      making the best div selection buggy as soon as no ideal match is found
      before the overflow occurs.
      
      Fixes: 4731a72d ("drm/sun4i: request exact rates to our parents")
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
      Acked-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20181018100250.12565-1-boris.brezillon@bootlin.com
      e84cb605
    • Greg Kroah-Hartman's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 91b15613
      Greg Kroah-Hartman authored
      David writes:
        "Networking
      
         1) Fix gro_cells leak in xfrm layer, from Li RongQing.
      
         2) BPF selftests change RLIMIT_MEMLOCK blindly, don't do that.  From
            Eric Dumazet.
      
         3) AF_XDP calls synchronize_net() under RCU lock, fix from Björn
            Töpel.
      
         4) Out of bounds packet access in _decode_session6(), from Alexei
            Starovoitov.
      
         5) Several ethtool bugs, where we copy a struct into the kernel twice
            and our validations of the values in the first copy can be
            invalidated by the second copy due to asynchronous updates to the
            memory by the user.  From Wenwen Wang.
      
         6) Missing netlink attribute validation in cls_api, from Davide
            Caratti.
      
         7) LLC SAP sockets neet to be SOCK_RCU FREE, from Cong Wang.
      
         8) rxrpc operates on wrong kvec, from Yue Haibing.
      
         9) A regression was introduced by the disassosciation of route
            neighbour references in rt6_probe(), causing probe for
            neighbourless routes to not be properly rate limited.  Fix from
            Sabrina Dubroca.
      
         10) Unsafe RCU locking in tipc, from Tung Nguyen.
      
         11) Use after free in inet6_mc_check(), from Eric Dumazet.
      
         12) PMTU from icmp packets should update the SCTP transport pathmtu,
             from Xin Long.
      
         13) Missing peer put on error in rxrpc, from David Howells.
      
         14) Fix pedit in nfp driver, from Pieter Jansen van Vuuren.
      
         15) Fix overflowing shift statement in qla3xxx driver, from Nathan
             Chancellor.
      
         16) Fix Spectre v1 in ptp code, from Gustavo A. R. Silva.
      
         17) udp6_unicast_rcv_skb() interprets udpv6_queue_rcv_skb() return
             value in an inverted manner, fix from Paolo Abeni.
      
         18) Fix missed unresolved entries in ipmr dumps, from Nikolay
             Aleksandrov.
      
         19) Fix NAPI handling under high load, we can completely miss events
             when NAPI has to loop more than one time in a cycle.  From Heiner
             Kallweit."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (49 commits)
        ip6_tunnel: Fix encapsulation layout
        tipc: fix info leak from kernel tipc_event
        net: socket: fix a missing-check bug
        net: sched: Fix for duplicate class dump
        r8169: fix NAPI handling under high load
        net: ipmr: fix unresolved entry dumps
        net: mscc: ocelot: Fix comment in ocelot_vlant_wait_for_completion()
        sctp: fix the data size calculation in sctp_data_size
        virtio_net: avoid using netif_tx_disable() for serializing tx routine
        udp6: fix encap return code for resubmitting
        mlxsw: core: Fix use-after-free when flashing firmware during init
        sctp: not free the new asoc when sctp_wait_for_connect returns err
        sctp: fix race on sctp_id2asoc
        r8169: re-enable MSI-X on RTL8168g
        net: bpfilter: use get_pid_task instead of pid_task
        ptp: fix Spectre v1 vulnerability
        net: qla3xxx: Remove overflowing shift statement
        geneve, vxlan: Don't set exceptions if skb->len < mtu
        geneve, vxlan: Don't check skb_dst() twice
        sctp: get pr_assoc and pr_stream all status with SCTP_PR_SCTP_ALL instead
        ...
      91b15613
    • Greg Kroah-Hartman's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · 2a966610
      Greg Kroah-Hartman authored
      David writes:
        "Sparc fixes:
      
         The main bit here is fixing how fallback system calls are handled in
         the sparc vDSO.
      
         Unfortunately, I fat fingered the commit and some perf debugging
         hacks slipped into the vDSO fix, which I revert in the very next
         commit."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
        sparc: Revert unintended perf changes.
        sparc: vDSO: Silence an uninitialized variable warning
        sparc: Fix syscall fallback bugs in VDSO.
      2a966610