]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net: Add a second bind table hashed by port and address"
authorJoanne Koong <joannelkoong@gmail.com>
Wed, 15 Jun 2022 19:32:13 +0000 (12:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Jun 2022 18:07:59 +0000 (11:07 -0700)
commitd475490141d385cbed5bec6e750e6063f5e1d3fb
tree83ef5ebf0c4fcb6110a951fdf434389ee26dd3cb
parent0798b602d75c053fac29ed3a3ea6d9618c682c89
Revert "net: Add a second bind table hashed by port and address"

This reverts:

commit 9da23f76f146 ("net: Add a second bind table hashed by port and address")
commit bcfa16c3ccf7 ("selftests: Add test for timing a bind request to a port with a populated bhash entry")
Link: https://lore.kernel.org/netdev/20220520001834.2247810-1-kuba@kernel.org/
There are a few things that need to be fixed here:
* Updating bhash2 in cases where the socket's rcv saddr changes
* Adding bhash2 hashbucket locks

Links to syzbot reports:
https://lore.kernel.org/netdev/00000000000022208805e0df247a@google.com/
https://lore.kernel.org/netdev/0000000000003f33bc05dfaf44fe@google.com/

Fixes: 9da23f76f146 ("net: Add a second bind table hashed by port and address")
Reported-by: syzbot+015d756bbd1f8b5c8f09@syzkaller.appspotmail.com
Reported-by: syzbot+98fd2d1422063b0f8c44@syzkaller.appspotmail.com
Reported-by: syzbot+0a847a982613c6438fba@syzkaller.appspotmail.com
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Link: https://lore.kernel.org/r/20220615193213.2419568-1-joannelkoong@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/inet_connection_sock.h
include/net/inet_hashtables.h
include/net/sock.h
net/dccp/proto.c
net/ipv4/inet_connection_sock.c
net/ipv4/inet_hashtables.c
net/ipv4/tcp.c
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/bind_bhash_test.c [deleted file]