Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp411565pxu; Thu, 26 Nov 2020 01:41:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxugl1xz5GHES+Nr4XAE+bBEMb0DqHRDvpqA5Sgwn9hAhETpwB3a8Y8yL4/J1s/HOlxlmZe X-Received: by 2002:a17:906:f286:: with SMTP id gu6mr1962075ejb.182.1606383710312; Thu, 26 Nov 2020 01:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606383710; cv=none; d=google.com; s=arc-20160816; b=oCv2uZHEYugL0koSO15KXbxs8U3Y1B1UVvwiGwcAozlCiCGg/1zSH8VsCa/i/TbUz7 fLQt+SYY2CbFPCmoDcsbactqcepsA/16s0QMLbaLEYidqsqZbcyUmz6AtOLZWlAFmWnx EBxpbde7sjh5PshYHLb4marOhEy8XXOwO0wDzpOW8ZQW9dCzu9x/tWC8TnN+7MQj8Bvl i1eXRaQy4aiasfOrhh7iNXbPmw8M1KID+6Z9mHJwyckoyWKtRfZ+fJ1y4gwF4X9Z1+ni +R52LSYbWJ3qw2eTZIEI8dwv1kecb2LVpaCSyWhZjLpOw9dIigi4ArZLFpC+0VzbpSup pjyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=m4GPv/KrxL/EKHDV5VuB3uSSYTmTjv1zYqG7ehiPM7Y=; b=aDV1Nyo3eBGWerBAFvLVLrcfmawQhlx6nposT9fFIZagx1yDcyxcmrVVVSGNm0Jtp8 CZkP7Cu3vu5PN/WWLwtXWSKeW5YFmWg/NP6zDRxDXwb4KehPasy2ebyp0NZnQK+Bvm72 LzgfmyQsUm87u/O+IkcNnOa9IIPdnPi3APh6OQIbdG+MHAyqhgcQa0ATFlg/tuNmMRTS bz6RDYUn3iRO71Q3W09D+tkHBi4TAqyI+Vnc7F5Dd7ygyCHDBSiJFcRXWYjX+KLjcGlY m5KJWlHkRtO+oc/+l969M0YgtGtdQB05x9ihAHnGuD5D3hYusTQZLxrF/NeYBRWNKu5P PaHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rHAcqdKB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn5si3318842ejc.533.2020.11.26.01.41.28; Thu, 26 Nov 2020 01:41:50 -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; dkim=pass header.i=@linaro.org header.s=google header.b=rHAcqdKB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387594AbgKZEo6 (ORCPT + 99 others); Wed, 25 Nov 2020 23:44:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387571AbgKZEo6 (ORCPT ); Wed, 25 Nov 2020 23:44:58 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A338C061A04 for ; Wed, 25 Nov 2020 20:44:57 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id gj5so958978ejb.8 for ; Wed, 25 Nov 2020 20:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=m4GPv/KrxL/EKHDV5VuB3uSSYTmTjv1zYqG7ehiPM7Y=; b=rHAcqdKBDrMu+67OseFiZgy7JFk1eXMh4r2G5QgsIW1tZuATQ2cptDcVjNO2jHiAHr IMmo2krmNYze7rzsOqycC/jRmpnT5I76/PXlT2VHJ9F5wFiJsE9FsgHNzspAK9nRS9Yu UImlDgcz581tgRQLT2i3C5EzzlS4NsfKAhOaPg1IWBE5QbnfSMwgmS6rj6M/dpdL3VBw vAz9itGR5gcIweVDnohjvkd1Yc+Vj2vrQZV4/IEahJc09v2HLn2MoN97m0G9IQf8PV8O 2AuVnIH2bLtRXvTxcF6w7ueBISjS9eXWFTa5m8loGYx+5pea6ftb5UjnlseenJhW60Id y3HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=m4GPv/KrxL/EKHDV5VuB3uSSYTmTjv1zYqG7ehiPM7Y=; b=L4czvYl0GnwWIh/QUOqF8LWhIv4XAOLx7YDAydNpkClsS7xQ38FXENB2T8dVmIzaO3 JXcUU8DsCFjvaaGjqil9k7Bgexq1iBmzXyIini1E/QNk4PTVG52ZDiz2OqdsX8nE/fPc Rt2AY4BChQvgz7xpTXonnr3inPlAwCROgfTvf1uXnPEiGhfqJojPOye13vGBjfRMUM7r QspVcIupFnRt1qT3Tj5hCymdYJROEtno00zgZS/sK/ulXP6NTkDhafSNv70e82Qg4GX3 jcexETarQQxMVvrTOv0EJ1YXY3J4tzrVe/7PgYwWnXCpWC0L5/pQY0izhC2BC0H9TI8W OZTw== X-Gm-Message-State: AOAM532PDuSkgQydKpC01wnNPYm7wIXAQrB0Y8ZPgv8FpATqmNhQLuv/ nJ4Ce7ztC32w8QAp+zIb2YKSe3+uv9KNfOpBqcL1xA== X-Received: by 2002:a17:906:bd2:: with SMTP id y18mr1040957ejg.503.1606365894859; Wed, 25 Nov 2020 20:44:54 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Thu, 26 Nov 2020 10:14:43 +0530 Message-ID: Subject: [stable 4.9] PANIC: double fault, error_code: 0x0 - clang boot failed on x86_64 To: linux-stable , open list , lkft-triage@lists.linaro.org Cc: Greg Kroah-Hartman , Sasha Levin , clang-built-linux , x86@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linaro recently started building and testing with stable branches with clang. Stable 4.9 branch kernel built with clang 10 boot crashed on x86 and qemu_x86. We do not have base line results to compare with. steps to build and boot: # build kernel with tuxmake # sudo pip3 install -U tuxmake # tuxmake --runtime docker --target-arch x86 --toolchain clang-10 --kconfig defconfig --kconfig-add https://builds.tuxbuild.com/1kgtX7QEDmhvj6OfbZBdlGaEple/config # boot qemu_x86_64 # /usr/bin/qemu-system-x86_64 -cpu host -enable-kvm -nographic -net nic,model=virtio,macaddr=DE:AD:BE:EF:66:14 -net tap -m 1024 -monitor none -kernel kernel/bzImage --append "root=/dev/sda rootwait console=ttyS0,115200" -hda rootfs/rpb-console-image-lkft-intel-corei7-64-20201022181159-3085.rootfs.ext4 -m 4096 -smp 4 -nographic Crash log: --------------- [ 14.121499] Freeing unused kernel memory: 1896K [ 14.126962] random: fast init done [ 14.206005] PANIC: double fault, error_code: 0x0 [ 14.210633] CPU: 1 PID: 1 Comm: systemd Not tainted 4.9.246-rc1 #2 [ 14.216809] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.2 05/23/2018 [ 14.224196] task: ffff88026e2c0000 task.stack: ffffc90000020000 [ 14.230105] RIP: 0010:[] [] proc_dostring+0x13b/0x1e0 [ 14.238374] RSP: 0018:000000000000000c EFLAGS: 00010297 [ 14.243676] RAX: 00005638939fb850 RBX: 000000000000000c RCX: 00005638939fb850 [ 14.250799] RDX: 000000000000000c RSI: 0000000000000000 RDI: 000000000000007f [ 14.257925] RBP: ffffc90000023d98 R08: ffffc90000023ef8 R09: 00005638939fb850 [ 14.265049] R10: 0000000000000000 R11: ffffffff8117f9e0 R12: ffffffff82479cf0 [ 14.272171] R13: ffffc90000023ef8 R14: ffffc90000023dd8 R15: 000000000000007f [ 14.279298] FS: 00007f57fbce8840(0000) GS:ffff880277880000(0000) knlGS:0000000000000000 [ 14.287384] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 14.293120] CR2: fffffffffffffff8 CR3: 000000026d58a000 CR4: 0000000000360670 [ 14.300243] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 14.307368] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 14.314491] Stack: [ 14.316504] Call Trace: [ 14.318955] Code: c3 49 8b 10 31 f6 48 01 da 49 89 10 49 83 3e 00 74 49 41 83 c7 ff 49 63 ff 4c 89 c9 0f 1f 40 00 48 39 fe 73 36 48 89 c8 48 89 dc b0 9d 3a 00 85 c0 0f 85 8c 00 00 00 84 d2 74 1f 80 fa 0a 74 [ 14.338906] Kernel panic - not syncing: Machine halted. [ 14.344123] CPU: 1 PID: 1 Comm: systemd Not tainted 4.9.246-rc1 #2 [ 14.350291] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.2 05/23/2018 [ 14.357677] ffff880277888e80 ffffffff81518ae9 ffff880277888e98 ffffffff82971a10 [ 14.365129] 000000000000000f 0000000000000000 0000000000000086 ffffffff820c5d57 [ 14.372584] ffff880277888f08 ffffffff81175736 0000003000000008 ffff880277888f18 [ 14.380038] Call Trace: [ 14.382481] <#DF> [ 14.384406] [] dump_stack+0xa9/0x100 [ 14.389641] [] panic+0xe6/0x2a0 [ 14.394432] [] df_debug+0x31/0x40 [ 14.399389] [] do_double_fault+0x102/0x140 [ 14.405128] [] double_fault+0x27/0x30 [ 14.410440] [] ? proc_put_long+0xc0/0xc0 [ 14.416004] [] ? proc_dostring+0x13b/0x1e0 [ 14.421739] [ 14.423703] Kernel Offset: disabled [ 14.427209] ---[ end Kernel panic - not syncing: Machine halted. Reported-by: Naresh Kamboju full test log, https://lkft.validation.linaro.org/scheduler/job/1978901#L916 https://lkft.validation.linaro.org/scheduler/job/1980839#L578 -- Linaro LKFT https://lkft.linaro.org