Vegard Nossum
25928deeb1
ACPICA: Always create namespace nodes using acpi_ns_create_node()
...
ACPICA commit 29da9a2a3f5b2c60420893e5c6309a0586d7a329
ACPI is allocating an object using kmalloc(), but then frees it
using kmem_cache_free(<"Acpi-Namespace" kmem_cache>).
This is wrong and can lead to boot failures manifesting like this:
hpet0: 3 comparators, 64-bit 100.000000 MHz counter
clocksource: Switched to clocksource tsc-early
BUG: unable to handle page fault for address: 000000003ffe0018
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 0 P4D 0
Oops: 0000 [#1 ] SMP PTI
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.6.0+ #211
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
Ubuntu-1.8.2-1ubuntu1 04/01/2014
RIP: 0010:kmem_cache_alloc+0x70/0x1d0
Code: 00 00 4c 8b 45 00 65 49 8b 50 08 65 4c 03 05 6f cc e7 7e 4d 8b
20 4d 85 e4 0f 84 3d 01 00 00 8b 45 20 48 8b 7d 00 48 8d 4a 01 <49> 8b
1c 04 4c 89 e0 65 48 0f c7 0f 0f 94 c0 84 c0 74 c5 8b 45 20
RSP: 0000:ffffc90000013df8 EFLAGS: 00010206
RAX: 0000000000000018 RBX: ffffffff81c49200 RCX: 0000000000000002
RDX: 0000000000000001 RSI: 0000000000000dc0 RDI: 000000000002b300
RBP: ffff88803e403d00 R08: ffff88803ec2b300 R09: 0000000000000001
R10: 0000000000000dc0 R11: 0000000000000006 R12: 000000003ffe0000
R13: ffffffff8110a583 R14: 0000000000000dc0 R15: ffffffff81c49a80
FS: 0000000000000000(0000) GS:ffff88803ec00000(0000)
knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000003ffe0018 CR3: 0000000001c0a001 CR4: 00000000003606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__trace_define_field+0x33/0xa0
event_trace_init+0xeb/0x2b4
tracer_init_tracefs+0x60/0x195
? register_tracer+0x1e7/0x1e7
do_one_initcall+0x74/0x160
kernel_init_freeable+0x190/0x1f0
? rest_init+0x9a/0x9a
kernel_init+0x5/0xf6
ret_from_fork+0x35/0x40
CR2: 000000003ffe0018
---[ end trace 707efa023f2ee960 ]---
RIP: 0010:kmem_cache_alloc+0x70/0x1d0
Bisection leads to unrelated changes in slab; Vlastimil Babka
suggests an unrelated layout or slab merge change merely exposed
the underlying bug.
Link: https://lore.kernel.org/lkml/4dc93ff8-f86e-f4c9-ebeb-6d3153a78d03@oracle.com/
Link: https://lore.kernel.org/r/a1461e21-c744-767d-6dfc-6641fd3e3ce2@siemens.com
Link: https://github.com/acpica/acpica/commit/29da9a2a
Fixes: f79c8e4136ea ("ACPICA: Namespace: simplify creation of the initial/default namespace")
Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
Diagnosed-by: Vlastimil Babka <vbabka@suse.cz>
Diagnosed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Cc: 5.10+ <stable@vger.kernel.org> # 5.10+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2021-03-24 14:50:54 +01:00
..
2021-03-24 14:50:54 +01:00
2021-02-05 13:50:51 +01:00
2021-01-27 12:26:24 +00:00
2020-11-10 18:52:51 +01:00
2021-01-11 12:56:49 -08:00
2020-10-14 11:42:04 -07:00
2020-09-15 19:40:59 +02:00
2021-01-07 17:41:28 +01:00
2021-02-04 19:45:45 +01:00
2018-10-16 10:03:00 +02:00
2019-06-23 09:23:33 +02:00
2020-09-25 12:48:11 +02:00
2020-09-25 18:25:51 +02:00
2021-01-22 16:35:34 +01:00
2020-11-17 18:12:34 +01:00
2020-10-02 19:01:55 +02:00
2021-01-29 19:24:13 +01:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:41 -07:00
2020-05-09 11:29:16 +02:00
2020-10-15 10:46:16 -07:00
2020-10-16 11:11:18 -07:00
2021-01-22 16:17:19 +01:00
2020-09-25 18:25:51 +02:00
2020-12-15 19:30:49 +01:00
2020-10-16 18:11:27 +02:00
2021-01-22 16:17:19 +01:00
2021-02-04 19:45:46 +01:00
2020-11-17 18:06:29 +01:00
2021-02-04 19:45:45 +01:00
2021-01-22 16:17:19 +01:00
2019-07-11 22:45:00 +02:00
2021-02-20 21:50:59 -08:00
2021-02-04 19:45:46 +01:00
2020-09-25 18:25:51 +02:00
2021-01-22 16:28:19 +01:00
2020-09-25 18:25:51 +02:00
2020-09-25 18:25:51 +02:00
2021-02-04 19:11:43 +01:00
2021-02-15 17:04:40 +01:00
2021-01-22 16:17:19 +01:00
2019-06-19 17:09:52 +02:00
2020-11-23 20:01:01 +01:00
2020-11-09 19:08:06 +01:00
2020-11-09 19:25:20 +01:00
2020-11-16 15:18:38 +01:00
2019-06-05 17:37:16 +02:00
2019-05-30 11:26:41 -07:00
2021-01-11 20:45:31 +01:00
2019-06-19 17:09:55 +02:00
2019-07-08 11:01:13 -07:00
2021-02-25 18:57:40 +01:00
2021-02-25 18:57:40 +01:00
2019-06-05 17:37:16 +02:00
2019-11-13 11:12:08 +01:00
2021-02-10 19:09:43 +01:00
2020-11-09 19:08:06 +01:00
2020-11-09 19:08:06 +01:00
2020-11-09 19:08:06 +01:00
2021-01-27 09:38:36 -06:00
2020-09-25 18:25:51 +02:00
2021-02-24 14:52:41 +01:00
2021-02-15 17:04:53 +01:00
2020-01-07 11:46:36 +01:00
2020-09-25 18:25:51 +02:00
2020-09-25 18:25:51 +02:00
2019-10-21 02:05:21 +02:00
2020-11-17 18:12:34 +01:00
2020-12-22 14:12:10 -08:00
2020-11-17 18:12:34 +01:00
2020-11-17 18:12:34 +01:00
2021-02-12 15:34:14 +01:00
2020-10-16 18:04:52 +02:00
2020-12-15 16:39:06 -08:00
2020-11-17 18:12:34 +01:00
2020-11-09 19:08:06 +01:00
2020-11-09 19:08:06 +01:00
2021-02-15 17:04:53 +01:00
2020-12-17 20:30:02 +01:00
2020-12-17 20:30:02 +01:00
2020-07-09 14:09:28 +02:00
2021-02-04 19:45:46 +01:00
2020-07-27 15:19:12 +02:00
2021-02-22 09:39:11 -08:00
2020-11-17 18:12:34 +01:00
2021-02-21 14:10:36 -08:00
2020-12-07 14:01:22 +01:00
2020-11-09 19:08:06 +01:00