1. 20 Feb, 2023 38 commits
  2. 17 Feb, 2023 2 commits
    • Arnd Bergmann's avatar
      wifi: rtl8xxxu: add LEDS_CLASS dependency · 38ae3192
      Arnd Bergmann authored
      rtl8xxxu now unconditionally uses LEDS_CLASS, so a Kconfig dependency
      is required to avoid link errors:
      
      aarch64-linux-ld: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.o: in function `rtl8xxxu_disconnect':
      rtl8xxxu_core.c:(.text+0x730): undefined reference to `led_classdev_unregister'
      
      ERROR: modpost: "led_classdev_unregister" [drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko] undefined!
      ERROR: modpost: "led_classdev_register_ext" [drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko] undefined!
      
      Fixes: 3be01622 ("wifi: rtl8xxxu: Register the LED and make it blink")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
      Link: https://lore.kernel.org/r/20230217095910.2480356-1-arnd@kernel.org
      38ae3192
    • Florian Westphal's avatar
      netfilter: let reset rules clean out conntrack entries · 2954fe60
      Florian Westphal authored
      iptables/nftables support responding to tcp packets with tcp resets.
      
      The generated tcp reset packet passes through both output and postrouting
      netfilter hooks, but conntrack will never see them because the generated
      skb has its ->nfct pointer copied over from the packet that triggered the
      reset rule.
      
      If the reset rule is used for established connections, this
      may result in the conntrack entry to be around for a very long
      time (default timeout is 5 days).
      
      One way to avoid this would be to not copy the nf_conn pointer
      so that the rest packet passes through conntrack too.
      
      Problem is that output rules might not have the same conntrack
      zone setup as the prerouting ones, so its possible that the
      reset skb won't find the correct entry.  Generating a template
      entry for the skb seems error prone as well.
      
      Add an explicit "closing" function that switches a confirmed
      conntrack entry to closed state and wire this up for tcp.
      
      If the entry isn't confirmed, no action is needed because
      the conntrack entry will never be committed to the table.
      Reported-by: default avatarRussel King <linux@armlinux.org.uk>
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      2954fe60