15 May, 2011

1 commit


10 May, 2011

6 commits

  • This patch reverts a2361c8735e07322023aedc36e4938b35af31eb0:
    "[PATCH] netfilter: xt_conntrack: warn about use in raw table"

    Florian Wesphal says:
    "... when the packet was sent from the local machine the skb
    already has ->nfct attached, and -m conntrack seems to do
    the right thing."

    Acked-by: Jan Engelhardt
    Reported-by: Florian Wesphal
    Signed-off-by: Pablo Neira Ayuso

    Pablo Neira Ayuso
     
  • The mask indicates the bits one wants to zero out, so it needs to be
    inverted before applying to the original TOS field.

    Signed-off-by: Fernando Luis Vazquez Cao
    Signed-off-by: Pablo Neira Ayuso

    Fernando Luis Vazquez Cao
     
  • DESCRIPTION
    This patch tries to restore the initial init and cleanup
    sequences that was before namspace patch.
    Netns also requires action when net devices unregister
    which has never been implemented. I.e this patch also
    covers when a device moves into a network namespace,
    and has to be released.

    IMPLEMENTATION
    The number of calls to register_pernet_device have been
    reduced to one for the ip_vs.ko
    Schedulers still have their own calls.

    This patch adds a function __ip_vs_service_cleanup()
    and an enable flag for the netfilter hooks.

    The nf hooks will be enabled when the first service is loaded
    and never disabled again, except when a namespace exit starts.

    Signed-off-by: Hans Schillstrom
    Acked-by: Julian Anastasov
    [horms@verge.net.au: minor edit to changelog]
    Signed-off-by: Simon Horman

    Hans Schillstrom
     
  • If the sync daemons run in a name space while it crashes
    or get killed, there is no way to stop them except for a reboot.
    When all patches are there, ip_vs_core will handle register_pernet_(),
    i.e. ip_vs_sync_init() and ip_vs_sync_cleanup() will be removed.

    Kernel threads should not increment the use count of a socket.
    By calling sk_change_net() after creating a socket this is avoided.
    sock_release cant be used intead sk_release_kernel() should be used.

    Thanks Eric W Biederman for your advices.

    Signed-off-by: Hans Schillstrom
    [horms@verge.net.au: minor edit to changelog]
    Signed-off-by: Simon Horman

    Hans Schillstrom
     
  • commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations)
    made ebtables not working anymore.

    1) xt_compat_calc_jump() is not an exact match lookup
    2) compat_table_info() has a typo in xt_compat_init_offsets() call
    3) compat_do_replace() misses a xt_compat_init_offsets() call

    Reported-by: dann frazier
    Signed-off-by: Eric Dumazet
    Signed-off-by: Patrick McHardy

    Eric Dumazet
     
  • This patch fixes the missing initialization of the start time if
    the timestamp support is enabled.

    libnetfilter_conntrack/utils# conntrack -E &
    libnetfilter_conntrack/utils# ./conntrack_create
    tcp 6 109 ESTABLISHED src=1.1.1.1 dst=2.2.2.2 sport=1025 dport=21 packets=0 bytes=0 [UNREPLIED] src=2.2.2.2 dst=1.1.1.1 sport=21 dport=1025 packets=0 bytes=0 mark=0 delta-time=1303296401 use=2

    Signed-off-by: Pablo Neira Ayuso
    Signed-off-by: Patrick McHardy

    Pablo Neira Ayuso
     

20 Apr, 2011

1 commit


19 Apr, 2011

1 commit


13 Apr, 2011

2 commits

  • The SET target with --del-set did not work due to using wrongly
    the internal dimension of --add-set instead of --del-set.
    Also, the checkentries did not release the set references when
    returned an error. Bugs reported by Lennert Buytenhek.

    Signed-off-by: Jozsef Kadlecsik
    Signed-off-by: Patrick McHardy

    Jozsef Kadlecsik
     
  • Enforce that the second "src/dst" parameter of the set match and SET target
    must be "src", because we have access to the source MAC only in the packet.
    The previous behaviour, that the type required the second parameter
    but actually ignored the value was counter-intuitive and confusing.

    Signed-off-by: Jozsef Kadlecsik
    Signed-off-by: Patrick McHardy

    Jozsef Kadlecsik
     

