Matias Karhumaa
30d65e0804
Bluetooth: Fix debugfs NULL pointer dereference
Fix crash caused by NULL pointer dereference when debugfs functions
le_max_key_read, le_max_key_size_write, le_min_key_size_read or
le_min_key_size_write and Bluetooth adapter was powered off.
Fix is to move max_key_size and min_key_size from smp_dev to hci_dev.
At the same time they were renamed to le_max_key_size and
le_min_key_size.
BUG: unable to handle kernel NULL pointer dereference at 00000000000002e8
PGD 0 P4D 0
Oops: 0000 [#24] SMP PTI
CPU: 2 PID: 6255 Comm: cat Tainted: G D OE 4.18.9-200.fc28.x86_64 #1
Hardware name: LENOVO 4286CTO/4286CTO, BIOS 8DET76WW (1.46 ) 06/21/2018
RIP: 0010:le_max_key_size_read+0x45/0xb0 [bluetooth]
Code: 00 00 00 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 31 c0 48 8b 87 c8 00 00 00 48 8d 7c 24 04 48 8b 80 48 0a 00 00 <48> 8b 80 e8 02 00 00 0f b6 48 52 e8 fb b6 b3 ed be 04 00 00 00 48
RSP: 0018:ffffab23c3ff3df0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00007f0b4ca2e000 RCX: ffffab23c3ff3f08
RDX: ffffffffc0ddb033 RSI: 0000000000000004 RDI: ffffab23c3ff3df4
RBP: 0000000000020000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffab23c3ff3ed8 R11: 0000000000000000 R12: ffffab23c3ff3f08
R13: 00007f0b4ca2e000 R14: 0000000000020000 R15: ffffab23c3ff3f08
FS: 00007f0b4ca0f540(0000) GS:ffff91bd5e280000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000000002e8 CR3: 00000000629fa006 CR4: 00000000000606e0
Call Trace:
full_proxy_read+0x53/0x80
__vfs_read+0x36/0x180
vfs_read+0x8a/0x140
ksys_read+0x4f/0xb0
do_syscall_64+0x5b/0x160
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Signed-off-by: Matias Karhumaa <matias.karhumaa@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2018-09-28 20:53:48 +02:00
..
2018-08-13 09:21:44 +09:00
2018-09-28 20:53:48 +02:00
2018-01-19 14:02:12 -05:00
2018-09-26 09:56:07 -07:00
2018-08-29 13:04:38 +02:00
2018-08-13 08:42:25 -07:00
2018-09-18 19:55:01 -07:00
2018-05-16 07:24:30 +02:00
2018-08-11 12:25:15 -07:00
2018-07-20 21:17:12 -07:00
2018-09-24 12:18:42 -07:00
2018-08-11 01:58:46 +02:00
2018-07-13 12:18:18 -04:00
2018-08-03 12:46:20 -07:00
2017-11-02 11:10:55 +01: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
2018-07-11 23:10:19 -07:00
2018-07-30 09:10:25 -07:00
2018-09-05 10:03:13 +02: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-07-12 17:37:13 -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-07-20 10:14:41 +02: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-05-29 10:12:45 -04:00
2018-04-22 21:12:00 -04:00
2018-06-26 11:33:04 +09:00
2018-08-14 10:04:36 -07:00
2017-11-04 09:26:51 +09:00
2018-08-11 17:54:18 -07:00
2017-12-03 10:18:28 -05:00
2018-08-01 09:50:04 -07:00
2018-06-05 10:45:24 -04:00
2017-11-02 11:10:55 +01:00
2018-09-12 00:08:00 -07:00
2018-07-04 15:22:13 +09:00
2017-12-15 12:34:00 -05:00
2018-09-20 20:01:52 -07:00
2018-06-29 23:50:26 +09:00
2018-07-18 11:26:40 +02:00
2018-07-07 10:58:49 +09: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-08-01 13:45:31 -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-09-05 10:11:50 +02: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-11-02 11:10:55 +01:00
2018-09-24 12:21:32 -07: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
2018-09-18 19:51:29 -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-09-24 12:18:42 -07:00
2018-09-25 20:17:35 -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-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-09-13 09:25:40 -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-05-03 13:46:47 -04:00
2018-02-21 15:06:05 -05:00
2018-09-21 19:37:59 -07:00
2018-05-08 00:02:41 -04:00
2018-09-24 12:24:24 -07:00
2018-07-07 10:58:49 +09:00
2017-11-02 11:10:55 +01:00
2018-06-26 11:33:04 +09:00
2018-07-03 10:29:26 +09:00
2018-02-16 15:57:42 -05:00
2018-09-13 12:07:56 -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-09-25 13:13:15 -07:00
2018-08-29 12:25:53 -07:00
2018-08-15 15:04:25 -07:00