Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752714AbdLLP73 (ORCPT ); Tue, 12 Dec 2017 10:59:29 -0500 Received: from mail-by2nam03on0072.outbound.protection.outlook.com ([104.47.42.72]:19847 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750853AbdLLP7Z (ORCPT ); Tue, 12 Dec 2017 10:59:25 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vadim.Lomovtsev@cavium.com; From: Vadim Lomovtsev To: robert.moore@intel.com, lv.zheng@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org, linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org Cc: vadim.lomovtsev@cavium.com Subject: [BUG] acpica: ltp_acpi test case causes kernel crash at acpi_ns_walk_namespace Date: Tue, 12 Dec 2017 07:59:19 -0800 Message-Id: <1513094360-1414-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> X-Mailer: git-send-email 2.4.11 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: CY4PR1201CA0017.namprd12.prod.outlook.com (10.172.75.27) To CY4PR07MB2998.namprd07.prod.outlook.com (10.172.116.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f3488e10-8fa3-4241-d729-08d541795007 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307);SRVR:CY4PR07MB2998; X-Microsoft-Exchange-Diagnostics: 1;CY4PR07MB2998;3:8BoOvXeb9LYhi/UwNTUrOryfL0rshVr/JvFLMpt4+vgt6PGUo2PDZP6XwT1ykMjGbUmTF4WtV1XOVGpv7mHQGShzQok6v+G5XuxJo39KK/YX5HvDcPSZNB5JisGmv9ANdeGzd89JuRM3bgjSNSujDQhETwSz0bbfx8xmi4vCN+opl1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TVePCgOAtTpwTxiSr4dz8U2Od3TTLPF48Zl/VXojiIdBfuXE9yF7qD9JezXe+2eH8drqKS6wpFeXlii5tu2VYU9pXUgssL0CiOyqQWjQowSaW5C9T+9hJYQk/HL2Gf4MAkwAN+6zfQ4DuPbI8BRYFKzEqeL7GH1LDsIp7VZTvzl2Jga8pJX5gqLvhlOSXfltIA78X1fS020ujjmtVZzFc4NGB6u2CPzGiLRvNQP3EfqOWPfDMxAFwoknzqiJMmMCpS9F0PkRwU9bmzRMHsTPCui1KGU9E=;4:ByBxdkhvtiQ3b0OkAA5CHDbKkh9mEpaniJXj61CbLDBvWEx/EL4tsrnd3/AX+JsXKdD0NXHuPohkTCunNAB/u+sCvx7w5T7eBX82ZzDLrjxQOUfy6Q3g4V3CpPHMDiYYabMlIuZZKhTSn7u5QMLIcuYOkrKUV2JA70YaxsuEuhb0JmGmKh/7Af6HVYvFgR57Pvn6A7sdqPChIf53SOUzGazLlX3gmy0cV5a1yPOmndn5jqkLKjMBpWYHJw/jlOzuoAmrNVB/bJpmlRj6G+8x2Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(3002001)(3231023)(10201501046)(6041248)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123564025)(6072148)(201708071742011);SRVR:CY4PR07MB2998;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY4PR07MB2998; X-Forefront-PRVS: 051900244E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(376002)(366004)(346002)(189003)(199004)(25786009)(6486002)(53936002)(42882006)(305945005)(575784001)(107886003)(105586002)(69596002)(316002)(7736002)(97736004)(16586007)(6512007)(52116002)(16526018)(68736007)(8936002)(106356001)(6666003)(50226002)(4326008)(53416004)(51416003)(47776003)(66066001)(478600001)(50466002)(8676002)(2906002)(6116002)(81166006)(72206003)(3846002)(48376002)(59450400001)(45080400002)(5660300001)(81156014)(36756003)(6506006)(19627235001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR07MB2998;H:localhost.localdomain.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR07MB2998;23:L5agQsx3xpOgPugH3sraiJzgWtkEBSM4WQNEVPNEr?= =?us-ascii?Q?z8Zqnc8UEVUZuPpqTsgx6tLuwfyRWzZLwVJET4djJ+B0YNW+l0DmbYWeSwY0?= =?us-ascii?Q?zJ7HJ7EwTTGZIiFFb07ljynMvJFXiNkLMLIUuDfIoIQxRg1EzqzVccSWzL3G?= =?us-ascii?Q?5Y+T3bbvDO+JK1ua/uOz7yoVXbKTIe+phNRnF89GFi2s05d9MrtZvrWw8KTF?= =?us-ascii?Q?oNOt1JJyRdPfqTv9aBFXPIqSfMvBtAhddc1mGC1rKFAe5MIG74PNylbGT8Nu?= =?us-ascii?Q?DH6j/FUkKJ1un2llhxZpQBIKcmaXccLeIyzEZ+AeSJvivJt5DIuwzSl1xYkL?= =?us-ascii?Q?tc0sYVwSulaSSf0MbSLlv7N6ZlFz5KHJ/Rf+ei1kMmOzeDohsrewS/90m7pP?= =?us-ascii?Q?u7hpolLDbZ0AeSHjcFb6Kf9IoRdEszaSR5QMjawpKKv8Q6HpIHvbjsKWHcdC?= =?us-ascii?Q?X1/th95K6uHuqIlT84UryLR5glqC+Ff9jFtv2Nblgd/eVbBWF9GuxyThseEY?= =?us-ascii?Q?tDYz4ssSMyjJBFv+IUOlAkQJD1lDPertCLFDwqTwhPIFBqBgLHexUdpyKeKi?= =?us-ascii?Q?KXbyRW2ERPppDiU4vZMElyGU91tLF+TUMEGWLuFR7B+b1WuwPJuMPT9VApKT?= =?us-ascii?Q?rnln+61mtHJZ/mvQXVAKew0ZL4eQ/oPkzzNrLZjxZXnjCSo1s/X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rHJHyQS+4eph8tmfb5c8yQbZEBoxaMEtPODp9fT6eCDpc0=;24:VVnh7wtq+Y/1Q4wW1Oiv7I5GF/WDRMfv+XItFurTeHe5e+wyADxfNUSvjURwYZQ5DDYwguFtlf5kGy2dOqxsdrOurlsy1a8qhVf8RRMf3TY=;7:guGxx4uCnhiX65z7uB+D0OASpJrrJUhzhTjjLG7kCFi+YMXRplGFuRGE3MKNaq05l9KtOZHIbzk5LkS0zb0RF11hJvz9ANTFhHE3aGnrwsMdW9JvX/KuSUkzPP0IJW+W2eYg63jpXprhHbgjmfF+Xbt2c4zbRfQaDidKDpxugHAIRxmzWbanekF5tSe5/1XdpMLTtzfM9VYs2wqyBQwbfB/H7bTYcG+adqHnAJFrT/vw72wN4SEHWn3nJ7/kq/pm SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2017 15:59:22.8738 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f3488e10-8fa3-4241-d729-08d541795007 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB2998 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3233 Lines: 64 Hi guys, While running LTP tests I've faced kernel crash caused by ltp_acpi test case. I have ACPI support enabled in kernel but kernel is boot with FDT having ACPI disabled. The ltp_acpi test case application is built along with ltp_acpi_cmds module to run ACPI tests. So my question is - should we update acpica implementation at kernel side by adding 'acpi_disabled' variable checking to the 'acpi_get_devices' function (see patch next to this email, maybe not a good approach) or this should be fixed at LTP side so the ltp_acpi_cmds should be updated in order to check if acpi is enabled before running tests ? Please check for kernel trace below: [ 928.815454] Modules linked in: ltp_acpi_cmds(OE) ip6t_rpfilter ipt_REJECT [ .. ] 2 05:12:36 ... kernel:Internal error: Oops: 96000007 [#1] SMP [ 928.903937] ipmi_devintf mdio_thunder thunderx_edac mdio_cavium ipmi_msghandler dm_mirror dm_region_hash dm_log dm_mod dax [ 928.917581] CPU: 32 PID: 27679 Comm: ltp_acpi Tainted: G OE 4.15.0-rc3+ #1 [ 928.928154] Hardware name: Gigabyte MT60-SC0-00_24SATA_02/MT60-SC0-00_24SATA_02, BIOS ThunderX-Firmware-Release-1.22.18-Build_02 Oct 17 2017 [ 928.946235] pstate: 60000005 (nZCv daif -PAN -UAO) [ 928.953764] pc : acpi_ns_walk_namespace+0x64/0x1cc [ 928.961296] lr : acpi_get_devices+0x74/0x90 [ 928.968159] sp : fffffc004d50fba0 [ 928.974170] x29: fffffc004d50fba0 x28: 0000000000000001 [ 928.982234] x27: fffffc00088a1000 x26: 0000000000000001 [ 928.990308] x25: 0000000000000000 x24: fffffc004d50fc58 [ 928.998413] x23: 0000000000000000 x22: 0000000000000001 [ 929.006536] x21: 0000000000000000 x20: fffffc00084fb2c4 [ 929.014680] x19: 0000000000000000 x18: 000003ffe27a5d70 [ 929.022848] x17: 0000000000000000 x16: 0000000000000000 [ 929.031030] x15: 0000000000005788 x14: 0e200e200e200e20 [ 929.039231] x13: 0000000000000008 x12: 0000000000000001 [ 929.047449] x11: 00000000ffffffff x10: ffffff00044e39a0 [ 929.055695] x9 : 00000000000009eb x8 : 0000000000000001 [ 929.063972] x7 : 0000000000000000 x6 : fffffc004d50fc58 [ 929.072272] x5 : 0000000000000000 x4 : fffffc00084fb2c4 [ 929.080583] x3 : 0000000000000001 x2 : 00000000ffffffff [ 929.088915] x1 : ffffffffffffffff x0 : fffffc00095fa000 [ 929.097284] Process ltp_acpi (pid: 27679, stack limit = 0x0000000060c25f0d) [ 929.107389] Call trace: [ 929.112989] acpi_ns_walk_namespace+0x64/0x1cc [ 929.120648] acpi_get_devices+0x74/0x90 [ 929.127639] sys_tcase+0x158/0x618 [ltp_acpi_cmds] [ 929.135610] dev_attr_store+0x40/0x54 [ 929.142396] sysfs_kf_write+0x5c/0x6c [ 929.149123] kernfs_fop_write+0xc8/0x1d0 [ 929.156122] __vfs_write+0x48/0x150 [ 929.162658] vfs_write+0xa8/0x1a0 [ 929.168994] SyS_write+0x54/0xb0 [ 929.175234] __sys_trace_return+0x0/0x4 [ 929.182099] Code: f9433c13 5280003c 52800017 0a1c007a (f9400e76) [ 929.191352] ---[ end trace ae3e06a2af30d07c ]--- [ 929.199061] Kernel panic - not syncing: Fatal exception [ 929.207409] SMP: stopping secondary CPUs [ 929.214374] Kernel Offset: disabled [ 929.220781] CPU features: 0x100108 [ 929.227004] Memory Limit: none [ 929.232805] ---[ end Kernel panic - not syncing: Fatal exception WBR, Vadim