Re: [PATCH v2] netlink: Replace rhash_portid with bound

2015-09-23 Thread Herbert Xu
ree on that one. I have seen too many instances over the years where people post patches that use primitives such as RCU and think that they must be safe because it compiles with no warnings (and probably even runs). Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Pa

Re: [PATCH] lib: fix data race in rhashtable_rehash_one

2015-09-22 Thread Herbert Xu
seeing this when I was working on it but never got around to removing this bogosity. Thanks, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send t

Re: [PATCH v2] lib: fix data race in rhashtable_rehash_one

2015-09-22 Thread Herbert Xu
r (KTSAN). > > Signed-off-by: Dmitry Vyukov <dvyu...@google.com> Acked-by: Herbert Xu <herb...@gondor.apana.org.au> -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey

Re: [PATCH v4] netlink: Fix autobind race condition that leads to zero port ID

2015-09-21 Thread Herbert Xu
On Sun, Sep 20, 2015 at 10:55:21PM -0700, David Miller wrote: > From: Herbert Xu <herb...@gondor.apana.org.au> > Date: Fri, 18 Sep 2015 19:16:50 +0800 > > > The commit c0bb07df7d981e4091432754e30c9c720e2c0c78 ("netlink: > > Reset portid after netlink_in

netlink: Replace rhash_portid with bound

2015-09-21 Thread Herbert Xu
ensure that a valid portid is used. Fixes: 1f770c0a09da ("netlink: Fix autobind race condition that leads to zero port ID") Reported-by: Tejun Heo <t...@kernel.org> Reported-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off-by: Herbert Xu <herb...@gondor.apana.or

[PATCH v2] netlink: Replace rhash_portid with bound

2015-09-21 Thread Herbert Xu
d once in netlink_bind fixes a race where two threads that bind the socket at the same time with different port IDs may both succeed. Fixes: 1f770c0a09da ("netlink: Fix autobind race condition that leads to zero port ID") Reported-by: Tejun Heo <t...@kernel.org> Reported-by: Linu

[PATCH v3] netlink: Fix autobind race condition that leads to zero port ID

2015-09-18 Thread Herbert Xu
that the real portid is only set after the socket has been successfully hashed. Fixes: c0bb07df7d98 ("netlink: Reset portid after netlink_insert failure") Reported-by: Tejun Heo <t...@kernel.org> Reported-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off

[PATCH v4] netlink: Fix autobind race condition that leads to zero port ID

2015-09-18 Thread Herbert Xu
On Fri, Sep 18, 2015 at 02:36:09PM +0800, Herbert Xu wrote: > > But yes there are ordering issues here so I've decided to make > rhashtable use a new field for its hash instead. > > Note that I've dropped the acks as this patch is now substantially > different. v3 doesn't ap

Re: [PATCH net] netlink: make sure -EBUSY won't escape from netlink_insert

2015-09-17 Thread Herbert Xu
t; I think Herbert has an additional patch for this issue. But yes, I > think should be scheduled for stable. Herbert? Yes this should be safe for stable, even though the real cause of the problem is probably the one that Tejun spotted. Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org

Re: Possible netlink autobind regression

2015-09-16 Thread Herbert Xu
. Thanks! -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kerne

Re: Possible netlink autobind regression

2015-09-16 Thread Herbert Xu
ernel.org> Reported-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off-by: Herbert Xu <herb...@gondor.apana.org.au> Reviewed-by: Cong Wang <cw...@twopensource.com> diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index dea9253..42013c5 100644 --- a/

Re: Possible netlink autobind regression

2015-09-16 Thread Herbert Xu
On Thu, Sep 17, 2015 at 11:08:45AM +0800, Herbert Xu wrote: > > Good catch! I think your explanation makes perfect sense. Linus > ran into this previously too after suspend-and-resume. Unfortunately you can't just postpone the setting of portid because once you pass it onto r

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-10 Thread Herbert Xu
s Created 1000 ports Created 2000 ports Created 3000 ports Created 4000 ports Created 5000 ports Created 6000 ports Created 7000 ports Created 8000 ports Created 9000 ports Created 1 ports Ports successfully created, terminating ... So what am I missing? Thanks, -- Email: Herbert

Re: IPv6 xfrm GSO fragmentation bug

2015-09-03 Thread Herbert Xu
On Mon, Aug 31, 2015 at 03:35:26PM +0800, Herbert Xu wrote: > > I see where the bug came from. Indeed IPv6 does do fragmentation > but only for tunnel mode. While your patch added a check that also > affected transport mode. So in addition to the GSO fix we should > also mak

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Herbert Xu
On Tue, Sep 01, 2015 at 04:51:24PM +0200, Thomas Graf wrote: > > 1. The current in-kernel self-test > 2. bind_netlink.c: https://github.com/tgraf/rhashtable Thanks, I will try to reproduce this. -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Herbert Xu
fails it is never retried. The only thing that is retried is the expansion of the table. So I have no idea what you are talking about. Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.or

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Herbert Xu
f rhashtable is doing something wrong. Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe netdev" in the

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Herbert Xu
> why retry in background at all? It should be tried in the background first at 70% and only when that fails would we hit the 100% case and then we will try it with GFP_ATOMIC. If that fails then the insertion will fail. Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.a

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Herbert Xu
> which try to insert 50k entries at the same time, I don't think it's > unlikely that three more entries are inserted before the background > expansion completes. Yes but in that case the GFP_ATOMIC allocation should work because the table is so small anyway. Cheers, -- Em

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Herbert Xu
Do you have a test program? Thanks, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe netdev" in the

Re: IPv6 xfrm GSO fragmentation bug

2015-08-31 Thread Herbert Xu
dition to the GSO fix we should also make the MTU check conditional to tunnel mode. Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line &q

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-30 Thread Herbert Xu
effort basis so its failure has nothing to do with the failure of a subsequent insertion. The insertion must have tried its own last-ditch synchronous expansion and only fail if that fails. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP

IPv6 xfrm GSO fragmentation bug

2015-08-30 Thread Herbert Xu
why isn't it needed for IPv4 as well? Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

Re: [PATCH 10/11] ah6: fix error return code

2015-08-24 Thread Herbert Xu
!= 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when != ret *if(...) { ... when != ret = e2 when forall return ret; } // /smpl Signed-off-by: Julia Lawall julia.law...@lip6.fr Acked-by: Herbert Xu herb...@gondor.apana.org.au This problem exists in net/ipv4

Re: [lkp] [rhashtable] 9d901bc0515: WARNING: CPU: 0 PID: 1 at arch/x86/mm/ioremap.c:63 __ioremap_check_ram+0x6a/0x99()

2015-08-21 Thread Herbert Xu
not clear to me that this patch is the root cause of your OOM problem. Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe

Re: [lkp] [rhashtable] 9d901bc0515: WARNING: CPU: 0 PID: 1 at arch/x86/mm/ioremap.c:63 __ioremap_check_ram+0x6a/0x99()

2015-08-21 Thread Herbert Xu
On Fri, Aug 21, 2015 at 03:09:42PM +0800, Huang Ying wrote: Sorry, my fault. There are OOM for parent commit too, just some dmesg difference, which I miss understood. Please ignore this report. I will be more careful next time. Thanks for the confirmation. -- Email: Herbert Xu herb

Re: rtnl_mutex deadlock?

2015-08-06 Thread Herbert Xu
. Thomas? Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org More

Re: rtnl_mutex deadlock?

2015-08-06 Thread Herbert Xu
impossible. But if we had a WARN_ON_ONCE there then we'll know for sure. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev

Re: rtnl_mutex deadlock?

2015-08-06 Thread Herbert Xu
that Linus saw. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org

Re: [PATCH net] netlink: make sure -EBUSY won't escape from netlink_insert

2015-08-06 Thread Herbert Xu
On Fri, Aug 07, 2015 at 12:26:41AM +0200, Daniel Borkmann wrote: Reference: http://thread.gmane.org/gmane.linux.network/372676 Reported-by: Linus Torvalds torva...@linux-foundation.org Signed-off-by: Daniel Borkmann dan...@iogearbox.net Acked-by: Herbert Xu herb...@gondor.apana.org.au

Re: rtnl_mutex deadlock?

2015-08-05 Thread Herbert Xu
) ... Please use something other than ENOMEM as it is already heavily used in this context. Perhaps EOVERFLOW? We should probably add a WARN_ON_ONCE in rhashtable_insert_rehash since two concurrent rehashings indicates something is going seriously wrong. Thanks, -- Email: Herbert Xu herb