11 Apr, 2011

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (34 commits)
    net: Add support for SMSC LAN9530, LAN9730 and LAN89530
    mlx4_en: Restoring RX buffer pointer in case of failure
    mlx4: Sensing link type at device initialization
    ipv4: Fix "Set rt->rt_iif more sanely on output routes."
    MAINTAINERS: add entry for Xen network backend
    be2net: Fix suspend/resume operation
    be2net: Rename some struct members for clarity
    pppoe: drop PPPOX_ZOMBIEs in pppoe_flush_dev
    dsa/mv88e6131: add support for mv88e6085 switch
    ipv6: Enable RFS sk_rxhash tracking for ipv6 sockets (v2)
    be2net: Fix a potential crash during shutdown.
    bna: Fix for handling firmware heartbeat failure
    can: mcp251x: Allow pass IRQ flags through platform data.
    smsc911x: fix mac_lock acquision before calling smsc911x_mac_read
    iwlwifi: accept EEPROM version 0x423 for iwl6000
    rt2x00: fix cancelling uninitialized work
    rtlwifi: Fix some warnings/bugs
    p54usb: IDs for two new devices
    wl12xx: fix potential buffer overflow in testmode nvs push
    zd1211rw: reset rx idle timer from tasklet
    ...

    Linus Torvalds
     

04 Apr, 2011

8 commits


31 Mar, 2011

1 commit


22 Mar, 2011

2 commits

  • As part of the work to make IPVS network namespace aware
    __ip_vs_app_mutex was replaced by a per-namespace lock,
    ipvs->app_mutex. ipvs->app_key is also supplied for debugging purposes.

    Unfortunately this implementation results in ipvs->app_key residing
    in non-static storage which at the very least causes a lockdep warning.

    This patch takes the rather heavy-handed approach of reinstating
    __ip_vs_app_mutex which will cover access to the ipvs->list_head
    of all network namespaces.

    [ 12.610000] IPVS: Creating netns size=2456 id=0
    [ 12.630000] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
    [ 12.640000] BUG: key ffff880003bbf1a0 not in .data!
    [ 12.640000] ------------[ cut here ]------------
    [ 12.640000] WARNING: at kernel/lockdep.c:2701 lockdep_init_map+0x37b/0x570()
    [ 12.640000] Hardware name: Bochs
    [ 12.640000] Pid: 1, comm: swapper Tainted: G W 2.6.38-kexec-06330-g69b7efe-dirty #122
    [ 12.650000] Call Trace:
    [ 12.650000] [] warn_slowpath_common+0x75/0xb0
    [ 12.650000] [] warn_slowpath_null+0x15/0x20
    [ 12.650000] [] lockdep_init_map+0x37b/0x570
    [ 12.650000] [] ? trace_hardirqs_on+0xd/0x10
    [ 12.650000] [] debug_mutex_init+0x38/0x50
    [ 12.650000] [] __mutex_init+0x5c/0x70
    [ 12.650000] [] __ip_vs_app_init+0x64/0x86
    [ 12.660000] [] ? ip_vs_init+0x0/0xff
    [ 12.660000] [] T.620+0x43/0x170
    [ 12.660000] [] ? register_pernet_subsys+0x1a/0x40
    [ 12.660000] [] ? ip_vs_init+0x0/0xff
    [ 12.660000] [] ? ip_vs_init+0x0/0xff
    [ 12.660000] [] register_pernet_operations+0x57/0xb0
    [ 12.660000] [] ? ip_vs_init+0x0/0xff
    [ 12.670000] [] register_pernet_subsys+0x29/0x40
    [ 12.670000] [] ip_vs_app_init+0x10/0x12
    [ 12.670000] [] ip_vs_init+0x4c/0xff
    [ 12.670000] [] do_one_initcall+0x7a/0x12e
    [ 12.670000] [] kernel_init+0x13e/0x1c2
    [ 12.670000] [] kernel_thread_helper+0x4/0x10
    [ 12.670000] [] ? restore_args+0x0/0x30
    [ 12.680000] [] ? kernel_init+0x0/0x1c2
    [ 12.680000] [] ? kernel_thread_helper+0x0/0x1global0

    Signed-off-by: Simon Horman
    Cc: Ingo Molnar
    Cc: Eric Dumazet
    Cc: Julian Anastasov
    Cc: Hans Schillstrom
    Signed-off-by: David S. Miller

    Simon Horman
     
  • Reported-by: Ingo Molnar
    Signed-off-by: Eric Dumazet
    Cc: Simon Horman
    Cc: Julian Anastasov
    Acked-by: Simon Horman
    Signed-off-by: David S. Miller

    Eric Dumazet
     

20 Mar, 2011

2 commits


17 Mar, 2011

2 commits


16 Mar, 2011

3 commits


15 Mar, 2011

10 commits