Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp720898imm; Fri, 17 Aug 2018 05:40:34 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyjJnPwn4ZFwCUP9qjZH444WMhO+XhDEB+WnUrpUO3hwiummqVpxJOvx1E9BUoxcXUFu5iH X-Received: by 2002:a17:902:a40b:: with SMTP id p11-v6mr33930546plq.228.1534509634796; Fri, 17 Aug 2018 05:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534509634; cv=none; d=google.com; s=arc-20160816; b=ZKyqIDPCpfaW/D/Hwo5FMU/PXtLR+pHUk7VsD5TJBNhWfkhSvoJT0O8SUwo3Uen7cn K8qQwbw3gjfxXu1aWslu46g0SDsu0HrxinqmClzYgXyingyoGk5SKDTfC1hGpPzd4xwZ 8JdQL09ti17taJA7z2yPcYBOpnFrD3cZ8IUzY3FECDXLEDdIkwy3KlTtBiL9I+21+el7 i31uVvhz8JSFnctiA9nh8wi1M3nlJ3Hc1AFUlj12YfkcZyu3NqMMJe/Oxp1lHedgiK0P JAfXcDZJ52pHdGynyhOcadlgbQGwFoXUh0lHEVGTrtNNj6BSuxbqmP+o52vguvQBAOCF 5lgg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=lhiv+WV1XMqQrpsPUhIeOyV14rcFg8AWwaI+6jqxYB8=; b=Cdvq1/SdN94xIE6NEEdusyu6nNQJh8s9cqnQ49GajOCDEvTjihptbLsV9FZXco5KWH VDy318h3y3wdZOlM2b9OE4z5mh6jzAz3wf7uuwrxV2GKPEqH1JwLzKhToPCYz+IQip9e XVq/7XBvKhsFk9qa98g9/dXbmUhrDehDdd1PSKdoEs0i1TVeSA3dORPWRtYlad9sBqdY MpJ2OpRm7xtts+M1dNlAJ7FBsuP44uaeZ5S105egnwrfF5Pdt7Bw/JRiY1A8AVjXkC+A yYKr4nOK9i+TcALELXZyGpuk7x4b87w4jvrHQ0dT3O7OHx0P8ulXu7s6TyU3CftYrJxA 5awA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@profitbricks-com.20150623.gappssmtp.com header.s=20150623 header.b=FPjyEBIj; 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 c4-v6si2034024pfa.285.2018.08.17.05.40.19; Fri, 17 Aug 2018 05:40:34 -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=@profitbricks-com.20150623.gappssmtp.com header.s=20150623 header.b=FPjyEBIj; 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 S1726800AbeHQPmb (ORCPT + 99 others); Fri, 17 Aug 2018 11:42:31 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52361 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbeHQPmb (ORCPT ); Fri, 17 Aug 2018 11:42:31 -0400 Received: by mail-wm0-f66.google.com with SMTP id o11-v6so7410018wmh.2 for ; Fri, 17 Aug 2018 05:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profitbricks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lhiv+WV1XMqQrpsPUhIeOyV14rcFg8AWwaI+6jqxYB8=; b=FPjyEBIjAwN5x9Ii6Aaj8hK/7PtTJRMDFWPjwJXIOOz/J6qfJpf7YP8pZYPtsR0Hv2 +SLX0HqfJmKXPODq/vXLjbp9OcotveehZem6YDnrNal9XKBb1X2dobZPdE7SyU+J2stA Uqsos0piQ3bJlP2DESPgSGeyM/qTAzcpApqw7Ecl8dv1h3z54NTRa2e8pwKGcUt6KRut 1ratrsi7JNflMtOz93ynMD+fOJPOAN/ZlvFCxDKk93WmEbj76K8KNwgv3Kw2mf0ogL/K q0gSGC8JcJIkj+hpw7R2Y4q7xXFnUFbN+vLADTMVP0iFnpXOeFgaHYsT4YgLlqhGwwBW pAUA== 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:content-transfer-encoding; bh=lhiv+WV1XMqQrpsPUhIeOyV14rcFg8AWwaI+6jqxYB8=; b=egeawSRk/0ajcWlKb3qAZBBvaYCpGK28L+wUKTh0REaSCajLSHHjj46j4HGsxNA767 1bhjigD5REEzRnIgHB90uGBBT1DAlQ1zggeK71Ud+QYljJzIJKa7kYYZUislcfBV0bTX vtibrvgcpnqurUPYPX2c6bV1GEYHqZ+bLiSYhDO8QRz3s6EwYQnU8I55I6elQOVlC8pM ktD6E5JaMDMiDdIfyOGaGlg+8UkOBbiPjGLzQNTHD7/ZXdDzWuVyTHhc+TUaUlm7z4fh OYIUUht9ewKxVoKldqqEn/4f/qXRvPFdQBVQLCwAHbwrC60e9QNqLSYd5tvhHZ+f6KuA Sv1Q== X-Gm-Message-State: AOUpUlFDRB2NKpqnSLZsbCXkWQRemD58FuFmXiF7+QsTf2hH6DaSz1u3 jTI2+57HKFZmZ3PX/ME56OZ+DEBVJIax9Gigok4kng== X-Received: by 2002:a1c:5bc7:: with SMTP id p190-v6mr18617028wmb.101.1534509552499; Fri, 17 Aug 2018 05:39:12 -0700 (PDT) MIME-Version: 1.0 References: <20180816155126.GA18296@kroah.com> <20180816163937.GA5105@kroah.com> In-Reply-To: From: Jinpu Wang Date: Fri, 17 Aug 2018 14:39:00 +0200 Message-ID: Subject: Re: [BUG]smt sysfs dir missing on 4.4.148 and 4.14.63 To: Greg Kroah-Hartman Cc: Thomas Gleixner , stable , linux-kernel@vger.kernel.org, Ingo Molnar , konrad.wilk@oracle.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 16, 2018 at 6:48 PM Jinpu Wang wr= ote: > > On Thu, Aug 16, 2018 at 6:39 PM Greg Kroah-Hartman > wrote: > > > > On Thu, Aug 16, 2018 at 06:28:59PM +0200, Jinpu Wang wrote: > > > On Thu, Aug 16, 2018 at 5:51 PM Greg Kroah-Hartman > > > wrote: > > > > > > > > On Thu, Aug 16, 2018 at 05:43:23PM +0200, Jinpu Wang wrote: > > > > > Hi Greg, hi Thomas, > > > > > > > > > > I noticed /sys/devices/system/cpu/smt dir is missing on 4.4.148 a= nd > > > > > 4.14.63, default setting. > > > > > > > > For 4.4, I would be amazed if anything was there, the backport was = done > > > > only to handle the local user issue, not the "full" protection. So > > > > please try 4.9 or 4.14. > > > Thanks for quick reply. Right, just checked. the patch for create the > > > sysfs entry is missing. > > > > What patch is that? What is the git commit id that we missed? > > > > > > How about 4.17 and 4.18, do those trees work properly for you? > > > I guess it's the same. > > > > > > > > > Tried stable/master branch 31130a16d459 ("Merge tag > > > > > 'for-linus-4.19-rc1-tag' of > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip") > > > > > It's the same there. > > > > > > > > Ah, so we are bug compatible, good :) > > > I will try test stable master a bit more to gather the full log. > > > > > > > > > When boot with 'nosmt' kernel paramter kernel 4.14.63 panic durin= g > > > > > boot, 4.4.148 boot fine. > > > > > The call trace seem irq related, is it known bug? > > > > > > > > You are not giving us much to go on here sorry. We need full detai= ls, > > > > and also please cc: lkml and the other developers who worked on thi= s. > > > > THomas is on vacation this week. > > > Now, add more developers to cc, also lkml. > > > > > > I have the config and boot dmesg attached for default setting. > > > > I see no error in your boot log, what exactly are you worried about? > 2 problems here: > 1 According to https://www.kernel.org/doc/html/latest/admin-guide/l1tf.ht= ml > I expect /sys/devices/system/cpu/smt/, but it's not. > 2 kernel 4.14.63 panic when I boot with 'nosmt' or 'l1tf=3Dfull', I > attached the picture here again, > I will try to get the full log tomorrow, also test with linus tree. > > > > confused, > > > > greg k-h > > Thanks I found the problem, CONFIG_HOTPLUG_SMT is enable due to CONFIG_SMP, but I did explicitly enable CONFIG_HOTPLUG_CPU. That's why the smt dir is missing, and kernel panic when I boot with 'nosmt' or 'l1tf=3Dfull' probably also other combination. With CONFIG_HOTPLUG_CPU=3Dy, it works fine so far. Thanks, --=20 Jack Wang Linux Kernel Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Tel: +49 30 577 008 042 Fax: +49 30 577 008 299 Email: jinpu.wang@profitbricks.com URL: https://www.profitbricks.de Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht Charlottenburg, HRB 125506 B Gesch=C3=A4ftsf=C3=BChrer: Achim Weiss, Matthias Steinberg, Christoph Steff= ens