1. 20 Oct, 2023 32 commits
  2. 19 Oct, 2023 8 commits
    • Jakub Kicinski's avatar
      Merge branch 'tools-ynl-gen-support-full-range-of-min-max-checks' · 7ce69360
      Jakub Kicinski authored
      Jakub Kicinski says:
      
      ====================
      tools: ynl-gen: support full range of min/max checks
      
      YNL code gen currently supports only very simple range checks
      within the range of s16. Add support for full range of u64 / s64
      which is good to have, and will be even more important with uint / sint.
      ====================
      
      Link: https://lore.kernel.org/r/20231018163917.2514503-1-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      7ce69360
    • Jakub Kicinski's avatar
      tools: ynl-gen: support limit names · f9bc3cbc
      Jakub Kicinski authored
      Support the use of symbolic names like s8-min or u32-max in checks
      to make writing specs less painful.
      
      Link: https://lore.kernel.org/r/20231018163917.2514503-4-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      f9bc3cbc
    • Jakub Kicinski's avatar
      tools: ynl-gen: support full range of min/max checks for integer values · 668c1ac8
      Jakub Kicinski authored
      Extend the support to full range of min/max checks.
      None of the existing YNL families required complex integer validation.
      
      The support is less than trivial, because we try to keep struct nla_policy
      tiny the min/max members it holds in place are s16. Meaning we can only
      express checks in range of s16. For larger ranges we need to define
      a structure and link it in the policy.
      
      Link: https://lore.kernel.org/r/20231018163917.2514503-3-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      668c1ac8
    • Jakub Kicinski's avatar
      tools: ynl-gen: track attribute use · ee0a4cfc
      Jakub Kicinski authored
      For range validation we'll need to know if any individual
      attribute is used on input (i.e. whether we will generate
      a policy for it). Track this information.
      
      Link: https://lore.kernel.org/r/20231018163917.2514503-2-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      ee0a4cfc
    • Dan Carpenter's avatar
      ptp: prevent string overflow · 75a384ce
      Dan Carpenter authored
      The ida_alloc_max() function can return up to INT_MAX so this buffer is
      not large enough.  Also use snprintf() for extra safety.
      
      Fixes: 403376dd ("ptp: add debugfs interface to see applied channel masks")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
      Reviewed-by: default avatarPrzemek Kitszel <przemyslaw.kitszel@intel.com>
      Link: https://lore.kernel.org/r/d4b1a995-a0cb-4125-aa1d-5fd5044aba1d@moroto.mountainSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      75a384ce
    • Jakub Kicinski's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 041c3466
      Jakub Kicinski authored
      Cross-merge networking fixes after downstream PR.
      
      net/mac80211/key.c
        02e0e426 ("wifi: mac80211: fix error path key leak")
        2a8b665e ("wifi: mac80211: remove key_mtx")
        7d6904bf ("Merge wireless into wireless-next")
      https://lore.kernel.org/all/20231012113648.46eea5ec@canb.auug.org.au/
      
      Adjacent changes:
      
      drivers/net/ethernet/ti/Kconfig
        a602ee31 ("net: ethernet: ti: Fix mixed module-builtin object")
        98bdeae9 ("net: cpmac: remove driver to prepare for platform removal")
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      041c3466
    • Linus Torvalds's avatar
      Merge tag 'net-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · ce55c22e
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from bluetooth, netfilter, WiFi.
      
        Feels like an up-tick in regression fixes, mostly for older releases.
        The hfsc fix, tcp_disconnect() and Intel WWAN fixes stand out as
        fairly clear-cut user reported regressions. The mlx5 DMA bug was
        causing strife for 390x folks. The fixes themselves are not
        particularly scary, tho. No open investigations / outstanding reports
        at the time of writing.
      
        Current release - regressions:
      
         - eth: mlx5: perform DMA operations in the right locations, make
           devices usable on s390x, again
      
         - sched: sch_hfsc: upgrade 'rt' to 'sc' when it becomes a inner
           curve, previous fix of rejecting invalid config broke some scripts
      
         - rfkill: reduce data->mtx scope in rfkill_fop_open, avoid deadlock
      
         - revert "ethtool: Fix mod state of verbose no_mask bitset", needs
           more work
      
        Current release - new code bugs:
      
         - tcp: fix listen() warning with v4-mapped-v6 address
      
        Previous releases - regressions:
      
         - tcp: allow tcp_disconnect() again when threads are waiting, it was
           denied to plug a constant source of bugs but turns out .NET depends
           on it
      
         - eth: mlx5: fix double-free if buffer refill fails under OOM
      
         - revert "net: wwan: iosm: enable runtime pm support for 7560", it's
           causing regressions and the WWAN team at Intel disappeared
      
         - tcp: tsq: relax tcp_small_queue_check() when rtx queue contains a
           single skb, fix single-stream perf regression on some devices
      
        Previous releases - always broken:
      
         - Bluetooth:
            - fix issues in legacy BR/EDR PIN code pairing
            - correctly bounds check and pad HCI_MON_NEW_INDEX name
      
         - netfilter:
            - more fixes / follow ups for the large "commit protocol" rework,
              which went in as a fix to 6.5
            - fix null-derefs on netlink attrs which user may not pass in
      
         - tcp: fix excessive TLP and RACK timeouts from HZ rounding (bless
           Debian for keeping HZ=250 alive)
      
         - net: more strict VIRTIO_NET_HDR_GSO_UDP_L4 validation, prevent
           letting frankenstein UDP super-frames from getting into the stack
      
         - net: fix interface altnames when ifc moves to a new namespace
      
         - eth: qed: fix the size of the RX buffers
      
         - mptcp: avoid sending RST when closing the initial subflow"
      
      * tag 'net-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (94 commits)
        Revert "ethtool: Fix mod state of verbose no_mask bitset"
        selftests: mptcp: join: no RST when rm subflow/addr
        mptcp: avoid sending RST when closing the initial subflow
        mptcp: more conservative check for zero probes
        tcp: check mptcp-level constraints for backlog coalescing
        selftests: mptcp: join: correctly check for no RST
        net: ti: icssg-prueth: Fix r30 CMDs bitmasks
        selftests: net: add very basic test for netdev names and namespaces
        net: move altnames together with the netdevice
        net: avoid UAF on deleted altname
        net: check for altname conflicts when changing netdev's netns
        net: fix ifname in netlink ntf during netns move
        net: ethernet: ti: Fix mixed module-builtin object
        net: phy: bcm7xxx: Add missing 16nm EPHY statistics
        ipv4: fib: annotate races around nh->nh_saddr_genid and nh->nh_saddr
        tcp_bpf: properly release resources on error paths
        net/sched: sch_hfsc: upgrade 'rt' to 'sc' when it becomes a inner curve
        net: mdio-mux: fix C45 access returning -EIO after API change
        tcp: tsq: relax tcp_small_queue_check() when rtx queue contains a single skb
        octeon_ep: update BQL sent bytes before ringing doorbell
        ...
      ce55c22e
    • Linus Torvalds's avatar
      Merge tag 'loongarch-fixes-6.6-3' of... · 74e9347e
      Linus Torvalds authored
      Merge tag 'loongarch-fixes-6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch fixes from Huacai ChenL
       "Fix 4-level pagetable building, disable WUC for pgprot_writecombine()
        like ioremap_wc(), use correct annotation for exception handlers, and
        a trivial cleanup"
      
      * tag 'loongarch-fixes-6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        LoongArch: Disable WUC for pgprot_writecombine() like ioremap_wc()
        LoongArch: Replace kmap_atomic() with kmap_local_page() in copy_user_highpage()
        LoongArch: Export symbol invalid_pud_table for modules building
        LoongArch: Use SYM_CODE_* to annotate exception handlers
      74e9347e