Sowmini Varadhan 53d0e83f93 rds: tcp: must use spin_lock_irq* and not spin_lock_bh with rds_tcp_conn_lock
rds_tcp_connection allocation/free management has the potential to be
called from __rds_conn_create after IRQs have been disabled, so
spin_[un]lock_bh cannot be used with rds_tcp_conn_lock.

Bottom-halves that need to synchronize for critical sections protected
by rds_tcp_conn_lock should instead use rds_destroy_pending() correctly.

Reported-by: syzbot+c68e51bb5e699d3f8d91@syzkaller.appspotmail.com
Fixes: ebeeb1ad9b8a ("rds: tcp: use rds_destroy_pending() to synchronize
       netns/module teardown and rds connection/workq management")
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-17 17:18:54 -04:00
..
2018-02-15 14:29:27 -08:00
2018-03-05 10:48:27 -05:00
2018-03-05 10:48:27 -05:00
2018-03-05 10:48:28 -05:00
2017-11-01 12:19:03 +09:00
2018-02-27 11:01:35 -05:00
2018-03-17 17:07:39 -04:00
2018-03-12 11:14:06 -04:00
2018-03-17 17:07:39 -04:00
2018-03-17 17:07:39 -04:00
2017-11-08 16:12:33 +09:00
2018-03-17 17:07:39 -04:00
2018-02-13 10:36:08 -05:00
2018-03-16 14:57:26 -04:00
2018-03-17 17:11:46 -04:00
2018-02-27 14:41:48 -05:00
2018-02-20 13:51:47 -05:00
2018-03-08 12:36:43 -05:00
2018-02-01 09:51:57 -08:00
2018-02-13 10:36:05 -05:00