Files
kernel_google_wahoo/include/linux
Hannes Frederic Sowa ff88d78d69 tun: use socket locks for sk_{attach,detatch}_filter
This reverts commit 5a5abb1fa3b05dd ("tun, bpf: fix suspicious RCU usage
in tun_{attach, detach}_filter") and replaces it to use lock_sock around
sk_{attach,detach}_filter. The checks inside filter.c are updated with
lockdep_sock_is_held to check for proper socket locks.

It keeps the code cleaner by ensuring that only one lock governs the
socket filter instead of two independent locks.

Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
2022-03-04 20:16:32 +01:00
..
2018-04-08 11:51:57 +02:00
2017-05-22 23:19:33 -07:00
2017-07-15 11:57:44 +02:00
2018-04-12 09:58:05 -07:00
2021-02-03 23:16:16 +01:00
2021-12-14 10:35:51 +01:00
2017-01-23 11:03:24 +05:30
2017-05-04 16:43:06 +00:00
2021-11-26 11:58:33 +01:00
2020-08-26 07:32:20 -07:00
2017-08-24 17:02:36 -07:00
2019-04-03 10:24:12 +02:00
2019-01-11 07:53:18 +09:00
2020-04-02 19:02:39 +02:00
2016-09-30 10:18:37 +02:00
2016-11-08 10:23:45 -08:00
2021-03-07 11:37:45 +01:00
2018-11-21 09:27:36 +01:00
2019-12-21 11:36:50 +01:00
2020-12-14 00:49:15 -07:00
2020-09-23 21:48:05 -07:00
2020-04-02 19:02:39 +02:00
2021-12-14 10:03:49 +01:00
2018-08-23 12:00:19 -07:00
2018-08-23 12:00:19 -07:00