1. 12 Nov, 2022 2 commits
    • Wei Yongjun's avatar
      net: bgmac: Drop free_netdev() from bgmac_enet_remove() · 6f928ab8
      Wei Yongjun authored
      netdev is allocated in bgmac_alloc() with devm_alloc_etherdev() and will
      be auto released in ->remove and ->probe failure path. Using free_netdev()
      in bgmac_enet_remove() leads to double free.
      
      Fixes: 34a5102c ("net: bgmac: allocate struct bgmac just once & don't copy it")
      Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
      
      Link: https://lore.kernel.org/r/20221109150136.2991171-1-weiyongjun@huaweicloud.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      6f928ab8
    • Jakub Kicinski's avatar
      Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · c1754bf0
      Jakub Kicinski authored
      Andrii Nakryiko says:
      
      ====================
      bpf 2022-11-11
      
      We've added 11 non-merge commits during the last 8 day(s) which contain
      a total of 11 files changed, 83 insertions(+), 74 deletions(-).
      
      The main changes are:
      
      1) Fix strncpy_from_kernel_nofault() to prevent out-of-bounds writes,
         from Alban Crequy.
      
      2) Fix for bpf_prog_test_run_skb() to prevent wrong alignment,
         from Baisong Zhong.
      
      3) Switch BPF_DISPATCHER to static_call() instead of ftrace infra, with
         a small build fix on top, from Peter Zijlstra and Nathan Chancellor.
      
      4) Fix memory leak in BPF verifier in some error cases, from Wang Yufen.
      
      5) 32-bit compilation error fixes for BPF selftests, from Pu Lehui and
         Yang Jihong.
      
      6) Ensure even distribution of per-CPU free list elements, from Xu Kuohai.
      
      7) Fix copy_map_value() to track special zeroed out areas properly,
         from Xu Kuohai.
      
      * https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf:
        bpf: Fix offset calculation error in __copy_map_value and zero_map_value
        bpf: Initialize same number of free nodes for each pcpu_freelist
        selftests: bpf: Add a test when bpf_probe_read_kernel_str() returns EFAULT
        maccess: Fix writing offset in case of fault in strncpy_from_kernel_nofault()
        selftests/bpf: Fix test_progs compilation failure in 32-bit arch
        selftests/bpf: Fix casting error when cross-compiling test_verifier for 32-bit platforms
        bpf: Fix memory leaks in __check_func_call
        bpf: Add explicit cast to 'void *' for __BPF_DISPATCHER_UPDATE()
        bpf: Convert BPF_DISPATCHER to use static_call() (not ftrace)
        bpf: Revert ("Fix dispatcher patchable function entry to 5 bytes nop")
        bpf, test_run: Fix alignment problem in bpf_prog_test_run_skb()
      ====================
      
      Link: https://lore.kernel.org/r/20221111231624.938829-1-andrii@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      c1754bf0
  2. 11 Nov, 2022 10 commits
  3. 10 Nov, 2022 21 commits
  4. 09 Nov, 2022 7 commits