1. 17 May, 2023 7 commits
    • Yuya Tajima's avatar
      seg6: Cleanup duplicates of skb_dst_drop calls · fa0583c2
      Yuya Tajima authored
      In processing IPv6 segment routing header (SRH), several functions call
      skb_dst_drop before ip6_route_input. However, ip6_route_input calls
      skb_dst_drop within it, so there is no need to call skb_dst_drop in advance.
      Signed-off-by: default avatarYuya Tajima <yuya.tajimaa@gmail.com>
      Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fa0583c2
    • David S. Miller's avatar
      Merge branch 'tcp-io_uring-zc-opts' · 81cf1ade
      David S. Miller authored
      Merge branch 'tcp-io_uring-zc-opts'
      
      Pavel Begunkov says:
      
      ====================
      minor tcp io_uring zc optimisations
      
      Patch 1 is a simple cleanup, patch 2 gives removes 2 atomics from the
      io_uring zc TCP submission path, which yielded extra 0.5% for my
      throughput CPU bound tests based on liburing/examples/send-zerocopy.c
      ====================
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      81cf1ade
    • Pavel Begunkov's avatar
      net/tcp: optimise io_uring zc ubuf refcounting · a7533584
      Pavel Begunkov authored
      io_uring keeps a reference to ubuf_info during submission, so if
      tcp_sendmsg_locked() sees msghdr::msg_ubuf in can be sure the buffer
      will be kept alive and doesn't need to additionally pin it.
      Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a7533584
    • Pavel Begunkov's avatar
      net/tcp: don't peek at tail for io_uring zc · eea96a3e
      Pavel Begunkov authored
      Move tcp_write_queue_tail() to SOCK_ZEROCOPY specific flag as zerocopy
      setup for msghdr->ubuf_info doesn't need to peek into the last request.
      Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      eea96a3e
    • Jakub Kicinski's avatar
      Merge tag 'linux-can-next-for-6.5-20230515' of... · 833e24ae
      Jakub Kicinski authored
      Merge tag 'linux-can-next-for-6.5-20230515' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next
      
      Marc Kleine-Budde says:
      
      ====================
      pull-request: can-next 2023-05-15
      
      The 1st patch is by Ji-Ze Hong and adds support for the Fintek F81604
      USB-CAN adapter.
      
      Jiapeng Chong's patch removes unnecessary dev_err() functions from the
      bxcan driver.
      
      The next patch is by me an makes a CAN internal header file self
      contained.
      
      The remaining 19 patches are by Uwe Kleine-König, they all convert the
      platform driver remove callback to return void.
      
      * tag 'linux-can-next-for-6.5-20230515' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next: (22 commits)
        can: xilinx: Convert to platform remove callback returning void
        can: ti_hecc: Convert to platform remove callback returning void
        can: sun4i_can: Convert to platform remove callback returning void
        can: softing: Convert to platform remove callback returning void
        can: sja1000_platform: Convert to platform remove callback returning void
        can: sja1000_isa: Convert to platform remove callback returning void
        can: rcar: Convert to platform remove callback returning void
        can: mscan: mpc5xxx_can: Convert to platform remove callback returning void
        can: m_can: Convert to platform remove callback returning void
        can: janz-ican3: Convert to platform remove callback returning void
        can: ifi_canfd: Convert to platform remove callback returning void
        can: grcan: Convert to platform remove callback returning void
        can: flexcan: Convert to platform remove callback returning void
        can: ctucanfd: Convert to platform remove callback returning void
        can: length: make header self contained
        can: cc770_platform: Convert to platform remove callback returning void
        can: bxcan: Remove unnecessary print function dev_err()
        can: cc770_isa: Convert to platform remove callback returning void
        can: usb: f81604: add Fintek F81604 support
        can: c_can: Convert to platform remove callback returning void
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20230515205759.1003118-1-mkl@pengutronix.deSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      833e24ae
    • Jakub Kicinski's avatar
      Revert "net: Remove low_thresh in ip defrag" · e7480a44
      Jakub Kicinski authored
      This reverts commit b2cbac9b.
      
      We have multiple reports of obvious breakage from this patch.
      Reported-by: default avatarIdo Schimmel <idosch@idosch.org>
      Link: https://lore.kernel.org/all/ZGIRWjNcfqI8yY8W@shredder/
      Link: https://lore.kernel.org/all/CADJHv_sDK=0RrMA2FTZQV5fw7UQ+qY=HG21Wu5qb0V9vvx5w6A@mail.gmail.com/
      Reported-by: syzbot+a5e719ac7c268e414c95@syzkaller.appspotmail.com
      Reported-by: syzbot+a03fd670838d927d9cd8@syzkaller.appspotmail.com
      Fixes: b2cbac9b ("net: Remove low_thresh in ip defrag")
      Link: https://lore.kernel.org/r/20230517034112.1261835-1-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e7480a44
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · a0e35a64
      Jakub Kicinski authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2023-05-16
      
      We've added 57 non-merge commits during the last 19 day(s) which contain
      a total of 63 files changed, 3293 insertions(+), 690 deletions(-).
      
      The main changes are:
      
      1) Add precision propagation to verifier for subprogs and callbacks,
         from Andrii Nakryiko.
      
      2) Improve BPF's {g,s}setsockopt() handling with wrong option lengths,
         from Stanislav Fomichev.
      
      3) Utilize pahole v1.25 for the kernel's BTF generation to filter out
         inconsistent function prototypes, from Alan Maguire.
      
      4) Various dyn-pointer verifier improvements to relax restrictions,
         from Daniel Rosenberg.
      
      5) Add a new bpf_task_under_cgroup() kfunc for designated task,
         from Feng Zhou.
      
      6) Unblock tests for arm64 BPF CI after ftrace supporting direct call,
         from Florent Revest.
      
      7) Add XDP hint kfunc metadata for RX hash/timestamp for igc,
         from Jesper Dangaard Brouer.
      
      8) Add several new dyn-pointer kfuncs to ease their usability,
         from Joanne Koong.
      
      9) Add in-depth LRU internals description and dot function graph,
         from Joe Stringer.
      
      10) Fix KCSAN report on bpf_lru_list when accessing node->ref,
          from Martin KaFai Lau.
      
      11) Only dump unprivileged_bpf_disabled log warning upon write,
          from Kui-Feng Lee.
      
      12) Extend test_progs to directly passing allow/denylist file,
          from Stephen Veiss.
      
      13) Fix BPF trampoline memleak upon failure attaching to fentry,
          from Yafang Shao.
      
      14) Fix emitting struct bpf_tcp_sock type in vmlinux BTF,
          from Yonghong Song.
      
      * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next: (57 commits)
        bpf: Fix memleak due to fentry attach failure
        bpf: Remove bpf trampoline selector
        bpf, arm64: Support struct arguments in the BPF trampoline
        bpftool: JIT limited misreported as negative value on aarch64
        bpf: fix calculation of subseq_idx during precision backtracking
        bpf: Remove anonymous union in bpf_kfunc_call_arg_meta
        bpf: Document EFAULT changes for sockopt
        selftests/bpf: Correctly handle optlen > 4096
        selftests/bpf: Update EFAULT {g,s}etsockopt selftests
        bpf: Don't EFAULT for {g,s}setsockopt with wrong optlen
        libbpf: fix offsetof() and container_of() to work with CO-RE
        bpf: Address KCSAN report on bpf_lru_list
        bpf: Add --skip_encoding_btf_inconsistent_proto, --btf_gen_optimized to pahole flags for v1.25
        selftests/bpf: Accept mem from dynptr in helper funcs
        bpf: verifier: Accept dynptr mem as mem in helpers
        selftests/bpf: Check overflow in optional buffer
        selftests/bpf: Test allowing NULL buffer in dynptr slice
        bpf: Allow NULL buffers in bpf_dynptr_slice(_rw)
        selftests/bpf: Add testcase for bpf_task_under_cgroup
        bpf: Add bpf_task_under_cgroup() kfunc
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20230515225603.27027-1-daniel@iogearbox.netSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      a0e35a64
  2. 16 May, 2023 7 commits
  3. 15 May, 2023 26 commits