From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752452AbcELQW1 (ORCPT ); Thu, 12 May 2016 12:22:27 -0400 Received: from smtp1.it.da.ut.ee ([193.40.5.66]:38604 "EHLO smtp1.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751501AbcELQWZ (ORCPT ); Thu, 12 May 2016 12:22:25 -0400 Date: Thu, 12 May 2016 19:08:04 +0300 (EEST) From: Meelis Roos To: Linux Kernel list , linux-acpi@vger.kernel.org, devel@acpica.org Subject: UBSAN: Undefined behaviour in drivers/acpi/acpica/dsutils.c:641:16 Message-ID: User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This appears on a lot of my test machines after turning on UBSAN checks. [ 0.180837] ================================================================================ [ 0.181001] UBSAN: Undefined behaviour in drivers/acpi/acpica/dsutils.c:641:16 [ 0.181161] index -1 is out of range for type 'acpi_operand_object *[9]' [ 0.181262] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0-rc6-00072-g33656a1 #22 [ 0.181421] Hardware name: Unknown Unknown/S2462 THUNDER K7, BIOS Guinness-8 04/07/2003 [ 0.181584] 00000000 c134beac 00000046 f6461cac ffffffff c1381f8b f6461ca4 c19182d4 [ 0.181941] c13825bf c17001c8 f6461cb0 c19182ec 00000202 c100312d 00000299 f64ddc00 [ 0.182296] f6461cf4 00000286 f6427000 c13ad4ec 00000286 f6427090 00000286 f64ddc00 [ 0.182655] Call Trace: [ 0.182755] [] ? dump_stack+0x45/0x69 [ 0.182853] [] ? ubsan_epilogue+0xb/0x40 [ 0.182948] [] ? __ubsan_handle_out_of_bounds+0x5f/0x70 [ 0.183046] [] ? perf_assign_events+0x36d/0x520 [ 0.183146] [] ? acpi_os_release_object+0x5/0x8 [ 0.183244] [] ? acpi_ds_create_operand+0x1f6/0x283 [ 0.183340] [] ? acpi_ds_create_operands+0xef/0x131 [ 0.183436] [] ? acpi_os_release_object+0x5/0x8 [ 0.183533] [] ? acpi_os_release_object+0x5/0x8 [ 0.183628] [] ? acpi_ds_exec_end_op+0xe0/0x4be [ 0.183729] [] ? acpi_ps_complete_op+0x1c5/0x248 [ 0.183825] [] ? acpi_ps_parse_loop+0x618/0x65e [ 0.183923] [] ? acpi_ps_parse_aml+0x8a/0x26d [ 0.184000] [] ? acpi_ps_execute_method+0x1a0/0x1ce [ 0.184000] [] ? acpi_ns_evaluate+0x1e4/0x263 [ 0.184000] [] ? acpi_ut_evaluate_object+0x31/0x15b [ 0.184000] [] ? acpi_ut_evaluate_object+0x45/0x15b [ 0.184000] [] ? acpi_ut_execute_HID+0x1e/0xcb [ 0.184000] [] ? acpi_ns_get_device_callback+0x7e/0x157 [ 0.184000] [] ? acpi_os_signal_semaphore+0x3f/0x4c [ 0.184000] [] ? acpi_ns_walk_namespace+0xe9/0x1ae [ 0.184000] [] ? acpi_sleep_proc_init+0x1f/0x1f [ 0.184000] [] ? acpi_get_devices+0x43/0x61 [ 0.184000] [] ? acpi_evaluate_object_typed+0xcd/0xcd [ 0.184000] [] ? ec_get_handle+0xf/0xf [ 0.184000] [] ? acpi_ec_ecdt_probe+0xfa/0x1d0 [ 0.184000] [] ? acpi_init+0x7b/0x25d [ 0.184000] [] ? kvasprintf+0x43/0x90 [ 0.184000] [] ? kset_create_and_add+0x58/0xa0 [ 0.184000] [] ? do_one_initcall+0x73/0x260 [ 0.184000] [] ? do_one_initcall+0x8a/0x260 [ 0.184000] [] ? acpi_sleep_proc_init+0x1f/0x1f [ 0.184000] [] ? parameq+0xf/0xb0 [ 0.184000] [] ? parse_args+0x205/0x510 [ 0.184000] [] ? kernel_init_freeable+0x153/0x25c [ 0.184000] [] ? kernel_init_freeable+0x1d0/0x25c [ 0.184000] [] ? kernel_init+0x9/0x120 [ 0.184000] [] ? schedule_tail+0xb/0xa0 [ 0.184000] [] ? ret_from_kernel_thread+0x21/0x38 [ 0.184000] [] ? rest_init+0x60/0x60 [ 0.184000] ================================================================================ -- Meelis Roos (mroos@linux.ee)