Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp946232pxb; Wed, 16 Feb 2022 07:43:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1nH74w/9niNwqtQk49KnmQ/kG91nmYHnlbbVI/M609C6tjK0eTMbarw8EgTAISvK6BizD X-Received: by 2002:a17:907:9196:b0:69f:2625:3f2e with SMTP id bp22-20020a170907919600b0069f26253f2emr2762941ejb.575.1645026183035; Wed, 16 Feb 2022 07:43:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645026183; cv=none; d=google.com; s=arc-20160816; b=YcSgAwvGgqyGFa5nsnDRtHGqSDA0CFyrdepz6uPaoC2iC2voFH8XHwQ/8TAss1u8qV 5RnRKXLhmzOGBYHiPGOHr5jDC00dZ2mGAOsklUk6Hx3EWwS26Zn/NHrrZeA76Br+ld6U zw57XheGn77UaO/7FYS48WJd3dJcoRB2kDk1r9gpyRxl/RI0tK6yUJFzFl059Vh3cRMx tsNpwSKyfkvqZAgKkU1IWldLWUC0h+k+6ejIVSmbcdJE33zKYPUWzdxQUyjk06fjwLpC ryvD5zzZ/tUhnL6agJsLvKEQI1dQD0BBADNM/pdsyXBXmM6AvRgG33HS91NU47CMT6cG yuyA== 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=uBW1C5wFk0wpTZVzu222A5UngO/IWRNu9ZiYVflWd9Y=; b=pcl7g/BDQQnY9c2cnjUy3UGxcJ4dSgj/FvXK9oJ4WK9aVRmPOx7ufBOP1rxbD+eip6 tYoAAEHRpwHw0uNZR/OPTw0PrX0Yf5kvbgU4JOBpMGRnfT2p5hO7JIW/hU/D4pN0dgdA DX/QQXZIhYIDO4IAMok2WPRJsByVOErZ4+OxKuxt9/sOZpgMn/l3sZDKrBKP6NmXAEVQ vb5lNNjdZjsJYByiU3NfXzOcy1RqVp/RPbSQl/fLKBY/iBNBiy/mW/rudosQYMGyuVYe +InTM8UGXT7ys+g1F8Jit2s1Korudqk03cBBzca9bNWO5sqCsbRBK13wCNQxeSaSFlK3 ma4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=i56LMHid; 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 dm16si76437ejc.335.2022.02.16.07.42.39; Wed, 16 Feb 2022 07:43:03 -0800 (PST) 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=i56LMHid; 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 S235500AbiBPPVN (ORCPT + 99 others); Wed, 16 Feb 2022 10:21:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231733AbiBPPVN (ORCPT ); Wed, 16 Feb 2022 10:21:13 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47E642A39F5 for ; Wed, 16 Feb 2022 07:21:00 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id x13so32336iop.4 for ; Wed, 16 Feb 2022 07:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uBW1C5wFk0wpTZVzu222A5UngO/IWRNu9ZiYVflWd9Y=; b=i56LMHidru/lux2u/YrSKgJU+bbEQdHAE1K799Dk4ygQBtMRJ/+pD99/xsKygtsqld VN34cOzYkmLCgxHXDM+1obWGrvvZWxXCE+trLuNyrktZnHsToGvVov33p1JGiyTJsnxr 8nIb11yF8nh7Xk/g51JYSqFApDRYJEZMpPBMXbc9sNoUnXVyc8Os4ei8wwIp28C69Or1 fHc/W55PuSxdLtfErtSFXVigC0z9TWrElvU0UD5I7h+LBOxLxu9bfcZGwnnF2DvC8WqM 2BmmRGjBiC9P09ODUqL9vhfzOQjy9F4j/74CGUTtWHmtxgiwEBDCFlSSLJyIlVUuko0h dCag== 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=uBW1C5wFk0wpTZVzu222A5UngO/IWRNu9ZiYVflWd9Y=; b=gSyKb/8r2lEkgMe1OIAhYwsWiP9C6vhwr8WvkQAkdFSnWSIeYgYhKvOY+j44Wk+622 GLSfY73RuiWuBRpVsCg1oLrjkCyVkCskTfZ3Q2fCea+ff4fjpC4aVmIu7cZbdYMj2u57 gLjm3PKpnKKwRtdIYwtpRPYLDRFNnE7WLjtAqFrv6r/8jH+xS2KnAitELDA1XEk4wIxJ GF8hS041btwQ0EALovg6+NCl7CEhnkPlIf1cbh5asagU8XWzMsNy8ps+qHrm+i119rtH h7UXCJiyf8L2DUCsdhdTbTjv4DMXBpHkEZyo7JlA03dpxvfNqxTBE5xrb6Lr6phOF2cJ FoVw== X-Gm-Message-State: AOAM530vWntBU0fDaXNwoCSyBIGcfN2jyEZo0pxupetk43xqP4hNw+jp VHqbANicwg6JJ1kw433EN6HWzW6FKNzDqbQnHEY= X-Received: by 2002:a05:6638:1409:b0:30f:843:f953 with SMTP id k9-20020a056638140900b0030f0843f953mr2079611jad.22.1645024859660; Wed, 16 Feb 2022 07:20:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andrey Konovalov Date: Wed, 16 Feb 2022 16:20:49 +0100 Message-ID: Subject: Re: [PATCH mm] fix for "kasan, fork: reset pointer tags of vmapped stacks" To: Marco Elver Cc: andrey.konovalov@linux.dev, Andrew Morton , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev , Linux Memory Management List , LKML , Andrey Konovalov Content-Type: text/plain; charset="UTF-8" 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,T_SCC_BODY_TEXT_LINE 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 Wed, Feb 16, 2022 at 10:59 AM Marco Elver wrote: > > On Tue, 15 Feb 2022 at 17:52, wrote: > > > > From: Andrey Konovalov > > > > That patch didn't update the case when a stack is retrived from > > cached_stacks in alloc_thread_stack_node(). As cached_stacks stores > > vm_structs and not stack pointers themselves, the pointer tag needs > > to be reset there as well. > > > > Signed-off-by: Andrey Konovalov > > Reviewed-by: Marco Elver > > Did the test catch this? If not, can this be tested? Kind of, the kernel crashes on boot. I got KASAN_STACK accidentally disabled in my SW_TAGS config, so I didn't see the crash until now.