1. 22 Oct, 2018 11 commits
  2. 21 Oct, 2018 14 commits
  3. 20 Oct, 2018 15 commits
    • David Ahern's avatar
      net/ipv6: Fix index counter for unicast addresses in in6_dump_addrs · 4ba4c566
      David Ahern authored
      The loop wants to skip previously dumped addresses, so loops until
      current index >= saved index. If the message fills it wants to save
      the index for the next address to dump - ie., the one that did not
      fit in the current message.
      
      Currently, it is incrementing the index counter before comparing to the
      saved index, and then the saved index is off by 1 - it assumes the
      current address is going to fit in the message.
      
      Change the index handling to increment only after a succesful dump.
      
      Fixes: 502a2ffd ("ipv6: convert idev_list to list macros")
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4ba4c566
    • Daniel Borkmann's avatar
      Merge branch 'bpf-msg-push-data' · 2576b967
      Daniel Borkmann authored
      John Fastabend says:
      
      ====================
      This series adds a new helper bpf_msg_push_data to be used by
      sk_msg programs. The helper can be used to insert extra bytes into
      the message that can then be used by the program as metadata tags
      among other things.
      
      The first patch adds the helper, second patch the libbpf support,
      and last patch updates test_sockmap to run msg_push_data tests.
      
      v2: rebase after queue map and in filter.c convert int -> u32
      ====================
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      2576b967
    • John Fastabend's avatar
      bpf: test_sockmap add options to use msg_push_data · 84fbfe02
      John Fastabend authored
      Add options to run msg_push_data, this patch creates two more flags
      in test_sockmap that can be used to specify the offset and length
      of bytes to be added. The new options are --txmsg_start_push to
      specify where bytes should be inserted and --txmsg_end_push to
      specify how many bytes. This is analagous to the options that are
      used to pull data, --txmsg_start and --txmsg_end.
      
      In addition to adding the options tests are added to the test
      suit to run the tests similar to what was done for msg_pull_data.
      Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      84fbfe02
    • John Fastabend's avatar
      bpf: libbpf support for msg_push_data · f908d26b
      John Fastabend authored
      Add support for new bpf_msg_push_data in libbpf.
      Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      f908d26b
    • John Fastabend's avatar
      bpf: sk_msg program helper bpf_msg_push_data · 6fff607e
      John Fastabend authored
      This allows user to push data into a msg using sk_msg program types.
      The format is as follows,
      
      	bpf_msg_push_data(msg, offset, len, flags)
      
      this will insert 'len' bytes at offset 'offset'. For example to
      prepend 10 bytes at the front of the message the user can,
      
      	bpf_msg_push_data(msg, 0, 10, 0);
      
      This will invalidate data bounds so BPF user will have to then recheck
      data bounds after calling this. After this the msg size will have been
      updated and the user is free to write into the added bytes. We allow
      any offset/len as long as it is within the (data, data_end) range.
      However, a copy will be required if the ring is full and its possible
      for the helper to fail with ENOMEM or EINVAL errors which need to be
      handled by the BPF program.
      
      This can be used similar to XDP metadata to pass data between sk_msg
      layer and lower layers.
      Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      6fff607e
    • Florian Westphal's avatar
      r8169: add support for Byte Queue Limits · d92060bc
      Florian Westphal authored
      This patch is basically a resubmit of 1e918876 ("r8169: add support
      for Byte Queue Limits") which was reverted later. The problems causing
      the revert seem to have been fixed in the meantime.
      Only change to the original patch is that the call to
      netdev_reset_queue was moved to rtl8169_tx_clear.
      
      The Tested-by refers to a system using the RTL8168evl chip version.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Tested-by: default avatarHolger Hoffstätte <holger@applied-asynchrony.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d92060bc
    • Heiner Kallweit's avatar
      r8169: handle all interrupt events in the hard irq handler · 38caff5a
      Heiner Kallweit authored
      Having a separate "slow event" handler isn't needed because all
      interrupt events trigger asynchronous activity. And in case of SYSErr
      we have bigger problems than performance anyway.
      This patch also allows to get rid of acking interrupt events in the
      NAPI poll callback.
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      38caff5a
    • David S. Miller's avatar
      Merge branch 'for-upstream' of... · 342149c5
      David S. Miller authored
      Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
      
      Johan Hedberg says:
      
      ====================
      pull request: bluetooth-next 2018-10-20
      
      Here's one more bluetooth-next pull request for the 4.20 kernel.
      
       - Added new USB ID for QCA_ROME controller
       - Added debug trace support from QCA wcn3990 controllers
       - Updated L2CAP to conform to latest Errata Service Release
       - Fix binding to non-removable BCM43430 devices
      
      Please let me know if there are any issues pulling. Thanks.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      342149c5
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next · a4efbaf6
      David S. Miller authored
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter updates for net-next
      
      The following patchset contains Netfilter updates for your net-next tree:
      
      1) Use lockdep_is_held() in ipset_dereference_protected(), from Lance Roy.
      
      2) Remove unused variable in cttimeout, from YueHaibing.
      
      3) Add ttl option for nft_osf, from Fernando Fernandez Mancera.
      
      4) Use xfrm family to deal with IPv6-in-IPv4 packets from nft_xfrm,
         from Florian Westphal.
      
      5) Simplify xt_osf_match_packet().
      
      6) Missing ct helper alias definition in snmp_trap helper, from Taehee Yoo.
      
      7) Remove unnecessary parameter in nf_flow_table_cleanup(), from Taehee Yoo.
      
      8) Remove unused variable definitions in nft_{dup,fwd}, from Weongyo Jeong.
      
      9) Remove empty net/netfilter/nfnetlink_log.h file, from Taehee Yoo.
      
      10) Revert xt_quota updates remain option due to problems in the listing
          path for 32-bit arches, from Maze.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a4efbaf6
    • Greg Kroah-Hartman's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b0d04fb5
      Greg Kroah-Hartman authored
      Ingo writes:
        "x86 fixes:
      
         It's 4 misc fixes, 3 build warning fixes and 3 comment fixes.
      
         In hindsight I'd have left out the 3 comment fixes to make the pull
         request look less scary at such a late point in the cycle. :-/"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/swiotlb: Enable swiotlb for > 4GiG RAM on 32-bit kernels
        x86/fpu: Fix i486 + no387 boot crash by only saving FPU registers on context switch if there is an FPU
        x86/fpu: Remove second definition of fpu in __fpu__restore_sig()
        x86/entry/64: Further improve paranoid_entry comments
        x86/entry/32: Clear the CS high bits
        x86/boot: Add -Wno-pointer-sign to KBUILD_CFLAGS
        x86/time: Correct the attribute on jiffies' definition
        x86/entry: Add some paranoid entry/exit CR3 handling comments
        x86/percpu: Fix this_cpu_read()
        x86/tsc: Force inlining of cyc2ns bits
      b0d04fb5
    • Greg Kroah-Hartman's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 14dbc56a
      Greg Kroah-Hartman authored
      Ingo writes:
        "scheduler fixes:
      
         Two fixes: a CFS-throttling bug fix, and an interactivity fix."
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/fair: Fix the min_vruntime update logic in dequeue_entity()
        sched/fair: Fix throttle_list starvation with low CFS quota
      14dbc56a
    • Greg Kroah-Hartman's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9b00eb8a
      Greg Kroah-Hartman authored
      Ingo writes:
        "perf fixes:
      
         Misc perf tooling fixes."
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf tools: Stop fallbacking to kallsyms for vdso symbols lookup
        perf tools: Pass build flags to traceevent build
        perf report: Don't crash on invalid inline debug information
        perf cpu_map: Align cpu map synthesized events properly.
        perf tools: Fix tracing_path_mount proper path
        perf tools: Fix use of alternatives to find JDIR
        perf evsel: Store ids for events with their own cpus perf_event__synthesize_event_update_cpus
        perf vendor events intel: Fix wrong filter_band* values for uncore events
        Revert "perf tools: Fix PMU term format max value calculation"
        tools headers uapi: Sync kvm.h copy
        tools arch uapi: Sync the x86 kvm.h copy
      9b00eb8a
    • Dimitris Michailidis's avatar
      net: fix pskb_trim_rcsum_slow() with odd trim offset · d55bef50
      Dimitris Michailidis authored
      We've been getting checksum errors involving small UDP packets, usually
      59B packets with 1 extra non-zero padding byte. netdev_rx_csum_fault()
      has been complaining that HW is providing bad checksums. Turns out the
      problem is in pskb_trim_rcsum_slow(), introduced in commit 88078d98
      ("net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends").
      
      The source of the problem is that when the bytes we are trimming start
      at an odd address, as in the case of the 1 padding byte above,
      skb_checksum() returns a byte-swapped value. We cannot just combine this
      with skb->csum using csum_sub(). We need to use csum_block_sub() here
      that takes into account the parity of the start address and handles the
      swapping.
      
      Matches existing code in __skb_postpull_rcsum() and esp_remove_trailer().
      
      Fixes: 88078d98 ("net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends")
      Signed-off-by: default avatarDimitris Michailidis <dmichail@google.com>
      Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d55bef50
    • Eric Dumazet's avatar
      net: loopback: clear skb->tstamp before netif_rx() · 4c16128b
      Eric Dumazet authored
      At least UDP / TCP stacks can now cook skbs with a tstamp using
      MONOTONIC base (or arbitrary values with SCM_TXTIME)
      
      Since loopback driver does not call (directly or indirectly)
      skb_scrub_packet(), we need to clear skb->tstamp so that
      net_timestamp_check() can eventually resample the time,
      using ktime_get_real().
      
      Fixes: 80b14dee ("net: Add a new socket option for a future transmit time.")
      Fixes: fb420d5d ("tcp/fq: move back to CLOCK_MONOTONIC")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Cc: Willem de Bruijn <willemb@google.com>
      Cc: Soheil Hassas Yeganeh <soheil@google.com>
      Acked-by: default avatarSoheil Hassas Yeganeh <soheil@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4c16128b
    • Greg Kroah-Hartman's avatar
      Merge tag 'drm-fixes-2018-10-20-1' of git://anongit.freedesktop.org/drm/drm · 270b77a0
      Greg Kroah-Hartman authored
      Dave writes:
        "drm fixes for 4.19 final (part 2)
      
         Looked like two stragglers snuck in, one very urgent the pageflipping
         was missing a reference that could result in a GPF on non-i915
         drivers, the other is an overflow in the sun4i dotclock calcs
         resulting in a mode not getting set."
      
      * tag 'drm-fixes-2018-10-20-1' of git://anongit.freedesktop.org/drm/drm:
        drm/sun4i: Fix an ulong overflow in the dotclock driver
        drm: Get ref on CRTC commit object when waiting for flip_done
      270b77a0