net: Fix skb_set_peeked use-after-free bug

2015-08-04 Thread Herbert Xu
the old freed skb. This patch fixes it by making skb_set_peeked return the new skb (or the old one if unchanged). Fixes: 738ac1ebb96d (net: Clone skb before setting peeked flag) Reported-by: Brenden Blanco bbla...@plumgrid.com Signed-off-by: Herbert Xu herb...@gondor.apana.org.au diff --git a/net

Re: Fix skb_set_peeked use-after-free bug

2015-08-04 Thread Herbert Xu
error. We must not free the skb as it's still on the recv queue. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev

Re: Fix skb_set_peeked use-after-free bug

2015-08-04 Thread Herbert Xu
David Laight david.lai...@aculab.com wrote: In that case, what happens to the receive queue when skb_clone() takes a copy of the skb - freeing the original one? The new skb is inserted into the recv queue and replacing the existing skb. -- Email: Herbert Xu herb...@gondor.apana.org.au Home

Re: net: Fix skb_set_peeked use-after-free bug

2015-08-04 Thread Herbert Xu
On Tue, Aug 04, 2015 at 08:30:23AM -0700, Brenden Blanco wrote: This patch holds good in my testing. Thanks! Thanks for testing. Let's add a tag for patchwork: Tested-by: Brenden Blanco bbla...@plumgrid.com -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http

