David Ahern
58c4c6a3f7
net: add rcu locking when changing early demux
systemd-sysctl is triggering a suspicious RCU usage message when
net.ipv4.tcp_early_demux or net.ipv4.udp_early_demux is changed via
a sysctl config file:
[ 33.896184] ===============================
[ 33.899558] [ ERR: suspicious RCU usage. ]
[ 33.900624] 4.11.0-rc7+ #104 Not tainted
[ 33.901698] -------------------------------
[ 33.903059] /home/dsa/kernel-2.git/net/ipv4/sysctl_net_ipv4.c:305 suspicious rcu_dereference_check() usage!
[ 33.905724]
other info that might help us debug this:
[ 33.907656]
rcu_scheduler_active = 2, debug_locks = 0
[ 33.909288] 1 lock held by systemd-sysctl/143:
[ 33.910373] #0: (sb_writers#5){.+.+.+}, at: [<ffffffff8123a370>] file_start_write+0x45/0x48
[ 33.912407]
stack backtrace:
[ 33.914018] CPU: 0 PID: 143 Comm: systemd-sysctl Not tainted 4.11.0-rc7+ #104
[ 33.915631] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[ 33.917870] Call Trace:
[ 33.918431] dump_stack+0x81/0xb6
[ 33.919241] lockdep_rcu_suspicious+0x10f/0x118
[ 33.920263] proc_configure_early_demux+0x65/0x10a
[ 33.921391] proc_udp_early_demux+0x3a/0x41
add rcu locking to proc_configure_early_demux.
Fixes: dddb64bcb3 ("net: Add sysctl to toggle early demux for tcp and udp")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-24 14:08:19 -04:00
..
2017-04-15 21:16:30 -04:00
2017-03-24 13:17:07 -07:00
2017-01-16 12:57:48 +01:00
2017-03-22 10:48:49 -07:00
2017-02-04 19:44:22 -05:00
2015-07-29 22:44:04 -07:00
2017-04-17 15:35:38 -04:00
2017-04-19 07:48:57 +02:00
2017-04-14 10:07:19 +02:00
2017-04-17 15:35:38 -04:00
2017-03-10 09:45:09 -08:00
2017-03-16 10:18:34 -07:00
2017-03-21 15:27:19 -07:00
2017-03-10 09:45:09 -08:00
2016-10-30 12:42:58 -04:00
2016-06-30 05:03:36 -04:00
2016-10-20 14:32:22 -04:00
2017-03-21 15:27:19 -07:00
2017-02-09 16:43:45 -05:00
2017-03-09 18:23:27 -08:00
2017-01-13 22:37:16 -05:00
2016-06-05 22:56:42 -04:00
2017-01-18 13:04:29 -05:00
2016-12-29 11:38:31 -05:00
2015-08-28 13:32:36 -07:00
2016-11-03 16:10:26 -04:00
2017-03-22 15:40:45 -07:00
2017-04-21 13:21:31 -04:00
2017-03-24 13:17:07 -07:00
2016-12-24 11:46:01 -08:00
2017-03-09 18:28:42 -08:00
2017-04-17 12:59:22 -04:00
2017-04-13 13:58:22 -04:00
2017-04-21 13:21:31 -04:00
2017-04-21 13:21:31 -04:00
2017-04-06 08:24:51 -07:00
2017-04-21 13:21:31 -04:00
2017-04-20 10:35:33 -04:00
2017-02-16 21:25:49 -05:00
2017-03-10 09:45:09 -08:00
2017-02-28 12:49:36 +01:00
2017-03-24 20:50:28 -07:00
2017-03-16 20:33:56 -07:00
2017-03-24 13:17:07 -07:00
2016-11-03 15:25:26 -04:00
2017-04-17 12:46:50 -04:00
2017-04-17 15:35:38 -04:00
2017-01-09 13:58:57 -05:00
2017-04-24 14:08:19 -04:00
2016-10-29 17:12:43 -04:00
2016-05-11 14:43:19 -04:00
2017-03-02 08:42:27 +01:00
2016-11-22 13:27:16 -05:00
2017-04-20 16:16:44 -04:00
2016-12-06 11:34:24 -05:00
2016-08-23 23:11:36 -07:00
2017-01-28 10:33:06 -05:00
2016-11-21 13:20:17 -05:00
2016-05-11 14:43:19 -04:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2017-04-20 15:42:11 -04:00
2017-03-24 20:49:30 -07:00
2016-11-21 13:20:17 -05:00
2017-03-16 20:33:56 -07:00
2017-03-24 20:49:30 -07:00
2016-06-10 23:07:49 -07:00
2016-09-19 20:59:34 -04:00
2017-04-15 21:16:30 -04:00
2017-02-21 13:26:03 -05:00
2016-09-21 00:23:00 -04:00
2017-04-05 18:41:27 -07:00
2016-11-21 13:20:17 -05:00
2017-03-07 13:58:33 -08:00
2016-11-21 13:20:17 -05:00
2016-05-11 14:43:19 -04:00
2016-11-21 13:20:17 -05:00
2017-03-16 20:23:28 -07:00
2016-11-21 13:20:17 -05:00
2017-04-15 21:16:30 -04:00
2016-07-11 13:27:06 -07:00
2016-09-08 16:13:09 -07:00
2016-11-24 15:32:14 -05:00
2016-10-20 14:32:22 -04:00
2016-06-17 20:23:32 -07:00
2017-02-07 16:29:30 -05:00
2016-11-24 15:32:14 -05:00
2017-02-15 11:04:11 +01:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:06:10 +02:00
2017-02-09 10:22:19 +01:00
2017-02-09 10:22:17 +01:00
2017-01-10 10:57:12 +01:00