Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3413439rdg; Tue, 17 Oct 2023 14:06:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfvBElo01ocKiIRGEHjGizE3O203MKXTiH3yO/JPnYXKFrfdfBudKuQHK1wIIhlpmJWfwB X-Received: by 2002:a92:db4c:0:b0:357:5e00:227d with SMTP id w12-20020a92db4c000000b003575e00227dmr3700294ilq.11.1697576799566; Tue, 17 Oct 2023 14:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697576799; cv=none; d=google.com; s=arc-20160816; b=FqOWQinrPM0HhXp31NpAz5iVE/emtuzYF3N5Kq6IvJrwTiV5PPgKEK385edy4bunFv LM1aY6qXz/1x2lCWnuTJW8N5DNEgtlFeU+rvxCliR1f3MhL1sPvss5WOcfQfFgZgGHJU uaEd3O4n4defj2R41bwH2mD6uGonD66VGoPZ/CVooGh2u3HKUC+VJXzck/SndC4nDZeF kvRLSHqHY5R+kq2gbVijs0k36zRqChkWvkeoG5gi4jwRZfmkvYu0um9L0miuqjlc5v7W nXRN/udlKPq3VX2k7mPkC6fHpn5V9LtSOrzmfGe9KIfbNW+fL+vW+EY2jO2lO7rpwND/ HCTA== 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=zIVGpmrEfvGCoVLuovs/VFu2oojvFUXynCFBKml5c+c=; fh=/Dnf++/2xG0Xi30TGscvcX3UaoYjzLSxPPap0bUcRsE=; b=HqD1TvUUgtrEgxmDUt/dPrjZRpERM0P911cZKpZ/Y1Em8c3e/uRYpoes4wXrEuR072 pZ0sDuLNWyrvDNMTwI239kSiWzzLKXVrICFpWpH7XxPK0kLKL61mJa0tpvEjPgyJ3Bxi beKwok/gH2Hmihqr8I/A5YZPBJ9GMuC6lTwRf1h4EuuV2tapsejd8znu5XjS7z/G7GTX S3FvWQUHNmOLYusu2tK60eG4sp78fvx6jbNW706iKo6mcJ1qypJkESIT4c1G24nJEmh/ sXIziiL1pJExzYN9k2VrNDA/maFcJ4xP7vIuM6wdwGrmkd6l5RYJYFMk94Es2ffWPE2n OYqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OdtEMmc9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x189-20020a6386c6000000b00578bd92e502si588222pgd.558.2023.10.17.14.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 14:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OdtEMmc9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6B84F80A1E0B; Tue, 17 Oct 2023 14:06:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233170AbjJQVGK (ORCPT + 99 others); Tue, 17 Oct 2023 17:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231149AbjJQVGJ (ORCPT ); Tue, 17 Oct 2023 17:06:09 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0DBC9F for ; Tue, 17 Oct 2023 14:06:06 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-507975d34e8so6561355e87.1 for ; Tue, 17 Oct 2023 14:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697576765; x=1698181565; 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=zIVGpmrEfvGCoVLuovs/VFu2oojvFUXynCFBKml5c+c=; b=OdtEMmc99mgjt6XALFV/SIQRnf1lVpakjUqVijJ6LczGvrhQ8+xwupzHEkF+OlGSfV QZu5letCYV7io/u6eOK/ug/jlmo57BtPTmWg2ZtV5nysO817NqkJgG1Q2BhEx8T8TVSB TQCuy81A9FrLMg2mZFDGXZVHoxP6fb1I81WebeLkGeQfqwQ/OsYF5Y/4SSWe3xnVgr/l ptqZIAy3QUr7F0EGdTBwF/ft/pAsmUOCr1Y4H1EUAFo5Sjf0OcFTyCwPjpqAVt0lwvPB UvHHwGJiIfexzfe9Yvc5lqxrtdOxZYbo9rQSR+szdhjELsRtNyPB0j23jnnbkZMEoBQG XiSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697576765; x=1698181565; 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=zIVGpmrEfvGCoVLuovs/VFu2oojvFUXynCFBKml5c+c=; b=LcVPTM0c2uAxEH/+5RIKyIj7+n8amBKydSW5Uwevciba42zem15rw8EFGWiuGkF0Zf WhTfvBw8Rp5GhZ6A4EGlf5MwJ+3Gxsm5J7KliWBHV7FfcpccXYf43RGtE5lvgF4wLkIM n2UMLBxmIxCBrApmIiolp3kulUgpUwlYiyvUqbbjx6E2YdE18+wOY8klh7k+JwaE3Su2 iAUBXUMOi3ydjqmQfraz2hHyovF9A2jz+Nek1Rlkfx1wdWPw60ifQqxmr8FTwVu+dg7w CyvTs9SIqbThjSZIF5VL3pZjgHBX/kKJ+QHwb9EnF/0SCrZ9twV+ejBelJbhNlm15mqw tLQw== X-Gm-Message-State: AOJu0YziCAp5VYv4D2Xw6dDbKHdwO1/4ztR8BPIKApDmrNRRbBvQ/AM0 Vi6LMzN4hZBdiKePL8cH6PW9dAqmCL6Uwq43dw0= X-Received: by 2002:ac2:518b:0:b0:507:b922:f925 with SMTP id u11-20020ac2518b000000b00507b922f925mr2773171lfi.9.1697576764866; Tue, 17 Oct 2023 14:06:04 -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: From: Uros Bizjak Date: Tue, 17 Oct 2023 23:05:52 +0200 Message-ID: Subject: Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() To: Linus Torvalds Cc: Nadav Amit , "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: multipart/mixed; boundary="0000000000000d2c9b0607efe4f9" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 14:06:26 -0700 (PDT) --0000000000000d2c9b0607efe4f9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Oct 17, 2023 at 9:11=E2=80=AFPM Uros Bizjak wro= te: > > On Tue, Oct 17, 2023 at 9:00=E2=80=AFPM Linus Torvalds > wrote: > > > > 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. > > Unfortunately, it doesn't fix the oops :( > > I'm testing your patch, together with the attached patch with the > current tip tree (that already has all necessary percpu stuff), and > get exactly the same oops in: But adding the attached patch on top of both patches boots OK. Uros. --0000000000000d2c9b0607efe4f9 Content-Type: text/plain; charset="US-ASCII"; name="p.diff.txt" Content-Disposition: attachment; filename="p.diff.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lnutb9fn0 ZGlmZiAtLWdpdCBhL2ZzL2V4ZWMuYyBiL2ZzL2V4ZWMuYwppbmRleCA2NTE4ZTMzZWE4MTMuLjNl ODEwYmFkZjlhYiAxMDA2NDQKLS0tIGEvZnMvZXhlYy5jCisrKyBiL2ZzL2V4ZWMuYwpAQCAtMTAz Nyw3ICsxMDM3LDggQEAgc3RhdGljIGludCBleGVjX21tYXAoc3RydWN0IG1tX3N0cnVjdCAqbW0p CiAJCW1tcHV0KG9sZF9tbSk7CiAJCXJldHVybiAwOwogCX0KLQltbWRyb3BfbGF6eV90bGIoYWN0 aXZlX21tKTsKKwlpZiAoYWN0aXZlX21tKQorCQltbWRyb3BfbGF6eV90bGIoYWN0aXZlX21tKTsK IAlyZXR1cm4gMDsKIH0KIAo= --0000000000000d2c9b0607efe4f9--