Re: [PATCH] ipsec:Fix error handling in the function xfrm6_get_addr

2015-07-30 Thread Herbert Xu
. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org More majordomo info

Re: sit: Set SKB_GSO_SIT bit when performing GRO

2015-07-20 Thread Herbert Xu
should not lock up (unless of course we're feeding it something that's completely bogus). If we can't figure this out then the safest solution would be to disable tunnel GRO completely because it's broken as it stands. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http

Revert sit: Add gro callbacks to sit_offload

2015-07-20 Thread Herbert Xu
) because it generates packets that cannot be handled even by our own GSO. Reported-by: Wolfgang Walter li...@stwm.de Signed-off-by: Herbert Xu herb...@gondor.apana.org.au diff --git a/net/ipv6/ip6_offload.c b/net/ipv6/ip6_offload.c index e893cd1..08b6204 100644 --- a/net/ipv6/ip6_offload.c +++ b/net/ipv6

Re: sit: Set SKB_GSO_SIT bit when performing GRO

2015-07-16 Thread Herbert Xu
On Thu, Jul 16, 2015 at 12:58:45PM +0200, Wolfgang Walter wrote: Am Donnerstag, 16. Juli 2015, 08:23:50 schrieb Herbert Xu: On Wed, Jul 15, 2015 at 02:25:59PM +0200, Wolfgang Walter wrote: Yes. Switching TSO off and leaving GRO on works, too. OK, could you please try this patch

Re: GRO: forwading ISATAP packets is very slow with kernel 4.1

2015-07-15 Thread Herbert Xu
- header is 41. It may only looks at those? I think GRO is actually working fine. Can you show me the output of ethtool -k eth1? If hardware TSO is enabled can you try disabling it to see if it helps? Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au

sit: Set SKB_GSO_SIT bit when performing GRO

2015-07-15 Thread Herbert Xu
that doesn't know what to do with it. Fixes: 19424e052fb4 (sit: Add gro callbacks to sit_offload) Reported-by: Wolfgang Walter li...@stwm.de Signed-off-by: Herbert Xu herb...@gondor.apana.org.au diff --git a/net/ipv6/ip6_offload.c b/net/ipv6/ip6_offload.c index e893cd1..1252eac 100644 --- a/net

Re: [PATCH net] ipv6: lock socket in ip6_datagram_connect()

