Skip to content
  1. Dec 13, 2022
    • Firo Yang's avatar
      sctp: sysctl: make extra pointers netns aware · da05cecc
      Firo Yang authored
      Recently, a customer reported that from their container whose
      net namespace is different to the host's init_net, they can't set
      the container's net.sctp.rto_max to any value smaller than
      init_net.sctp.rto_min.
      
      For instance,
      Host:
      sudo sysctl net.sctp.rto_min
      net.sctp.rto_min = 1000
      
      Container:
      echo 100 > /mnt/proc-net/sctp/rto_min
      echo 400 > /mnt/proc-net/sctp/rto_max
      echo: write error: Invalid argument
      
      This is caused by the check made from this'commit 4f3fdf3b
      ("sctp: add check rto_min and rto_max in sysctl")'
      When validating the input value, it's always referring the boundary
      value set for the init_net namespace.
      
      Having container's rto_max smaller than host's init_net.sctp.rto_min
      does make sense. Consider that the rto between two containers on the
      same host is very likely smaller than it for two hosts.
      
      So to fix this problem, as suggested by Marcelo, this patch makes the
      extra pointers of rto_min, rto_max, pf_retrans, and ps_retrans point
      to the corresponding variables from the newly created net namespace while
      the new net namespace is being registered in sctp_sysctl_net_register.
      
      Fixes: 4f3fdf3b
      
       ("sctp: add check rto_min and rto_max in sysctl")
      Reviewed-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
      Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
      Acked-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
      Signed-off-by: default avatarFiro Yang <firo.yang@suse.com>
      Link: https://lore.kernel.org/r/20221209054854.23889-1-firo.yang@suse.com
      
      
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      da05cecc
    • Roger Quadros's avatar
      net: ethernet: ti: am65-cpsw: Fix PM runtime leakage in am65_cpsw_nuss_ndo_slave_open() · 5821504f
      Roger Quadros authored
      
      
      Ensure pm_runtime_put() is issued in error path.
      
      Reported-by: default avatarJakub Kicinski <kuba@kernel.org>
      Fixes: 93a76530
      
       ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
      Signed-off-by: default avatarRoger Quadros <rogerq@kernel.org>
      Reviewed-by: default avatarSaeed Mahameed <saeed@kernel.org>
      Link: https://lore.kernel.org/r/20221208105534.63709-1-rogerq@kernel.org
      
      
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      5821504f
    • Jakub Kicinski's avatar
      Merge tag 'wireless-next-2022-12-12' of... · fba119ce
      Jakub Kicinski authored
      Merge tag 'wireless-next-2022-12-12' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next
      
      Kalle Valo says:
      
      ====================
      wireless-next patches for v6.2
      
      Fourth set of patches for v6.2. Few final patches, a big change is
      that rtw88 now has USB support.
      
      Major changes:
      
      rtw88
       * support USB devices rtw8821cu, rtw8822bu, rtw8822cu and rtw8723du
      
      * tag 'wireless-next-2022-12-12' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next: (43 commits)
        wifi: rtl8xxxu: fixing IQK failures for rtl8192eu
        wifi: rtlwifi: btcoexist: fix conditions branches that are never executed
        wifi: rtlwifi: rtl8192se: remove redundant rtl_get_bbreg() call
        wifi: rtw88: Add rtw8723du chipset support
        wifi: rtw88: Add rtw8822cu chipset support
        wifi: rtw88: Add rtw8822bu chipset support
        wifi: rtw88: Add rtw8821cu chipset support
        wifi: rtw88: Add common USB chip support
        wifi: rtw88: iterate over vif/sta list non-atomically
        wifi: rtw88: Drop coex mutex
        wifi: rtw88: Drop h2c.lock
        wifi: rtw88: Drop rf_lock
        wifi: rtw88: Call rtw_fw_beacon_filter_config() with rtwdev->mutex held
        wifi: rtw88: print firmware type in info message
        wifi: rtw89: add join info upon create interface
        wifi: rtw89: fix unsuccessful interface_add flow
        wifi: rtw89: stop mac port function when stop_ap()
        wifi: rtw89: add mac TSF sync function
        wifi: rtw89: request full firmware only once if it's early requested
        wifi: rtw89: don't request partial firmware if SECURITY_LOADPIN_ENFORCE
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20221212093026.5C5AEC433D2@smtp.kernel.org
      
      
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      fba119ce
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · 26f708a2
      Jakub Kicinski authored
      Alexei Starovoitov says:
      
      ====================
      pull-request: bpf-next 2022-12-11
      
      We've added 74 non-merge commits during the last 11 day(s) which contain
      a total of 88 files changed, 3362 insertions(+), 789 deletions(-).
      
      The main changes are:
      
      1) Decouple prune and jump points handling in the verifier, from Andrii.
      
      2) Do not rely on ALLOW_ERROR_INJECTION for fmod_ret, from Benjamin.
         Merged from hid tree.
      
      3) Do not zero-extend kfunc return values. Necessary fix for 32-bit archs,
         from Björn.
      
      4) Don't use rcu_users to refcount in task kfuncs, from David.
      
      5) Three reg_state->id fixes in the verifier, from Eduard.
      
      6) Optimize bpf_mem_alloc by reusing elements from free_by_rcu, from Hou.
      
      7) Refactor dynptr handling in the verifier, from Kumar.
      
      8) Remove the "/sys" mount and umount dance in {open,close}_netns
        in bpf selftests, from Martin.
      
      9) Enable sleepable support for cgrp local storage, from Yonghong.
      
      * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next: (74 commits)
        selftests/bpf: test case for relaxed prunning of active_lock.id
        selftests/bpf: Add pruning test case for bpf_spin_lock
        bpf: use check_ids() for active_lock comparison
        selftests/bpf: verify states_equal() maintains idmap across all frames
        bpf: states_equal() must build idmap for all function frames
        selftests/bpf: test cases for regsafe() bug skipping check_id()
        bpf: regsafe() must not skip check_ids()
        docs/bpf: Add documentation for BPF_MAP_TYPE_SK_STORAGE
        selftests/bpf: Add test for dynptr reinit in user_ringbuf callback
        bpf: Use memmove for bpf_dynptr_{read,write}
        bpf: Move PTR_TO_STACK alignment check to process_dynptr_func
        bpf: Rework check_func_arg_reg_off
        bpf: Rework process_dynptr_func
        bpf: Propagate errors from process_* checks in check_func_arg
        bpf: Refactor ARG_PTR_TO_DYNPTR checks into process_dynptr_func
        bpf: Skip rcu_barrier() if rcu_trace_implies_rcu_gp() is true
        bpf: Reuse freed element in free_by_rcu during allocation
        selftests/bpf: Bring test_offload.py back to life
        bpf: Fix comment error in fixup_kfunc_call function
        bpf: Do not zero-extend kfunc return values
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20221212024701.73809-1-alexei.starovoitov@gmail.com
      
      
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      26f708a2
  2. Dec 12, 2022