Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1245746imm; Tue, 15 May 2018 16:29:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo7DsOMC/ZGWvTZ8o+P+Kn7gWbQ0EM5dMEiG15igBy25N4rdvMjrHO8vl7Bi5SltmIU8Iqk X-Received: by 2002:a17:902:780a:: with SMTP id p10-v6mr16432648pll.281.1526426977816; Tue, 15 May 2018 16:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526426977; cv=none; d=google.com; s=arc-20160816; b=bmDYf30QWIzKmF/3xe3olb+HGczyWPQGUfbhsWr0YnL37G/X82jRY8zyjNEjS2aXm6 NDxsC8ewlB2UyoD9xJ6uIK0cLx+LRT67fUOi13PDrY6JaSkgvNVWJdvnEaZeTv/ogZ8y aC2mu3pUztBwOw3SyA3DUUsaixeu6DoFI4xtihHvu7HG77cDvjzwQSTSjjl42WV6/CI/ 0BfA6fJ6cMj3tbXWVuUyQ+4IlIer3pSX1AHV9x4KOtq9FfeFhe3YU/tGMc/2Znomy2Ts zaOr828XNmutklo70El27yPL1KqcViu32jcVkdw9we6uggqn7unZk/OcBBor8WOvo+rr 8GQQ== 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=M/mfMdILkOu3to3jgEBT32VrcTPnE1G13xp088amRVo=; b=ngRvbMvLtQSpENvihwEkeFtgT7oyrGG4feq+pHwEU/lFs2WtObn+xZjzlJC/24gdYF ImXBBHOlfgkSr9DoVIYUpdOCVFQcYhtapQgP2jXCflpOs5VRp1vGWQYFeWmpGb8TXWUs GLvVtpKVgQuKIh2Ix/QnXEATtADv3GwjOqycTKrH6bhwnalP+TEZvqIctjPWQAMof062 pl//T795F+9O2grmriq2LvXN4DB8EN8Ym0PylkwRIE6SuW7uDHyCyTWbTTjlaCVjoPkR 7d7n5vKNJfAvcN6YJ06fb7xRJu4toKQbe9YlA4YooCPIHCDbf9DUkHAtjVOQzIBkb83p 6bLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Y5jUTtUm; 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 d6-v6si1181643pfk.166.2018.05.15.16.29.18; Tue, 15 May 2018 16:29:37 -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=Y5jUTtUm; 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 S1752002AbeEOX3M (ORCPT + 99 others); Tue, 15 May 2018 19:29:12 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:37543 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbeEOX3K (ORCPT ); Tue, 15 May 2018 19:29:10 -0400 Received: by mail-it0-f66.google.com with SMTP id 70-v6so6352290ity.2 for ; Tue, 15 May 2018 16:29:10 -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=M/mfMdILkOu3to3jgEBT32VrcTPnE1G13xp088amRVo=; b=Y5jUTtUm/PK8+L+xBqd+VsYwgHzt7KF3PzdADO1QyGN9isIEsIOFg/udth+5mI4FE3 clC/xdW78kZru4vuWRdzNYG1wiEoVxRXptLPWtBBkhh6phykiNp8VlZq8QOpWtbM6Ngy JLctho28E7UnIA2B66nLcCW9Y5WlvxYH590Ws= 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=M/mfMdILkOu3to3jgEBT32VrcTPnE1G13xp088amRVo=; b=BGPFTZRpldo5fsBZWHvUrtQlM2vlKQUFPKXXj0B105oHnvVY6y3a4XeG1OrJN9kz6f /PmNcStwZxTzEq4AiXajmf+abQupXaFoE+olmp1AV29+xs/jIopIXfegEct1d6rRHC/n 108eCNYS2WZTNvWafgjeGpLyTOjvQlDWFM1537VaVVw0f3lmRdkNspkd5MAH+fScBoYs 8lx5xyeKHJxo2zlY+JSY0ldFg0wDs+HhqQFuGdgJOuK5oX6G7r3UEH9FMoCh98Pc0qvY sqpBXCzDDkWb6S7x9Req0tZgwQlM8D6hhaLJzhX/cFWgHm86jIdIa/QCnlP+XfM7xCUZ NdFw== X-Gm-Message-State: ALKqPwd/uIjAxm0WC/TDyEy4Q9+k61AOjGK4Amqzl+zzGDTAa0kemGnY K6vLnMwyc923+tq45y2QkJYcmLgdp842vKBJkVc= X-Received: by 2002:a24:2213:: with SMTP id o19-v6mr61029ito.16.1526426949571; Tue, 15 May 2018 16:29:09 -0700 (PDT) MIME-Version: 1.0 References: <20180515080033.GA7714@yexl-desktop> <20180515210757.GA12225@avx2> <20180515214337.GA18021@avx2> <20180515225028.GA21902@avx2> <20180515225845.GB21902@avx2> In-Reply-To: <20180515225845.GB21902@avx2> From: Linus Torvalds Date: Tue, 15 May 2018 16:28:58 -0700 Message-ID: Subject: Re: [PATCH v2] x86/asm: Pad assembly functions with INT3 instructions To: Alexey Dobriyan Cc: Ingo Molnar , Thomas Gleixner , Peter Anvin , kernel test robot , Andrew Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , Josh Poimboeuf , Peter Zijlstra , Linux Kernel Mailing List , Peter Anvin , tipbuild@zytor.com, LKP , "the arch/x86 maintainers" 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 On Tue, May 15, 2018 at 3:58 PM Alexey Dobriyan wrote: > jb resume_kernel # not returning to v8086 or userspace > - > -ENTRY(resume_userspace) I went back in history, and we used to have multiple "jmp resume_userspace" including even the vm86.c code (in a different file) doing that, so there *used* to be a reason for this being a global symbol (and yes, we had a fall-through to that global symbol even in those days). That said, I also look at "resume_kernel". There's no reason to make that globally visible afaik. It looks local to entry_32.S, and should look like restore_all rather than resume_userspace. So we probably should remove the ENTRY() for that too, and just make it be ALIGN resume_kernel: instead? I guess the reason for removing that other ENTRY() is different from this case, though.. Linus