2015-07-14 Thread Herbert Xu
)-udp_portaddr_hash accesses. Signed-off-by: Eric Dumazet eduma...@google.com Good find! This goes all the way back to 1.3 it seems :) Acked-by: Herbert Xu herb...@gondor.apana.org.au -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http

Re: [PATCH net-next 1/3] rhashtable: Add a function for in order insertion in buckets

2015-07-14 Thread Herbert Xu
then be the thing that you insert into rhashtable. This means that during rehashing they get moved atomically. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from

Re: [PATCH net-next 1/3] rhashtable: Add a function for in order insertion in buckets

2015-07-14 Thread Herbert Xu
. For example we may move from a /32 granularity to a /31 granlarity at the requst of the admin. In that case you can't just mix the chain from the old table with the new. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http

Re: [PATCH net-next 1/3] rhashtable: Add a function for in order insertion in buckets

2015-07-14 Thread Herbert Xu
to move previously wildcard entries that are no longer wildcards into the hash table, or move non-wildcard entries out of the table and into the wildcard list. And of course we want to do this without imposing locking on the reader :) Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page

Re: [PATCH v2 net-next 3/3] rhashtable: Add scored lookups

2015-07-14 Thread Herbert Xu
= next_pseudo_random32(khash); + } Note that during a rehash you can encounter the same object multiple times, does this logic still work in that case? Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au

Re: GRO: forwading ISATAP packets is very slow with kernel 4.1

2015-07-14 Thread Herbert Xu
has no effect. Can you run some tcpdumps and post the results in the two cases? Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line

Re: [PATCH v2 net-next 2/3] rhashtable: Add a function for in order insertion and lookup in buckets

2015-07-14 Thread Herbert Xu
on top of rhashtable instead of inside it. The memory cost is merely 8 bytes per local port, is it really too much? Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe

net: Fix skb csum races when peeking

2015-07-13 Thread Herbert Xu
On Mon, Jul 13, 2015 at 04:31:00PM +0800, Herbert Xu wrote: On Mon, Jul 13, 2015 at 10:28:19AM +0200, Eric Dumazet wrote: Except that udp checksum are checked outside of spinlock protection. Good point. I wonder when this got broken. I'll do some digging. OK looks like I can claim

Re: net: Fix skb csum races when peeking

2015-07-13 Thread Herbert Xu
On Mon, Jul 13, 2015 at 08:01:42PM +0800, Herbert Xu wrote: PS we seem to no longer use the hardware checksum in case of CHECKSUM_COMPLETE, I wonder why that is? Nevermind, it's still there. I was just looking in the wrong place. -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page

Re: [PATCH] netlink: enable skb header refcounting before sending first broadcast

2015-07-13 Thread Herbert Xu
no longer handles shared skbs. So either we need to fix the recv path to not touch skbs without cloning them, or we need to get rid of the use of shared skbs in netlink. In fact it looks I introduced the bug way back in commit a59322be07c964e916d15be3df473fb7ba20c41e Author: Herbert Xu herb

net: Clone skb before setting peeked flag

2015-07-13 Thread Herbert Xu
to double-free. This patch fixes this by cloning the skb and replacing the skb in the list when setting skb-peeked. Fixes: a59322be07c9 ([UDP]: Only increment counter on first peek/recv) Reported-by: Konstantin Khlebnikov khlebni...@yandex-team.ru Signed-off-by: Herbert Xu herb...@gondor.apana.org.au

Re: [PATCH v2] netlink: reset skb-peeked when reuse orphan skb for next broadcast

2015-07-13 Thread Herbert Xu
, this patch is not needed if we fix the root cause. Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

Re: [PATCH] netlink: enable skb header refcounting before sending first broadcast

2015-07-13 Thread Herbert Xu
. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH] netlink: enable skb header refcounting before sending first broadcast

2015-07-13 Thread Herbert Xu
On Mon, Jul 13, 2015 at 10:22:34AM +0200, Eric Dumazet wrote: It should worry, in case multiple threads are using MSG_PEEK on same udp socket ;) That should be fine because we already hold a spinlock on the queue. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http

Re: [PATCH] netlink: enable skb header refcounting before sending first broadcast

