Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1214658pxf; Fri, 12 Mar 2021 04:55:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5b6qcR1Qofs6iUkckRj9BS40soWRCfK9iPslUykdV24+0lIlCUbflXpKLPOl45Rm5imZ/ X-Received: by 2002:a17:906:d787:: with SMTP id pj7mr8170027ejb.257.1615553710108; Fri, 12 Mar 2021 04:55:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615553710; cv=none; d=google.com; s=arc-20160816; b=lYdfaHLbaMRpj6Sg3XdxeUSVYow2c5NioV6KVLNyCrYYYM/B2d/u3iJmEuxseGsK+X 2JX5BwZdBEVhqWJVBWNAtECrYdPuUPPuGN3SKq/qGddgCng19jcf8alc2+oCm7U8zpcy 9WIriL/Yyd0l6dIjbhnXOqTAOn/LMYX7ArUhK18J4+B/5NHYesq5v55t+zfhU2rLCZXI QykNJMw1bHGa1f7cSdrKvUCcmnNuOnEpg3M4MmlNnRJQS16OKGHBovztcqpsWl02KcZs ZSGPWocVxCE2Bq7ggJfrriguEc+w2c8xMO9YEX2gCKK620nZ7SUmcMpi7loaWLjdWosh xdKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:to; bh=D/BPIs9p+W9dcxjyDyJ6ndqBB6WOp1qnNWUVowW5niw=; b=KVDv2FcAOLT583LMwb8a4hUK7EMfX3DzE9fioefIxkYRdKfpV9QnWAgRfg07Y4Z25T 9sahLSARFRzJagmwDw52iI8FyiNnNDciFStQ9AFEXEx+FE5PwMzyh8A/oHMGOIZPu+pB spJMzlDAU5IcxDrq3R9ldFMmh28NkHlInW4p7hloc/wNx0f4P59C1C4ZoOZfbNb4heFj i3hX3qu9EQuETl4Ce7/n/VfqowFFxNsa1IAcuVhPoOB09aS6c97iItD8tOMTcLdNAoyb JL551HBAuw6CavVVTJ6bM8hkhMfh/HPZvAbN+Q+/m6VE1c5nPhHlgScQiKW6TRdYDZus BuLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si3954445edq.475.2021.03.12.04.54.47; Fri, 12 Mar 2021 04:55:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231455AbhCLMwt (ORCPT + 99 others); Fri, 12 Mar 2021 07:52:49 -0500 Received: from lizzard.sbs.de ([194.138.37.39]:54876 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232762AbhCLMwZ (ORCPT ); Fri, 12 Mar 2021 07:52:25 -0500 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 12CCqMpT020506 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 Mar 2021 13:52:22 +0100 Received: from [167.87.253.211] ([167.87.253.211]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 12CCbL5i009474; Fri, 12 Mar 2021 13:37:22 +0100 To: Linux Kernel Mailing List , "linux-acpi@vger.kernel.org" From: Jan Kiszka Subject: "cache_from_obj: Wrong slab cache." on failing ACPI init Message-ID: Date: Fri, 12 Mar 2021 13:37:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, a wrong config surfaced a potential issue in the cleanup path of ACPI, at least according to my current understanding. Use x86_64_defconfig, add CONFIG_SLAB_FREELIST_HARDENED=y and disable CONFIG_PCI, then boot in QEMU (likely also real HW) to get this: ... [ 0.041398] ACPI: Added _OSI(Module Device) [ 0.041978] ACPI: Added _OSI(Processor Device) [ 0.042342] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.043060] ACPI: Added _OSI(Processor Aggregator Device) [ 0.043337] ACPI: Added _OSI(Linux-Dell-Video) [ 0.044095] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) [ 0.044341] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics) [ 0.045020] ACPI Error: AE_BAD_PARAMETER, During Region initialization (20210105/tbxfload-53) [ 0.045340] ACPI: Unable to load the System Description Tables [ 0.046076] ACPI Error: Could not remove SCI handler (20210105/evmisc-251) [ 0.046367] ------------[ cut here ]------------ [ 0.047004] cache_from_obj: Wrong slab cache. ftrace_event_field but object is from kmalloc-64 [ 0.047340] WARNING: CPU: 0 PID: 1 at ../mm/slab.h:456 kmem_cache_free+0x1c8/0x280 [ 0.048319] Modules linked in: [ 0.048335] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.12.0-rc2+ #7 [ 0.049174] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba527-rebuilt.opensuse.org 04/01/2014 [ 0.049336] RIP: 0010:kmem_cache_free+0x1c8/0x280 [ 0.050041] Code: 28 48 01 d8 48 85 db 0f 85 2d ff ff ff 0f 0b 48 8b 57 60 48 8b 4d 60 48 c7 c6 f0 5b c1 af 48 c7 c7 50 5c da af e8 c8 36 e8 ff <0f> 0b 48 89 de 48 89 ef e8 8b be ff ff 48 8b 0d 7c 9e e4 00 e9 a6 [ 0.050336] RSP: 0000:ffffb12e80017d90 EFLAGS: 00010282 [ 0.051135] RAX: 0000000000000000 RBX: ffff89570104f340 RCX: 00000000ffffdfff [ 0.051335] RDX: ffffb12e80017bb0 RSI: 00000000ffffdfff RDI: 0000000000000003 [ 0.052304] RBP: ffff895701042500 R08: 0000000000000000 R09: 0000000000000001 [ 0.052335] R10: 0000000000000001 R11: ffffb12e80017ba8 R12: ffffffffafdcb739 [ 0.053201] R13: ffff89570104f380 R14: ffff89578104f340 R15: 0000000000000000 [ 0.053335] FS: 0000000000000000(0000) GS:ffff89573ec00000(0000) knlGS:0000000000000000 [ 0.054337] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 0.055342] CR2: 0000000000000000 CR3: 000000001780c001 CR4: 0000000000370ef0 [ 0.056345] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 0.057291] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 0.057337] Call Trace: [ 0.057743] ? rdinit_setup+0x26/0x26 [ 0.058268] acpi_os_release_object+0x5/0x10 [ 0.058335] acpi_ns_delete_children+0x4b/0x60 [ 0.059168] acpi_ns_delete_namespace_subtree+0x5c/0x79 [ 0.059336] ? acpi_sleep_proc_init+0x1f/0x1f [ 0.059987] acpi_ns_terminate+0xc/0x31 [ 0.060335] acpi_ut_subsystem_shutdown+0x45/0xa1 [ 0.061060] ? acpi_sleep_proc_init+0x1f/0x1f [ 0.061335] acpi_terminate+0x5/0xf [ 0.062160] acpi_init+0x3f7/0x482 [ 0.062337] ? video_setup+0x79/0x79 [ 0.062958] ? acpi_sleep_proc_init+0x1f/0x1f [ 0.063335] do_one_initcall+0x3f/0x1c0 [ 0.063876] kernel_init_freeable+0x1bb/0x1f9 [ 0.064335] ? rest_init+0xb0/0xb0 [ 0.064833] kernel_init+0x5/0x110 [ 0.065329] ret_from_fork+0x22/0x30 [ 0.065338] ---[ end trace 8bfe26bf6796f23c ]--- [ 0.066028] ------------[ cut here ]------------ and many more of those. This was with current Linus head and also v5.10.23. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux