From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AF71C433EF for ; Fri, 17 Sep 2021 22:25:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 18B94610C8 for ; Fri, 17 Sep 2021 22:25:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344287AbhIQW0d (ORCPT ); Fri, 17 Sep 2021 18:26:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235545AbhIQW0b (ORCPT ); Fri, 17 Sep 2021 18:26:31 -0400 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E9D5C061574 for ; Fri, 17 Sep 2021 15:25:09 -0700 (PDT) Received: by mail-il1-x135.google.com with SMTP id b15so11830598ils.10 for ; Fri, 17 Sep 2021 15:25:09 -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=HEiuXk7HkKliOr+ibi8O2+f6q032THEBfR9Xzj70n0Y=; b=CqzQEPt/32deaT5IQGJKdhd0QOv+Wod37sD+PfFdQU8nBl2WlQjV21rMMI1w6qkKeJ kI0OlEOrPqtcmNNhWTi/0RLvOtN0XJCvPJReuv4dPpazZuRvfydn4IHgUFqMhdb2LgaM 95Na2KuEuuBu/pbx1wjyuMFe6l6hqBXBDr7mU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HEiuXk7HkKliOr+ibi8O2+f6q032THEBfR9Xzj70n0Y=; b=0z12/mT/Oay2u3E3rW1YUa1FmK2GJqjkGQ7AIfMlewkUNMI7hBn1FOLpeY9kpxA9h7 Vnj1QzCMJhFe2hbNRVcAv62IR09xKXhe6eS61yMSc7LaphxKYKvhTUZtFPK8kEzJP0c+ gJ1W7WIG2sGhqDm8K4w54Qvh32Lx0xcCWpf3t+RTtLrE58lkvPKgMd6+PBZpF+NA20WY igbpHR43Rdcu0zpPLLLCAVKxc2d1AfoJx42HHrwGh6XxvAVY8WzMnW7mc1eC0d8g6qP7 qGtAj1wLqs9yQW8/mMQglB6IVhEtutMNF37UAvNLssg/4t+YgTC22RTm8eBtKSbEX8VS b3iQ== X-Gm-Message-State: AOAM53171i7oHjifW+ON6+1Z6SYRrPOWiPrto60cgVxA0HPOJTjx+bS0 7gmciVK95YvxsrYgZq2I8O+kGp1Hb8IRM8dXqmE= X-Google-Smtp-Source: ABdhPJwOBcOAGQV9WUp/0uALD0z6VL8IUh6yCufWIN4jAcxNlTopJP0Z5wRx2NwVjPiKZ3JG0RSARw== X-Received: by 2002:a92:d2d1:: with SMTP id w17mr9609952ilg.145.1631917508309; Fri, 17 Sep 2021 15:25:08 -0700 (PDT) Received: from mail-il1-f179.google.com (mail-il1-f179.google.com. [209.85.166.179]) by smtp.gmail.com with ESMTPSA id c84sm1346519iof.5.2021.09.17.15.25.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Sep 2021 15:25:08 -0700 (PDT) Received: by mail-il1-f179.google.com with SMTP id x2so11814573ila.11 for ; Fri, 17 Sep 2021 15:25:07 -0700 (PDT) X-Received: by 2002:a92:6a05:: with SMTP id f5mr9364986ilc.140.1631917507704; Fri, 17 Sep 2021 15:25:07 -0700 (PDT) MIME-Version: 1.0 References: <202109151423.43604.linux@zary.sk> <202109162227.17415.linux@zary.sk> <20210916210509.GG4323@worktop.programming.kicks-ass.net> <202109171011.31916.linux@zary.sk> In-Reply-To: From: Linus Torvalds Date: Fri, 17 Sep 2021 15:24:51 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86/iopl: Fake iopl(3) CLI/STI usage To: Peter Zijlstra Cc: Ondrej Zary , Thomas Gleixner , "the arch/x86 maintainers" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 17, 2021 at 3:23 PM Linus Torvalds wrote: > > I think the proper thing to do is perhaps something like The alternative is to just ignore cs_abse entirely, and just use "regs->ip", which makes this all even easier. If somebody uses a code segment _and_ cli/sti, maybe they should just get the SIGSEGV? Linus