2015-07-13 Thread Herbert Xu
On Mon, Jul 13, 2015 at 10:28:19AM +0200, Eric Dumazet wrote: Except that udp checksum are checked outside of spinlock protection. Good point. I wonder when this got broken. I'll do some digging. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au

Re: [PATCH] rhashtable: fix for resize events during table walk

2015-07-06 Thread Herbert Xu
a simpler fix would be to move iter-p = NULL before the if statement. Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev

Re: [PATCH v2] rhashtable: fix for resize events during table walk

2015-07-06 Thread Herbert Xu
eddee5ba (rhashtable: Fix walker behaviour during rehash) although not explicitly tested. Fixes: eddee5ba (rhashtable: Fix walker behaviour during rehash) Signed-off-by: Phil Sutter p...@nwl.cc Acked-by: Herbert Xu herb...@gondor.apana.org.au -- Email: Herbert Xu herb...@gondor.apana.org.au Home

Re: [PATCH v3.17 .. v3.19] lib/rhashtable: fix race between rhashtable_lookup_compare and hashtable resize

2015-06-27 Thread Herbert Xu
your test to see if this patch makes your problem go away on the pre-4.0 kernels? Thanks! -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line

Re: netlink rhashtable status

2015-06-27 Thread Herbert Xu
like this is it. Thanks for digging into this! -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

Re: Performance loss due to commit 37c3185 ([NET]: Added GSO toggle)

2015-06-25 Thread Herbert Xu
and IPv6 before enabling it. However, the benefit of GSO should cancel out the cost of copying so I was hoping to just enable GSO unconditionally at some point. Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au

Re: [PATCH net-next] bridge: multicast: add a comment to br_port_state_selection about blocking state

2015-06-23 Thread Herbert Xu
will simply expire and stop without sending more queries. Suggested-by: Herbert Xu herb...@gondor.apana.org.au Signed-off-by: Nikolay Aleksandrov niko...@cumulusnetworks.com Acked-by: Herbert Xu herb...@gondor.apana.org.au Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http

Re: [PATCH net-next] bridge: multicast: disable port when in blocking state

2015-06-22 Thread Herbert Xu
think adding it to the place where you were going to place the disable_port call would be the most obvious. Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from

Re: [PATCH net-next v2] bridge: multicast: start querier timer when running user-space stp

2015-06-19 Thread Herbert Xu
it in all states different from blocking. Note that when a port goes in BR_STATE_DISABLED it's not enabled because that is handled in the beginning of the port list loop. Signed-off-by: Nikolay Aleksandrov niko...@cumulusnetworks.com Acked-by: Herbert Xu herb...@gondor.apana.org.au

Re: [PATCH net 2/2] bridge: multicast: start querier timer when running user-space stp

2015-06-17 Thread Herbert Xu
how about removing br_multicast_enable_port from br_make_forward and just add it here for both kernel and user-space STP? Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH net 1/2] bridge: multicast: restore router configuration on port link down/up

2015-06-17 Thread Herbert Xu
Aleksandrov niko...@cumulusnetworks.com Fixes: 0909e11758bd (bridge: Add multicast_router sysfs entries) Acked-by: Herbert Xu herb...@gondor.apana.org.au -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert

Re: [PATCH net] bridge: fix multicast router rlist endless loop

2015-06-09 Thread Herbert Xu
)) - hlist_del_init_rcu(p-rlist); + hlist_del_init_rcu(p-rlist); This should work but removing it and readding seems strange. How about moving the hlist_unhashed test that's currently in br_multicast_mark_router into br_multicast_add_router instead? Thanks, -- Email: Herbert

Re: [PATCH net v2] bridge: fix multicast router rlist endless loop

2015-06-09 Thread Herbert Xu
) Acked-by: Herbert Xu herb...@gondor.apana.org.au -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

Re: [v2 PATCH 5/13] crypto: testmgr - Switch to new AEAD interface

2015-06-07 Thread Herbert Xu
once every single driver has been converted. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

Re: [v2 PATCH 5/13] crypto: testmgr - Switch to new AEAD interface

2015-06-04 Thread Herbert Xu
On Thu, Jun 04, 2015 at 03:15:19PM -0700, Tadeusz Struk wrote: Hi Herbert, On 05/22/2015 01:30 AM, Herbert Xu wrote: This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. The fact the src and assoc point to the same

