[PATCH 11/15] ubsan 1
Tvrtko Ursulin
tursulin at ursulin.net
Thu Oct 19 17:48:42 UTC 2017
From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
[ 1.893694] ================================================================================
[ 1.893735] UBSAN: Undefined behaviour in drivers/acpi/sysfs.c:845:33
[ 1.893762] shift exponent 64 is too large for 64-bit type 'long long unsigned int'
[ 1.893794] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc5+ #532
[ 1.893819] Hardware name: LENOVO 80MX/Lenovo E31-80, BIOS DCCN34WW(V2.03) 12/01/2015
[ 1.893849] Call Trace:
[ 1.893867] dump_stack+0xab/0xfe
[ 1.893885] ? _atomic_dec_and_lock+0x112/0x112
[ 1.893907] ? get_unsigned_val+0x48/0x91
[ 1.893935] ubsan_epilogue+0x9/0x49
[ 1.893953] __ubsan_handle_shift_out_of_bounds+0x1ea/0x241
[ 1.893978] ? __ubsan_handle_load_invalid_value+0x136/0x136
[ 1.894000] ? do_raw_spin_unlock+0xf5/0x1d0
[ 1.894000] ? do_raw_spin_trylock+0x90/0x90
[ 1.894000] ? __lock_is_held+0x71/0x150
[ 1.894000] ? _raw_spin_unlock_irqrestore+0x32/0x50
[ 1.894000] ? trace_hardirqs_on_caller+0x184/0x360
[ 1.894000] ? acpi_gpe_apply_masked_gpes+0x95/0xfd
[ 1.894000] acpi_gpe_apply_masked_gpes+0x95/0xfd
[ 1.894000] ? acpi_gpe_set_masked_gpes+0xc1/0xc1
[ 1.894000] ? acpi_get_table+0xff/0x114
[ 1.894000] acpi_scan_init+0x1cf/0x3fe
[ 1.894000] ? acpi_match_madt+0xa7/0xa7
[ 1.894000] ? bus_register+0x386/0x450
[ 1.894000] ? subsys_register.part.1+0x140/0x140
[ 1.894000] acpi_init+0x41f/0x492
[ 1.894000] ? acpi_sleep_proc_init+0x30/0x30
[ 1.894000] ? console_unlock+0x524/0x7a0
[ 1.894000] ? trace_hardirqs_on_caller+0x184/0x360
[ 1.894000] ? scan_for_dmi_ipmi+0x22/0x202
[ 1.894000] ? fb_console_init+0x14f/0x1e6
[ 1.894000] ? acpi_sleep_proc_init+0x30/0x30
[ 1.894000] do_one_initcall+0xa3/0x256
[ 1.894000] ? parameq+0xe0/0xe0
[ 1.894000] ? initcall_blacklisted+0x160/0x160
[ 1.894000] ? down_write_nested+0x110/0x110
[ 1.894000] ? kasan_unpoison_shadow+0x30/0x40
[ 1.894000] kernel_init_freeable+0x3ee/0x47f
[ 1.894000] ? rest_init+0xf0/0xf0
[ 1.894000] kernel_init+0xf/0x140
[ 1.894000] ? rest_init+0xf0/0xf0
[ 1.894000] ret_from_fork+0x27/0x40
[ 1.894000] ================================================================================
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
drivers/acpi/sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
index 78a5a23010ab..8ae5cc7b31b2 100644
--- a/drivers/acpi/sysfs.c
+++ b/drivers/acpi/sysfs.c
@@ -817,7 +817,7 @@ static ssize_t counter_set(struct kobject *kobj,
* Currently, the GPE flooding prevention only supports to mask the GPEs
* numbered from 00 to 7f.
*/
-#define ACPI_MASKABLE_GPE_MAX 0x80
+#define ACPI_MASKABLE_GPE_MAX 63
static u64 __initdata acpi_masked_gpes;
--
2.9.5
More information about the Intel-gfx-trybot
mailing list