Atul Gupta
df9d4a1780
net/tls: sleeping function from invalid context
...
HW unhash within mutex for registered tls devices cause sleep
when called from tcp_set_state for TCP_CLOSE. Release lock and
re-acquire after function call with ref count incr/dec.
defined kref and fp release for tls_device to ensure device
is not released outside lock.
BUG: sleeping function called from invalid context at
kernel/locking/mutex.c:748
in_atomic(): 1, irqs_disabled(): 0, pid: 0, name: swapper/7
INFO: lockdep is turned off.
CPU: 7 PID: 0 Comm: swapper/7 Tainted: G W O
Call Trace:
<IRQ>
dump_stack+0x5e/0x8b
___might_sleep+0x222/0x260
__mutex_lock+0x5c/0xa50
? vprintk_emit+0x1f3/0x440
? kmem_cache_free+0x22d/0x2a0
? tls_hw_unhash+0x2f/0x80
? printk+0x52/0x6e
? tls_hw_unhash+0x2f/0x80
tls_hw_unhash+0x2f/0x80
tcp_set_state+0x5f/0x180
tcp_done+0x2e/0xe0
tcp_rcv_state_process+0x92c/0xdd3
? lock_acquire+0xf5/0x1f0
? tcp_v4_rcv+0xa7c/0xbe0
? tcp_v4_do_rcv+0x70/0x1e0
Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-12-14 13:39:39 -08:00
..
2018-09-08 01:39:47 +09:00
2018-10-14 10:25:47 +02:00
2018-01-19 14:02:12 -05:00
2018-09-26 09:56:07 -07:00
2018-11-27 00:35:19 +01:00
2018-10-12 09:47:02 -07:00
2018-09-18 19:55:01 -07:00
2018-05-16 07:24:30 +02:00
2018-12-05 20:37:52 -08:00
2018-07-20 21:17:12 -07:00
2017-04-12 22:02:36 +02:00
2018-10-05 00:36:31 -07:00
2018-11-02 23:54:56 -07:00
2018-07-13 12:18:18 -04:00
2018-11-15 11:35:40 -08:00
2018-10-31 12:37:12 -07:00
2018-08-07 12:39:13 -07:00
2017-11-02 11:10:55 +01:00
2018-01-15 14:53:43 -05:00
2017-11-02 11:10:55 +01:00
2018-05-16 07:23:35 +02:00
2018-04-19 16:11:11 -04:00
2018-08-04 13:23:15 -07:00
2017-05-27 18:51:41 -04:00
2018-09-26 20:22:19 -07:00
2018-07-30 09:10:25 -07:00
2017-07-04 22:35:16 +01:00
2018-10-12 12:56:34 +02:00
2017-07-04 01:29:04 -07:00
2018-04-02 20:16:17 +02:00
2017-11-02 11:10:55 +01:00
2018-07-27 13:17:50 -07:00
2018-10-12 21:38:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-18 12:39:36 +01:00
2017-11-30 09:54:25 -05:00
2017-11-04 09:26:51 +09:00
2018-09-13 08:14:33 -07:00
2017-11-02 11:10:55 +01:00
2018-03-05 12:52:45 -05:00
2017-11-04 09:26:51 +09:00
2017-11-02 11:10:55 +01:00
2018-10-17 21:51:13 -07:00
2018-05-20 18:31:42 -04:00
2017-11-02 11:10:55 +01:00
2018-02-28 11:43:28 -05:00
2018-05-28 22:59:54 -04:00
2017-11-01 11:50:43 +09:00
2018-04-23 10:21:24 -04:00
2017-11-02 11:10:55 +01:00
2018-08-07 12:22:14 -07:00
2018-07-20 10:14:41 +02:00
2017-11-02 11:10:55 +01:00
2017-10-30 21:09:24 +09:00
2017-10-11 09:49:34 +02:00
2017-11-02 11:10:55 +01:00
2018-09-24 12:18:42 -07:00
2018-08-29 19:42:52 -07:00
2017-11-02 11:10:55 +01:00
2018-02-27 14:46:26 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-11 14:10:06 -05:00
2017-11-02 11:10:55 +01:00
2018-09-05 10:08:25 +02:00
2018-11-02 23:54:56 -07:00
2018-04-22 21:12:00 -04:00
2017-08-07 11:39:22 -07:00
2018-06-26 11:33:04 +09:00
2018-08-14 10:04:36 -07:00
2018-10-17 17:45:07 -07:00
2018-08-11 17:54:18 -07:00
2017-12-03 10:18:28 -05:00
2018-10-02 15:52:12 -07:00
2018-06-05 10:45:24 -04:00
2017-11-02 11:10:55 +01:00
2018-10-19 11:03:06 -07:00
2018-10-16 00:13:12 -07:00
2017-12-15 12:34:00 -05:00
2018-10-24 14:06:25 -07:00
2018-06-29 23:50:26 +09:00
2018-07-18 11:26:40 +02:00
2018-10-04 21:54:25 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-18 11:26:53 +02:00
2018-10-10 22:25:10 -07:00
2017-11-02 11:10:55 +01:00
2018-03-27 09:51:23 +02:00
2018-07-11 23:10:19 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-25 12:06:25 +09:00
2018-04-22 14:55:03 -04:00
2018-09-13 09:04:58 -07:00
2018-02-14 14:43:32 -05:00
2018-10-12 13:05:40 +02:00
2017-11-02 11:10:55 +01:00
2017-04-01 20:21:44 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-07 16:24:40 -08:00
2018-05-28 22:59:54 -04:00
2018-09-14 12:04:33 -07:00
2017-11-02 11:10:55 +01:00
2018-08-01 09:52:30 -07:00
2017-07-01 07:39:09 -07:00
2018-10-12 11:00:22 -07:00
2018-05-16 07:23:35 +02:00
2018-04-07 22:32:31 -04:00
2017-11-08 16:12:33 +09:00
2017-11-02 11:10:55 +01:00
2018-05-24 18:36:15 -07:00
2018-05-16 07:23:35 +02:00
2018-10-04 21:42:28 -07:00
2018-09-25 20:17:35 -07:00
2017-11-02 11:10:55 +01:00
2017-10-01 03:55:47 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-16 07:23:35 +02:00
2017-11-02 11:10:55 +01:00
2017-12-05 14:37:13 -05:00
2018-08-28 11:11:47 +02:00
2017-10-20 13:21:36 +01:00
2018-05-16 07:23:35 +02:00
2018-09-26 20:30:55 -07:00
2018-03-13 18:37:02 +02:00
2018-09-05 22:27:11 -07:00
2018-09-25 20:29:38 -07:00
2018-07-21 10:43:12 -05:00
2017-11-02 11:10:55 +01:00
2018-06-22 13:43:27 +09:00
2018-07-31 09:22:48 +02:00
2018-06-22 13:43:27 +09:00
2018-04-11 10:33:46 -04:00
2018-06-30 20:42:25 +09:00
2018-08-11 01:58:46 +02:00
2018-10-23 10:57:06 -07:00
2018-03-01 21:21:36 -05:00
2017-11-02 11:10:55 +01:00
2018-06-06 14:07:53 -04:00
2018-10-17 17:45:08 -07:00
2018-02-21 15:06:05 -05:00
2018-10-23 19:42:44 -07:00
2018-05-08 00:02:41 -04:00
2018-12-14 13:39:39 -08:00
2018-07-07 10:58:49 +09:00
2017-11-02 11:10:55 +01:00
2017-08-29 15:16:52 -07:00
2018-06-26 11:33:04 +09:00
2018-10-05 11:52:38 -07:00
2018-02-16 15:57:42 -05:00
2018-10-17 17:45:08 -07:00
2018-01-24 19:13:45 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-05 09:31:01 +02:00
2018-08-29 12:25:53 -07:00
2018-08-15 15:04:25 -07:00