Re: netlink: Disable insertions/removals during rehash

2015-06-04 Thread Herbert Xu
? I just looked up the patchwork entry and it actually says not applicable which is correct: https://patchwork.ozlabs.org/patch/473041/ Because the patch only applies to stable and is not needed in either net or net-next. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http

Re: [PATCH net-next] neigh: Add missing rcu_assign_pointer

2015-05-28 Thread Herbert Xu
warnings. So better make it an RCU_INIT_POINTER. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body

Re: [v3 PATCH 0/8] crypto: Convert all AEAD users to new interface

2015-05-27 Thread Herbert Xu
just before it (but only to linux-crypto): https://www.mail-archive.com/linux-crypto@vger.kernel.org/msg14487.html Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from

Re: [v3 PATCH 0/8] crypto: Convert all AEAD users to new interface

2015-05-27 Thread Herbert Xu
and crypto_aead_decrypt that did the same thing as old_crypt. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev

Re: [v3 PATCH 0/8] crypto: Convert all AEAD users to new interface

2015-05-27 Thread Herbert Xu
interface along with the old interface. Note that this patch itself won't be good enough because I have since removed cryptoff. But it illustrates the amount of code you need. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http

Re: [PATCH] xfrm6: Do not use xfrm_local_error for path MTU issues in tunnels

2015-05-27 Thread Herbert Xu
in that situation the kernel would interpret the ICMP message as a reduction in outer MTU and thus resulting in a loop where the MTU keeps getting smaller. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert

Re: [net-next PATCH RFC 0/3] Preserve skb-mark through VTI tunnels

2015-05-27 Thread Herbert Xu
on this! -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org More majordomo info

[v3 PATCH 0/8] crypto: Convert all AEAD users to new interface

2015-05-27 Thread Herbert Xu
in future wish to support different generation schemes for a single algorithm. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev

[v3 PATCH 6/8] mac802154: Switch to new AEAD interface

2015-05-27 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- net/mac802154/llsec.c | 41 ++--- 1 file changed, 14 insertions(+), 27

[v3 PATCH 8/8] crypto: tcrypt - Switch to new AEAD interface

2015-05-27 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- crypto/tcrypt.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/crypto

[v3 PATCH 3/8] ipsec: Add IV generator information to xfrm_state

2015-05-27 Thread Herbert Xu
This patch adds IV generator information to xfrm_state. This is currently obtained from our own list of algorithm descriptions. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- include/net/xfrm.h |1 + net/key/af_key.c |1 + net/xfrm/xfrm_user.c | 40

[v3 PATCH 1/8] crypto: testmgr - Switch to new AEAD interface

2015-05-27 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- crypto/testmgr.c | 87 ++- 1 file changed, 48

[v3 PATCH 5/8] esp6: Switch to new AEAD interface

2015-05-27 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. The IV generation is also now carried out through normal AEAD methods. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- net/ipv6/esp6.c | 200

[v3 PATCH 4/8] esp4: Switch to new AEAD interface

2015-05-27 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. The IV generation is also now carried out through normal AEAD methods. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- net/ipv4/esp4.c | 200

[v3 PATCH 7/8] mac80211: Switch to new AEAD interface

2015-05-27 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. Tested-by: Johannes Berg johan...@sipsolutions.net Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- net/mac80211/aes_ccm.c | 30

Re: [PATCH net-next] tcp: tcp_tso_autosize() minimum is one packet

2015-05-26 Thread Herbert Xu
. Now this may or may not trigger the original bug that I was trying to fix but it still feels unsafe. So please convince me that it is totally safe to take the TSO code path with TSO disabled, e.g., when PMTU causes tso_segs to be greater than one. Thanks, -- Email: Herbert Xu herb

Re: [PATCH net-next] tcp: tcp_tso_autosize() minimum is one packet

2015-05-26 Thread Herbert Xu
, for the case where skb-len mss. Acked-by: Herbert Xu herb...@gondor.apana.org.au Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line

Re: [PATCH net-next] tcp: tcp_tso_autosize() minimum is one packet

