Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2924751rwi; Fri, 28 Oct 2022 13:12:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6vJvIDdELG2cnf5su1HAcJ63pzGIyLSnyaUrSpXFWcpBflyoceeEgNxySuUNT6Xb+YBMsS X-Received: by 2002:a17:902:d2c9:b0:186:f355:a42b with SMTP id n9-20020a170902d2c900b00186f355a42bmr738116plc.58.1666987952919; Fri, 28 Oct 2022 13:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666987952; cv=none; d=google.com; s=arc-20160816; b=bHlVrgT5GypAchXv9Xru89UGPj2Fxhn5Coa0eRJlH7saoi54FlOlM4FOPMYmN/MRwv cCQlF+2FKp62ZawebLotk9/WL14HeBd3Zoza2jx8087UKXMDV/V557gy5PFdHFvwgGBi TbSgXyjjmpUnrs1CWuM7ByZdrFbtYUyLH8b00+ZfAwKq58SU35yIrH07PfUrqTy5zOcT 38RVKK69vqGF/XClqZ5Wm+0MXVe18ClXQDd57kltCPHNpU0FMUPdI1ZvmJQN6tFb01bk Y8+uI4kjZnPiKsnEw+OS3f/e6Q+96FG9ybevTRkIcSBjXK1RNOF//ELIIgNwvLvJrlmX 9xEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=98ZH6bxaeHTtNqFE8fsLgZCssjQAnRpbtSPQxMvUivw=; b=fwWjLIvBkru/F4XkAbeSVaJsKWo42One1ALcXgUz58QjMalh7mTO2Hq0me5fzU3MJ1 SzUuyYwKT/JbqSxViFab39B9Zw6oIWzGzs4fWF8ylNf1GXqQk/OMOrAErUTiS+4JUJfS jHQD4YAhCrIkqF6ZiSuzHqBtzQxnR9v90c6qKLoJRiFwg3y8S6gkaAH/NcPT1rK+QsuI 3FlvbtM2o01IlhBmnYw4F7+PAx3wkly3AZc3PJ9Aqw0oGF3N1ApPP+YNuzKjvaeWONEK xaRIU2N4VOHP3w2yiyty4QR6Yb2I9RcjIVvjwgyljZwsUGbpKPRRiVUwJDTaI/r0TtOE osIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NI0fAVJs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a17090322d100b00176e21bab6asi7692682plg.118.2022.10.28.13.12.21; Fri, 28 Oct 2022 13:12:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NI0fAVJs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230138AbiJ1UFI (ORCPT + 99 others); Fri, 28 Oct 2022 16:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbiJ1UFF (ORCPT ); Fri, 28 Oct 2022 16:05:05 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A6AE1FC; Fri, 28 Oct 2022 13:05:00 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id ud5so15509188ejc.4; Fri, 28 Oct 2022 13:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=98ZH6bxaeHTtNqFE8fsLgZCssjQAnRpbtSPQxMvUivw=; b=NI0fAVJsuMZeFCF9mP1Btmeodw0bx5/GurFR3ZGfZwj+c8L8qWLm6BtbNpe5ZoU/HN JxyXTMnQF5wQMHh2jotO4/KDsmiid4v18utEf8Mwr4IqNu1Xo0An9hRJxf3cbngzLZ2D jXznW7OaViSYXnVSadr6+nz2bKdMk5ySJ++NhC2sKhEUVUl5TPSyvAKk0f5ppK5SW3p+ ZJWxydxIXm6mBkJqXvGE7Wm1YA5+SQsdcDOhr42s4tFRCAqhDW1Q9qivfRuGhdX8Fehw zHI+ULDBZdg+ZyOxoXro2G4xGV7n8tsitxKUa8KEvLaaapRPgzDwFJyJwB/VNairnQzQ wvXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding: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=98ZH6bxaeHTtNqFE8fsLgZCssjQAnRpbtSPQxMvUivw=; b=DwPrNNonSnr1L6MaOdMK2UjQ3pP4CMjL0aNeM9PLoSUGJS/P3fuu/okjZnYMvTe3wk /0wWux34pN78i25MXaveNcXy9uTUsGRSw7huQ0bZAufC7Z56RDr6Pz20AlCdQCQVJhWh TbQcY462dFEE1qb0MtCvOclRV8s4ZwWO0Vz4Z4t5wCHglgskIYnllUcEF28j2ZvlWFms HuZh8f3IRYH76fguvyquaXx7i1wW/l7Wh5sXyjaQTer3HKbYGqyPxj9DpsL+BlXU4kjj yXhPyMptq4EYqJQVUeSnoGLcObCjiL/l3fVwrICDRsgSkZSub5Rk2tlEnozsIcpy+luk rXKw== X-Gm-Message-State: ACrzQf21y4Kwu5+q/qzj9tBa7E6y9LTD+u/ju6IcghtG6aaElC8lXKzB ksaoKrJMQPCQIxch2Y+yfamgYeVyhhOMPxNrorY= X-Received: by 2002:a17:907:c208:b0:7ad:a0df:d4c7 with SMTP id ti8-20020a170907c20800b007ada0dfd4c7mr942244ejc.312.1666987498608; Fri, 28 Oct 2022 13:04:58 -0700 (PDT) MIME-Version: 1.0 References: <202210280940.D7A7330@keescook> In-Reply-To: <202210280940.D7A7330@keescook> From: Sudip Mukherjee Date: Fri, 28 Oct 2022 21:04:22 +0100 Message-ID: Subject: Re: boot failure of linux-next due to 1248fb6a8201 ("x86/mm: Randomize per-cpu entry area") To: Kees Cook Cc: Peter Zijlstra , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Andy Lutomirski , linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 28, 2022 at 5:41 PM Kees Cook wrote: > > On Fri, Oct 28, 2022 at 02:29:14PM +0100, Sudip Mukherjee (Codethink) wro= te: > > Hi All, > > > > Our qemu boots were failing since next-20221024, and a git bisect of > > next-20221028 showed the bad commit as 1248fb6a8201 ("x86/mm: Randomize= per-cpu entry area") > > > > After reverting the commit I could boot qemu again with next-20221028. > > > > This is my config: > > > > make defconfig > > make kvm_guest.config > > scripts/config -e KCOV -e KCOV_INSTRUMENT_ALL -e KCOV_ENABLE_COMPARISON= S -e DEBUG_FS -e DEBUG_KMEMLEAK -e DEBUG_INFO -e KALLSYMS -e KALLSYMS_ALL -= e NAMESPACES -e UTS_NS -e IPC_NS -e PID_NS -e NET_NS -e CGROUP_PIDS -e MEMC= G -e USER_NS -e CONFIGFS_FS -e SECURITYFS -e KASAN -e KASAN_INLINE -e FAULT= _INJECTION -e FAULT_INJECTION_DEBUG_FS -e FAULT_INJECTION_USERCOPY -e FAILS= LAB -e FAIL_PAGE_ALLOC -e FAIL_MAKE_REQUEST -e FAIL_IO_TIMEOUT -e FAIL_FUTE= X -e LOCKDEP -e PROVE_LOCKING -e DEBUG_ATOMIC_SLEEP -e PROVE_RCU -e DEBUG_V= M -e REFCOUNT_FULL -e FORTIFY_SOURCE -e HARDENED_USERCOPY -e LOCKUP_DETECTO= R -e SOFTLOCKUP_DETECTOR -e HARDLOCKUP_DETECTOR -e BOOTPARAM_HARDLOCKUP_PAN= IC -e DETECT_HUNG_TASK -e WQ_WATCHDOG -e USB_GADGET -e USB_RAW_GADGET -e TU= N -e KCSAN -d RANDOMIZE_BASE -e MAC80211_HWSIM -e IEEE802154 -e MAC802154 -= e IEEE802154_DRIVERS -e IEEE802154_HWSIM -e BT -e BT_HCIVHCI > > echo "CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=3D140" >> .config > > echo "CONFIG_RCU_CPU_STALL_TIMEOUT=3D100" >> .config > > > > I will be happy to test any patch or provide any extra log if needed. > > Though I am not sure how I will collect extra logs (if needed) as there > > was no output from qemu. > > I see KASAN in your config, does this fix it? > > https://lore.kernel.org/lkml/166693938482.29415.7034851115705424459.tip-b= ot2@tip-bot2/ Yes, it does. Thanks. I can see qemu booting up again. Also, looks like thats already merged to x86/mm, so I am not sending a Tested-by in reply to that patch. --=20 Regards Sudip