Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Mar 28, 2022
  2. Mar 27, 2022
  3. Mar 26, 2022
    • Marcelo Ricardo Leitner's avatar
      net/sched: act_ct: fix ref leak when switching zones · bcb74e13
      Marcelo Ricardo Leitner authored
      
      When switching zones or network namespaces without doing a ct clear in
      between, it is now leaking a reference to the old ct entry. That's
      because tcf_ct_skb_nfct_cached() returns false and
      tcf_ct_flow_table_lookup() may simply overwrite it.
      
      The fix is to, as the ct entry is not reusable, free it already at
      tcf_ct_skb_nfct_cached().
      
      Reported-by: default avatarFlorian Westphal <fw@strlen.de>
      Fixes: 2f131de3
      
       ("net/sched: act_ct: Fix flow table lookup after ct clear or switching zones")
      Signed-off-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bcb74e13
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · f0228146
      Linus Torvalds authored
      Pull trace event string verifier fix from Steven Rostedt:
       "The run-time string verifier checks all trace event formats as
        they are read from the tracing file to make sure that the %s pointers
        are not reading something that no longer exists.
      
        However, it failed to account for the valid case of '%*.s' where the
        length given is zero, and the string is NULL. It incorrectly flagged
        it as a null pointer dereference and gave a WARN_ON()"
      
      * tag 'trace-v5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Have trace event string test handle zero length strings
      f0228146
    • Eric Dumazet's avatar
      net/smc: fix a memory leak in smc_sysctl_net_exit() · 5ae6acf1
      Eric Dumazet authored
      Recently added smc_sysctl_net_exit() forgot to free
      the memory allocated from smc_sysctl_net_init()
      for non initial network namespace.
      
      Fixes: 462791bb
      
       ("net/smc: add sysctl interface for SMC")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reported-by: default avatarsyzbot <syzkaller@googlegroups.com>
      Cc: Tony Lu <tonylu@linux.alibaba.com>
      Cc: Dust Li <dust.li@linux.alibaba.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5ae6acf1
    • Jakub Kicinski's avatar
      selftests: tls: skip cmsg_to_pipe tests with TLS=n · 5c7e49be
      Jakub Kicinski authored
      
      These are negative tests, testing TLS code rejects certain
      operations. They won't pass without TLS enabled, pure TCP
      accepts those operations.
      
      Reported-by: default avatarLinux Kernel Functional Testing <lkft@linaro.org>
      Fixes: d87d67fd
      
       ("selftests: tls: test splicing cmsgs")
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Reviewed-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5c7e49be
    • Tom Rix's avatar
      octeontx2-af: initialize action variable · 33b5bc9e
      Tom Rix authored
      Clang static analysis reports this representative issue
      rvu_npc.c:898:15: warning: Assigned value is garbage
        or undefined
        req.match_id = action.match_id;
                     ^ ~~~~~~~~~~~~~~~
      
      The initial setting of action is conditional on
       if (is_mcam_entry_enabled(...))
      The later check of action.op will sometimes be garbage.
      So initialize action.
      
      Reduce setting of
        *(u64 *)&action = 0x00;
      to
        *(u64 *)&action = 0;
      
      Fixes: 967db352
      
       ("octeontx2-af: add support for multicast/promisc packet replication feature")
      Signed-off-by: default avatarTom Rix <trix@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      33b5bc9e
    • Linus Torvalds's avatar
      Merge tag 'usb-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 710f5d62
      Linus Torvalds authored
      Pull USB/Thunderbolt updates from Greg KH:
       "Here is the big set of USB and Thunderbolt changes for 5.18-rc1.
      
        Nothing major in here, just lots of little improvements and cleanups
        and new device support. Highlights are:
      
         - list iterator fixups for when we walk past the end of the list (a
           common problem that was cut/pasted in almost all USB gadget
           drivers)
      
         - xen USB driver "hardening" for malicious hosts
      
         - xhci driver updates and fixes for more hardware types
      
         - xhci debug cable fixes to make it actually work again
      
         - usb gadget audio driver improvements
      
         - usb gadget storage fixes to work with OS-X
      
         - lots of other small usb gadget fixes and updates
      
         - USB DWC3 driver improvements for more hardware types
      
         - Lots of other small USB driver improvements
      
         - DTS updates for some USB platforms
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'usb-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (172 commits)
        usb: gadget: fsl_qe_udc: Add missing semicolon in qe_ep_dequeue()
        dt-bindings: usb: mtk-xhci: add compatible for mt8186
        usb: dwc3: Issue core soft reset before enabling run/stop
        usb: gadget: Makefile: remove ccflags-y
        USB: usb-storage: Fix use of bitfields for hardware data in ene_ub6250.c
        usb: gadget: eliminate anonymous module_init & module_exit
        usb: usbip: eliminate anonymous module_init & module_exit
        xen/usb: harden xen_hcd against malicious backends
        usb: dwc3: gadget: Wait for ep0 xfers to complete during dequeue
        usb: dwc3: gadget: move cmd_endtransfer to extra function
        usb: dwc3: gadget: ep_queue simplify isoc start condition
        xen/usb: don't use arbitrary_virt_to_machine()
        usb: isp1760: remove redundant max_packet() macro
        usb: oxu210hp-hcd: remove redundant call to max_packet() macro
        usb: common: usb-conn-gpio: Make VBUS supply completely optional
        USB: storage: ums-realtek: fix error code in rts51x_read_mem()
        usb: early: xhci-dbc: Fix xdbc number parsing
        usb: early: xhci-dbc: Remove duplicate keep parsing
        x86/tsc: Be consistent about use_tsc_delay()
        usb: gadget: udc: s3c2410: remove usage of list iterator past the loop body
        ...
      710f5d62