Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5421988imm; Sat, 19 May 2018 01:36:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo8DiCWugexh1xt/q+okUPHAT0/UuxqiVhJe/e0TmDs/axn8FYzoryOihgNRcmf/lX+QL9W X-Received: by 2002:a63:6945:: with SMTP id e66-v6mr10025050pgc.306.1526719001333; Sat, 19 May 2018 01:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526719001; cv=none; d=google.com; s=arc-20160816; b=0s1ve+/RyK21l7EKxtPNTeNwOfK63+Jq0buUfwVTrLcHXfqRsGaBunk9w24CHF3vak 0V2TuRbu7RCwACfPm/JLvlV55QmnA/yM7sZnujS414gdtP6DQ3fo3Nim9ymJbA5lS592 JCCSERqM74LdZ5+6m4jOx/9AlkVVi4trqmnRD+nEYuHKcfjqXFQvnw5gmw9mFUZbgbHB FIo7SQRLvYX+9RZvte5eAc4sKsJrQcUuUhCbmVZcxszTmZaX1TNW9obATk8YVhPXsM+M 9vQi5RMzDobLYzoNEfCPR46/1qYJLEZoFNFMqGGkaQHskh+LMz+1hrYwBSBq83UznCyZ PVlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=l6tfFsWyJAuyxU7T9xRrL5Odpi+6fy66R0Dci/QayZk=; b=d9LjSoU7HzbioNHsgufooVkKbDK1o6N4lCgV3RiVc2SsF6KCs8Wq9zxSem9PWE682i f20Z4TWU0/bhj06DeLuJkR4crT1/UBKPY9Mu6Rky9mmHJn4VLm7YjowVNFYCkXcvGumu 6Cp3Hi/kKARUx4DqK5ZDJEQ7Yo38GvBTuW1i/CwR1fGuriYcbuRsy9rTPSrrSGs0hhQx xEAVCta8EdBdcH+mMkHHJ/mpkCny36OMGBBzDIdmujTMAjXxD5aFVB9CPqolglaUx25W EL3W68bh9LBjdhWk1mBnoYSF1Jl/h/NK8Y0UzomTMpmOmJknuaCTxGQsnpcP9d3Muid0 iO9Q== ARC-Authentication-Results: i=1; mx.google.com; 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 q11-v6si9057669pll.15.2018.05.19.01.36.25; Sat, 19 May 2018 01:36:41 -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; 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 S1752160AbeESIgJ (ORCPT + 99 others); Sat, 19 May 2018 04:36:09 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:54706 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbeESIgF (ORCPT ); Sat, 19 May 2018 04:36:05 -0400 Received: from 79.184.254.241.ipv4.supernova.orange.pl (79.184.254.241) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 790d073630058fd3; Sat, 19 May 2018 10:36:03 +0200 From: "Rafael J. Wysocki" To: Pavel Machek Cc: Linus Torvalds , Josh Poimboeuf , 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 Subject: Re: "interesting" entry in hibernation code was Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##] Date: Sat, 19 May 2018 10:35:27 +0200 Message-ID: <6938886.d705BbSbgG@aspire.rjw.lan> In-Reply-To: <20180519070008.GC30676@amd> References: <20180515080033.GA7714@yexl-desktop> <20180519070008.GC30676@amd> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday, May 19, 2018 9:00:08 AM CEST Pavel Machek wrote: > Hi! > > > 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. > > Sorry about that. I'm pretty sure intention was simply to use the > variable from C code.. and ENTRY() worked. I was not aware that it has > side effect of padding... > > Let me see how this can be improved... (untested). > > diff --git a/arch/x86/kernel/acpi/wakeup_32.S b/arch/x86/kernel/acpi/wakeup_32.S > index 0c26b1b..d6f477f 100644 > --- a/arch/x86/kernel/acpi/wakeup_32.S > +++ b/arch/x86/kernel/acpi/wakeup_32.S > @@ -89,8 +89,8 @@ ret_point: > > .data > ALIGN > -ENTRY(saved_magic) .long 0 > -ENTRY(saved_eip) .long 0 > +GLOBAL(saved_magic) .long 0 > +saved_eip: .long 0 > > # saved registers > saved_idt: .long 0,0 The Jiri Slaby's annotation patches touch this: https://patchwork.kernel.org/patch/10409073/ Thanks, Rafael