Eric Dumazet
2ab2ddd301
inet: make sure to grab rcu_read_lock before using ireq->ireq_opt
...
Timer handlers do not imply rcu_read_lock(), so my recent fix
triggered a LOCKDEP warning when SYNACK is retransmit.
Lets add rcu_read_lock()/rcu_read_unlock() pairs around ireq->ireq_opt
usages instead of guessing what is done by callers, since it is
not worth the pain.
Get rid of ireq_opt_deref() helper since it hides the logic
without real benefit, since it is now a standard rcu_dereference().
Fixes: 1ad98e9d1bdf ("tcp/dccp: fix lockdep issue when SYN is backlogged")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-02 15:52:12 -07:00
..
2018-07-24 14:10:42 -07:00
2018-08-31 19:07:10 +02:00
2018-09-13 12:09:32 -07:00
2017-11-03 22:11:17 +08:00
2018-05-16 07:24:30 +02:00
2017-10-21 01:33:19 +01:00
2015-07-29 22:44:04 -07:00
2018-07-29 12:37:06 -07:00
2018-07-27 09:33:37 -07:00
2018-02-13 13:59:03 +01:00
2018-07-28 19:06:12 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-23 10:21:24 -04:00
2018-06-05 12:29:43 -04:00
2018-06-06 18:39:49 -07:00
2018-07-03 10:29:26 +09:00
2016-06-30 05:03:36 -04:00
2018-07-03 10:29:26 +09:00
2018-07-07 10:58:49 +09:00
2018-09-02 13:39:37 -07:00
2018-10-02 15:52:12 -07:00
2018-03-12 11:03:42 -04:00
2018-08-11 17:54:18 -07:00
2018-08-11 01:58:46 +02:00
2018-04-07 22:32:32 -04:00
2018-04-09 10:57:35 -04:00
2018-08-01 09:52:30 -07:00
2018-09-09 14:50:56 -07:00
2018-09-11 23:50:54 -07:00
2018-07-12 16:40:19 -07:00
2017-11-02 11:10:55 +01:00
2018-07-24 19:21:58 -07:00
2018-07-24 16:35:58 -07:00
2018-05-10 15:13:33 -04:00
2018-09-24 12:27:04 -07:00
2018-08-19 11:26:39 -07:00
2015-04-03 12:11:15 -04:00
2018-06-06 18:39:49 -07:00
2018-03-27 13:18:09 -04:00
2018-06-22 13:43:27 +09:00
2018-07-13 14:21:16 -07:00
2018-07-24 14:10:43 -07:00
2018-07-24 14:10:43 -07:00
2018-06-05 12:29:43 -04:00
2018-07-16 17:51:48 +02:00
2018-05-23 15:14:12 -04:00
2018-08-01 09:50:04 -07:00
2018-08-05 17:16:46 -07:00
2017-03-24 13:17:07 -07:00
2017-08-07 11:39:22 -07:00
2018-07-07 10:58:49 +09:00
2018-07-29 12:37:06 -07:00
2018-03-25 20:53:54 -04:00
2018-09-26 20:33:21 -07:00
2018-08-22 21:45:32 -07:00
2017-08-06 21:25:10 -07:00
2017-10-16 21:24:25 +01:00
2017-11-15 14:09:52 +09:00
2017-08-06 21:25:10 -07:00
2018-08-11 11:31:35 -07:00
2017-12-20 14:00:25 -05:00
2017-12-13 15:51:12 -05:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2016-11-21 13:20:17 -05:00
2018-02-28 12:03:47 -05:00
2018-10-01 15:42:13 -07:00
2018-10-02 15:52:12 -07:00
2017-05-17 16:06:01 -04:00
2018-03-27 13:18:09 -04:00
2018-08-31 23:10:35 -07:00
2018-01-31 10:26:30 -05:00
2018-07-16 00:12:09 -07:00
2018-08-01 09:57:09 -07:00
2018-07-11 23:01:56 -07:00
2018-08-01 09:56:10 -07:00
2017-08-06 21:25:10 -07:00
2018-07-25 16:35:45 -07:00
2018-08-16 14:58:08 -07:00
2017-09-29 06:07:00 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2017-08-30 11:20:08 -07:00
2017-08-06 21:25:10 -07:00
2018-09-07 23:11:06 -07:00
2018-02-28 11:43:28 -05:00
2018-06-08 19:55:15 -04:00
2017-11-02 11:10:55 +01:00
2018-07-03 10:29:26 +09:00
2017-07-24 13:52:59 -07:00
2018-09-16 15:27:44 -07:00
2018-05-16 07:24:30 +02:00
2018-09-04 10:26:30 +02:00
2017-06-16 11:48:39 -04:00
2018-09-04 10:26:30 +02:00
2018-03-07 10:54:29 +01:00
2018-03-04 17:49:17 -05:00
2018-03-27 13:18:09 -04:00
2017-02-09 10:22:17 +01:00
2017-11-02 11:10:55 +01:00