1. 01 12月, 2018 37 次提交
  2. 27 11月, 2018 3 次提交
    • G
      Linux 4.19.5 · b32d16ec
      Greg Kroah-Hartman 提交于
      b32d16ec
    • L
      mt76x0: run vco calibration for each channel configuration · 0d981331
      Lorenzo Bianconi 提交于
      commit 473f0a763d2c7cd68a6dedf51e7d81e8f58f78ac upstream.
      
      According to vendor sdk, vco calibration has to be executed
      for each channel configuration whereas mcu calibration has to be
      performed during channel scanning. This patch fixes the mt76x0
      monitor mode issue since in that configuration vco calibration
      was never executed
      
      Fixes: 10de7a8b ("mt76x0: phy files")
      Tested-by: NSid Hayn <sidhayn@gmail.com>
      Signed-off-by: NLorenzo Bianconi <lorenzo.bianconi@redhat.com>
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      Cc: Stanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0d981331
    • I
      libceph: fall back to sendmsg for slab pages · 02e28d5b
      Ilya Dryomov 提交于
      commit 7e241f647dc7087a0401418a187f3f5b527cc690 upstream.
      
      skb_can_coalesce() allows coalescing neighboring slab objects into
      a single frag:
      
        return page == skb_frag_page(frag) &&
               off == frag->page_offset + skb_frag_size(frag);
      
      ceph_tcp_sendpage() can be handed slab pages.  One example of this is
      XFS: it passes down sector sized slab objects for its metadata I/O.  If
      the kernel client is co-located on the OSD node, the skb may go through
      loopback and pop on the receive side with the exact same set of frags.
      When tcp_recvmsg() attempts to copy out such a frag, hardened usercopy
      complains because the size exceeds the object's allocated size:
      
        usercopy: kernel memory exposure attempt detected from ffff9ba917f20a00 (kmalloc-512) (1024 bytes)
      
      Although skb_can_coalesce() could be taught to return false if the
      resulting frag would cross a slab object boundary, we already have
      a fallback for non-refcounted pages.  Utilize it for slab pages too.
      
      Cc: stable@vger.kernel.org # 4.8+
      Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      02e28d5b