Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1226127imm; Tue, 15 May 2018 16:07:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrzyMjvoWTUFrsR4zk+aJtHtDn0ta/PKHVG8p2+Iv9IKiO0ZFSORO6doTJLei/fzSYzZ57R X-Received: by 2002:a17:902:9883:: with SMTP id s3-v6mr16555982plp.179.1526425635547; Tue, 15 May 2018 16:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526425635; cv=none; d=google.com; s=arc-20160816; b=O1qGpAW0xbOrqMpjbPWCZP65HMn80XwnC/e0NTQsXL+CfilgCnni7etRyWGCWicoWp 0Hm38zZZ2h0h7zStuaUGpxTgeg4kiJ6PgR/RAUtMXcc3WzTxOupXlIDGzZ92hsQnWgjl gk7H1J4WG+LGyFczjBsuIwcXx7tuIV4Ux0cHOKsKPPft9isgNKon3+FzOL+VuzhGEmWC Lz0g/3HV6Fdkxsx5734Q3RpnwgForRxy4foTVisqz8we7YkjGJoST+vPspe5fcteNtkE RTlyT84buCL2YF2OIlOTtZumbIUYBZu6cNLimkx3AvIo0TeOCgzVBxJfSbSfYffLc2De e6Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=5GSiY0REbTyzt/eJgknA9AjnuS7L3qnVUVnKcbtejUA=; b=cBQeNJut0KXFfN0iBFrCo9YsSZDIoSJMx7iO6I5N6hbrERYRUGtoiJGlRh3ch3P68C qHIgOaGJekCXeNwLp6uNrM/+k60324xUEjMFFVz7eR2i1jhyrgZmlJU3n4jnB1/3Z0PB 6uS45ys1bamSXpTwfeaa/sX7dt6EDHQw8feOyrzQNWDwEiYteID6C2nLrlBqEWw5G/AD PE8/m5rY5VgmzJA9VqVdfavf/lF+xnrSi4rppRbsFDcwwyidsJYOATAfjXgOvUw+lfrh un358QtoXu3r5JbNBAt0KKHKG6g7poNyMVcgh+RhppO/vK1eNVyGgWowOazMVkZS/Rhb Nm5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Z1ueaJjJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si1148745pfc.106.2018.05.15.16.07.01; Tue, 15 May 2018 16:07:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Z1ueaJjJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752265AbeEOXFq (ORCPT + 99 others); Tue, 15 May 2018 19:05:46 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:51550 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbeEOXFp (ORCPT ); Tue, 15 May 2018 19:05:45 -0400 Received: by mail-it0-f67.google.com with SMTP id n202-v6so5861134ita.1 for ; Tue, 15 May 2018 16:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5GSiY0REbTyzt/eJgknA9AjnuS7L3qnVUVnKcbtejUA=; b=Z1ueaJjJyHeiDCXokOnIP08O9f4wM/swHwuBm0orXAvbruaDECy59x4PHblqOsbzai VEzDnsXo9mTYqpPvVugSVFgGn8sFQNZ3cEJ6zqZhQKXg5nmdkQitQ9HI83GaqRnFyG4R 2zBkpCd1f1iMdMW6KaweDp8a82jHSjKtejuC8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5GSiY0REbTyzt/eJgknA9AjnuS7L3qnVUVnKcbtejUA=; b=Ll/IyQyXPD0051+vSqsqNcndNKYNA9Yeg2NJ/LLxcLMj3jN6x3xsLMFdTWTh9O5GG0 N2Ma0G0pxkphWYyStNqFuGlk/H3ZQj/h0g7f/ICrdzKT/3H46M6kCBSkEGUJnbwMc9UU SY2sTZE9/0BRlIJ8NBNk1KUpD1N0MjzHhtUisLw+vkvZ52WPZUOXQIWY8cwSSlKxpI32 q90ZGDLJ+1p1XYJmxkpllZBWgnqsnLeNPTL2LhIIB6+Z6pZ1MpMxRT4WHDHhgEa5e9ew Q7bmzZOeUPCmQjmJs9hGcv8Dhjr9Mpy82ginTAY7Cu1eU+VQthrvwwDNhAHj6/HtZ+yp XKVw== X-Gm-Message-State: ALKqPwfxvlsfHrzJ4fveWH2mX3UaUAAOYRmTNzrw45hDkWE64HUcbo77 T0QTgWAWRKHJ5jYE2F2Hl6OQzYFGu1Zh0DdAl6E= X-Received: by 2002:a6b:dc12:: with SMTP id s18-v6mr19274144ioc.203.1526425544431; Tue, 15 May 2018 16:05:44 -0700 (PDT) MIME-Version: 1.0 References: <20180515080033.GA7714@yexl-desktop> <20180515210757.GA12225@avx2> <20180515214337.GA18021@avx2> <20180515222211.ods5hzne46hozojq@treble> <20180515224354.zmygmsnlqj5lrdbo@treble> In-Reply-To: From: Linus Torvalds Date: Tue, 15 May 2018 16:05:33 -0700 Message-ID: Subject: Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##] To: Josh Poimboeuf Cc: Alexey Dobriyan , Peter Anvin , kernel test robot , Ingo Molnar , Thomas Gleixner , Andrew Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , Peter Zijlstra , Linux Kernel Mailing List , Peter Anvin , tipbuild@zytor.com, LKP Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Side note: doing some grepping, I find some other sequences that are a bit scary, like this: arch/x86/kernel/acpi/wakeup_32.S-.data arch/x86/kernel/acpi/wakeup_32.S-ALIGN arch/x86/kernel/acpi/wakeup_32.S:ENTRY(saved_magic) .long 0 arch/x86/kernel/acpi/wakeup_32.S:ENTRY(saved_eip) .long 0 so apparently people are using ENTRY() for data too (the same pattern exists in wakeup_64.S). So we end up having those odd 0x90 bytes (now 0xcc) in the data section as "padding" between those two values. Crazy. Not an actual problem, but it does show that people seem to be mis-using ENTRY(). There that padding is actually entirely wrong. We do *not* want to pad between those "saved_xyz" fields. I think those should use GLOBAL too. Or lookie here: arch/x86/kernel/head_32.S-# boot GDT descriptor (later on used by CPU#0): arch/x86/kernel/head_32.S- .word 0 # 32 bit align gdt_desc.address arch/x86/kernel/head_32.S:ENTRY(early_gdt_descr) arch/x86/kernel/head_32.S- .word GDT_ENTRIES*8-1 arch/x86/kernel/head_32.S- .long gdt_page /* Overwritten for secondary CPUs */ where ENTRY() will actually screw up how the code says it wants to align the address, but now it doesn't. I wonder if there's some way to add a test for "ENTRY only works in a code section"? My grep was just me doing a visual scan, I might have missed something. Linus