1. 13 9月, 2019 9 次提交
  2. 11 9月, 2019 2 次提交
  3. 09 9月, 2019 3 次提交
  4. 05 9月, 2019 1 次提交
  5. 04 9月, 2019 5 次提交
  6. 03 9月, 2019 1 次提交
  7. 29 8月, 2019 1 次提交
  8. 28 8月, 2019 1 次提交
  9. 27 8月, 2019 4 次提交
  10. 26 8月, 2019 3 次提交
  11. 19 8月, 2019 3 次提交
  12. 15 8月, 2019 1 次提交
  13. 14 8月, 2019 2 次提交
    • P
      netfilter: nft_flow_offload: skip tcp rst and fin packets · dfe42be1
      Pablo Neira Ayuso 提交于
      TCP rst and fin packets do not qualify to place a flow into the
      flowtable. Most likely there will be no more packets after connection
      closure. Without this patch, this flow entry expires and connection
      tracking picks up the entry in ESTABLISHED state using the fixup
      timeout, which makes this look inconsistent to the user for a connection
      that is actually already closed.
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      dfe42be1
    • D
      netfilter: conntrack: Use consistent ct id hash calculation · 656c8e9c
      Dirk Morris 提交于
      Change ct id hash calculation to only use invariants.
      
      Currently the ct id hash calculation is based on some fields that can
      change in the lifetime on a conntrack entry in some corner cases. The
      current hash uses the whole tuple which contains an hlist pointer which
      will change when the conntrack is placed on the dying list resulting in
      a ct id change.
      
      This patch also removes the reply-side tuple and extension pointer from
      the hash calculation so that the ct id will will not change from
      initialization until confirmation.
      
      Fixes: 3c791076 ("netfilter: ctnetlink: don't use conntrack/expect object addresses as id")
      Signed-off-by: NDirk Morris <dmorris@metaloft.com>
      Acked-by: NFlorian Westphal <fw@strlen.de>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      656c8e9c
  14. 13 8月, 2019 4 次提交
    • F
      netfilter: connlabels: prefer static lock initialiser · 10533343
      Florian Westphal 提交于
      seen during boot:
      BUG: spinlock bad magic on CPU#2, swapper/0/1
       lock: nf_connlabels_lock+0x0/0x60, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
      Call Trace:
       do_raw_spin_lock+0x14e/0x1b0
       nf_connlabels_get+0x15/0x40
       ct_init_net+0xc4/0x270
       ops_init+0x56/0x1c0
       register_pernet_operations+0x1c8/0x350
       register_pernet_subsys+0x1f/0x40
       tcf_register_action+0x7c/0x1a0
       do_one_initcall+0x13d/0x2d9
      
      Problem is that ct action init function can run before
      connlabels_init().  Lock has not been initialised yet.
      
      Fix it by using a static initialiser.
      
      Fixes: b57dc7c1 ("net/sched: Introduce action ct")
      Signed-off-by: NFlorian Westphal <fw@strlen.de>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      10533343
    • V
      netfilter: nf_nat_proto: make tables static · 0a30ba50
      Valdis Klētnieks 提交于
      Sparse warns about two tables not being declared.
      
        CHECK   net/netfilter/nf_nat_proto.c
      net/netfilter/nf_nat_proto.c:725:26: warning: symbol 'nf_nat_ipv4_ops' was not declared. Should it be static?
      net/netfilter/nf_nat_proto.c:964:26: warning: symbol 'nf_nat_ipv6_ops' was not declared. Should it be static?
      
      And in fact they can indeed be static.
      Signed-off-by: NValdis Kletnieks <valdis.kletnieks@vt.edu>
      Acked-by: NFlorian Westphal <fw@strlen.de>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      0a30ba50
    • V
      netfilter: nf_tables: add missing prototypes. · 5785cf15
      Valdis Klētnieks 提交于
      Sparse rightly complains about undeclared symbols.
      
        CHECK   net/netfilter/nft_set_hash.c
      net/netfilter/nft_set_hash.c:647:21: warning: symbol 'nft_set_rhash_type' was not declared. Should it be static?
      net/netfilter/nft_set_hash.c:670:21: warning: symbol 'nft_set_hash_type' was not declared. Should it be static?
      net/netfilter/nft_set_hash.c:690:21: warning: symbol 'nft_set_hash_fast_type' was not declared. Should it be static?
        CHECK   net/netfilter/nft_set_bitmap.c
      net/netfilter/nft_set_bitmap.c:296:21: warning: symbol 'nft_set_bitmap_type' was not declared. Should it be static?
        CHECK   net/netfilter/nft_set_rbtree.c
      net/netfilter/nft_set_rbtree.c:470:21: warning: symbol 'nft_set_rbtree_type' was not declared. Should it be static?
      
      Include nf_tables_core.h rather than nf_tables.h to pick up the additional definitions.
      Signed-off-by: NValdis Kletnieks <valdis.kletnieks@vt.edu>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      5785cf15
    • J
      netfilter: inline four headers files into another one. · bd96b4c7
      Jeremy Sowden 提交于
      linux/netfilter/ipset/ip_set.h included four other header files:
      
        include/linux/netfilter/ipset/ip_set_comment.h
        include/linux/netfilter/ipset/ip_set_counter.h
        include/linux/netfilter/ipset/ip_set_skbinfo.h
        include/linux/netfilter/ipset/ip_set_timeout.h
      
      Of these the first three were not included anywhere else.  The last,
      ip_set_timeout.h, was included in a couple of other places, but defined
      inline functions which call other inline functions defined in ip_set.h,
      so ip_set.h had to be included before it.
      
      Inlined all four into ip_set.h, and updated the other files that
      included ip_set_timeout.h.
      Signed-off-by: NJeremy Sowden <jeremy@azazel.net>
      Acked-by: NJozsef Kadlecsik <kadlec@netfilter.org>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      bd96b4c7