2015-05-26 Thread Herbert Xu
tcp_tso_should_defer instead. Maybe this is OK but it is far from obvious. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev

Re: [PATCH net-next] tcp: tcp_tso_autosize() minimum is one packet

2015-05-26 Thread Herbert Xu
On Wed, May 27, 2015 at 09:38:40AM +0800, Herbert Xu wrote: Not really. They're not identical. For example, before your patch a packet greater than MSS with TSO disabled would call tcp_nagle_test, with your patch it will call tcp_tso_should_defer instead. Maybe this is OK but it is far

Re: [v2 PATCH 13/13] crypto: algif_aead - Switch to new AEAD interface

2015-05-26 Thread Herbert Xu
On Mon, May 25, 2015 at 07:53:41PM +0800, Herbert Xu wrote: On Mon, May 25, 2015 at 01:50:55PM +0200, Stephan Mueller wrote: When you have my code local, simply execute libkcapi/test/kcapi -y twice or three times. That triggered the crash. Aha that's what I was missing. I'll look

Re: [PATCH 5/7] esp6: Switch to new AEAD interface

2015-05-26 Thread Herbert Xu
On Tue, May 26, 2015 at 08:39:56AM +0200, Stephan Mueller wrote: May I also ask where I can find the generated IV when using rfc4106(gcm(aes))? You need to use the IV generator, seqniv(rfc4106(gcm(aes))) Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http

Re: [v2 PATCH 13/13] crypto: algif_aead - Switch to new AEAD interface

2015-05-26 Thread Herbert Xu
to disable the AEAD user-space interface in 4.1 so that we have time to fix it properly for 4.2. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line

Re: [PATCH 5/7] esp6: Switch to new AEAD interface

2015-05-26 Thread Herbert Xu
. If and when we do that we can easily set a default IV generator. This is all in the patch series that you're responding. So please actually read it rather than making assumptions :) Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http

Re: [PATCH 5/7] esp6: Switch to new AEAD interface

2015-05-26 Thread Herbert Xu
: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 5/7] esp6: Switch to new AEAD interface

2015-05-26 Thread Herbert Xu
On Tue, May 26, 2015 at 03:38:58PM +0800, Herbert Xu wrote: On Tue, May 26, 2015 at 09:37:09AM +0200, Stephan Mueller wrote: - the current IKE implementations use rfc4106(gcm(aes)). They would need to use seqniv(rfc4106(gcm(aes))) depending on the kernel version. So, we have a clear

Re: [PATCH 5/7] esp6: Switch to new AEAD interface

2015-05-26 Thread Herbert Xu
(i.e. no error), but does not produce the correct encryption that is required. You mean through the user-space AEAD interface? That's not a problem because I'm going to disable it for 4.1 :) Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert

Re: [v2 PATCH 13/13] crypto: algif_aead - Switch to new AEAD interface

2015-05-26 Thread Herbert Xu
On Tue, May 26, 2015 at 09:57:51AM +0200, Stephan Mueller wrote: Ok. Would you look into that one or shall I do that? I'll reenable it immediately after the patch to convert it to the new interface is merged. Cheers, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http

Re: [v2 PATCH 13/13] crypto: algif_aead - Switch to new AEAD interface

2015-05-25 Thread Herbert Xu
, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [v2 PATCH 13/13] crypto: algif_aead - Switch to new AEAD interface

2015-05-25 Thread Herbert Xu
On Mon, May 25, 2015 at 01:50:55PM +0200, Stephan Mueller wrote: When you have my code local, simply execute libkcapi/test/kcapi -y twice or three times. That triggered the crash. Aha that's what I was missing. I'll look into the crash. Thanks, -- Email: Herbert Xu herb

Re: [v2 PATCH 13/13] crypto: algif_aead - Switch to new AEAD interface

2015-05-23 Thread Herbert Xu
On Sat, May 23, 2015 at 08:04:19PM +0200, Stephan Mueller wrote: Am Freitag, 22. Mai 2015, 16:31:04 schrieb Herbert Xu: Hi Herbert, This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. After applying your

<    1   2   3   4   5   6   7   8   9   10   >