Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3356216rdg; Tue, 17 Oct 2023 12:01:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/udK6lqjipene9EkoakFu6r0Xs3Fp6e7BhFhzN038UCQ2z13itNNOI6Q0J4gnyvOgJHFK X-Received: by 2002:a17:903:1207:b0:1c9:c920:6df3 with SMTP id l7-20020a170903120700b001c9c9206df3mr3434230plh.53.1697569297256; Tue, 17 Oct 2023 12:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697569297; cv=none; d=google.com; s=arc-20160816; b=RBuOUv894zrhm5hufiePan7BCzxE2f7eQRBUWnnsBDzskf8D/ZBBfVxeVIr8IU0Sdb m6HJjwBbyiP1yUODeRVHIbMZwPEbcl45l/6AQ2QEFb7MHl0y5wGeA+Rp8hEfcd2uzySR gJNl4WduDcTDASgcp7nvIE8BujByMX+xg+959Neb0ygiQKTkClQaRYK3tX/EX0VMK9Vu 01A6UBPGiIb/kCL4XVj7XMCtEMm02n82L7dew+wp46EBLJOSj5pLsedpG1Wy5gFd644F mxIVG4cC5d/Sg5DmLHOYRVHw/oOSArwZ4FvUEfDbux2mc3gzH9Kj9rN/VqlAyGnaRDC8 PlWg== 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:in-reply-to :references:mime-version:dkim-signature; bh=Q8eFHCOzN0B4Aj/Uzad3Mw8nk7BErU1ParoR6czT34U=; fh=2W7QWOT4LLEZc93hpAJV9qeXTsNW2Zd+/+ufcs7IIZU=; b=Z+4p4agmP7+MIonsEFOVH/RxiK7Dzk77JPSQkIGOur3yBi8QGBGpW/m1EKPIodWazW sPpfRBx3lw8kkjxOUakRrhVywuA2wT18wl1z6FFCVdzpfCXCLt8+trwms4vtM2vdfL6Q 2IOiUeFdp7puXv95JyKTrIyXj6k2gDPdv+DByMlXOT6vymUR7IvqRHiUfXGNnGJYyRD9 eOLZzpigbS6axf5s3MP0Ms3dUBP0jKvv6TMv2RG9zJjXmTcqpu6epsXL0n/ulyBRbvIv 56AAs87okhSYCmqLFgCW9Td63ldoBCAoO6MRwdBcYDrAPaYT8Rv2wF0ADegrt2hhIEQ1 Z2tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=f2lR4fmV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id p11-20020a170902a40b00b001bf5c12ea06si354891plq.404.2023.10.17.12.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 12:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=f2lR4fmV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 02A188029085; Tue, 17 Oct 2023 12:01:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344007AbjJQTBF (ORCPT + 99 others); Tue, 17 Oct 2023 15:01:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234992AbjJQTA7 (ORCPT ); Tue, 17 Oct 2023 15:00:59 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF6DAB0 for ; Tue, 17 Oct 2023 12:00:57 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9be3b66f254so604192166b.3 for ; Tue, 17 Oct 2023 12:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697569256; x=1698174056; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Q8eFHCOzN0B4Aj/Uzad3Mw8nk7BErU1ParoR6czT34U=; b=f2lR4fmVMcyZE1Bxdofjzq+0KDZt+hicVKcZV+2Fl15YL0smWLYhvRhaun62XRy2Fp mN6I2pg07/aYz/qimp72ELl2kqZZGXRb8UaEnVj4M16NstEKYrkWubxcVIXJfASVjLE7 qtmJo38nbv/uFFN0LsYi6INwHM1q/c/JBtU3w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697569256; x=1698174056; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Q8eFHCOzN0B4Aj/Uzad3Mw8nk7BErU1ParoR6czT34U=; b=nDuNqFmtzerYjXC4xtvb6mZ0qhJJpCSpX+FTfvKpbx3F8iq/YnIUro9mvEiV3cL6Zd QydnW1WOrWpiwfaKHI8hvRAi0tV/6+pNcDm3VmA7KJ+dXFDuAyMY7iqF/V8PGx1MLSMZ rkZL72XsPtathEJ2Xe7x5KqFy6Kn1HlNi+bH7erUdlBOh4RbjD6Gj09nVw/Z1Z7daJJ7 ImYU37EbhXAbGK3VWs2fXfCPNq+yjzctmF4OYvzw4Rb50dzul8b4fARACv9wdjpUsS6B llxCUznT9HwDpX+HRwZsMvNNscJHFGiyfc3g+E4iTtnhhqjn4mhusfc8Yja5NiXmfWPH 6ihA== X-Gm-Message-State: AOJu0Yy1AeaZbjWQmm+h68c8mwpkMvwpDm12IahJ6MrwwDNNp/RSfMUq 7WY9u0pf78qOQMwKMPzv2LndVI7CFoNW5bHGq+/PZCnp X-Received: by 2002:a17:907:c08:b0:9bd:e017:370e with SMTP id ga8-20020a1709070c0800b009bde017370emr2730834ejc.54.1697569256022; Tue, 17 Oct 2023 12:00:56 -0700 (PDT) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com. [209.85.208.43]) by smtp.gmail.com with ESMTPSA id a10-20020a170906244a00b009920a690cd9sm268755ejb.59.2023.10.17.12.00.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Oct 2023 12:00:54 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-53de0d1dc46so10462185a12.3 for ; Tue, 17 Oct 2023 12:00:54 -0700 (PDT) X-Received: by 2002:a17:907:78d1:b0:9c6:3c94:69de with SMTP id kv17-20020a17090778d100b009c63c9469demr1559185ejc.53.1697569254221; Tue, 17 Oct 2023 12:00:54 -0700 (PDT) MIME-Version: 1.0 References: <20231010164234.140750-1-ubizjak@gmail.com> <0617BB2F-D08F-410F-A6EE-4135BB03863C@vmware.com> <7D77A452-E61E-4B8B-B49C-949E1C8E257C@vmware.com> <9F926586-20D9-4979-AB7A-71124BBAABD3@vmware.com> In-Reply-To: <9F926586-20D9-4979-AB7A-71124BBAABD3@vmware.com> From: Linus Torvalds Date: Tue, 17 Oct 2023 12:00:36 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() To: Nadav Amit Cc: Uros Bizjak , "the arch/x86 maintainers" , Linux Kernel Mailing List , Andy Lutomirski , Brian Gerst , Denys Vlasenko , "H . Peter Anvin" , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 17 Oct 2023 12:01:26 -0700 (PDT) On Tue, 17 Oct 2023 at 00:23, Nadav Amit wrote: > > Yes, the FPU issue is the one that caused me to crash before. Uros, can you verify whether that patch of mine resolves the issue you saw? That patch is _technically_ an actual bug-fix, although right now our existing 'current' caching that depends on just CSE'ing the inline asm (and is apparently limited to only doing so within single basic blocks) doesn't actually trigger the bug in our __switch_to() logic in practice. Linus