Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp358625iol; Thu, 9 Jun 2022 05:25:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPg9eNbYqL3FOVsFZ0//FvtX0sLD2dtNCzsFekQhp/+Ji95q/HX6Ys/Jvh9D+ryTx7FOKA X-Received: by 2002:a05:6402:42d5:b0:433:1727:b31c with SMTP id i21-20020a05640242d500b004331727b31cmr8122488edc.9.1654777535980; Thu, 09 Jun 2022 05:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654777535; cv=none; d=google.com; s=arc-20160816; b=phrnpg/u6MhYnF7cjlip2AioSaCDpLOIsg5HICwH/r+gwjGwQG6aCpYw4sEqTrkBLj dgJX+ndKLjg9TUQQUlpQs8m2fx6P8zW66Ub7xcaId8zJ1ry5Ju5FKjrOOABVFjZoY5jq 0geEvPCUNWz8Ehvpfq3ie3j/Pf0oEOKbrFBX5lU0rS/RnUsTqGWLApTbSk82ivNdniuW v69xeq1V0wUso9b6PBZXPa1Bgy60ashj9KEvVcCsy+czguHkszg30ZW15cIn3MqK6Aq4 xcEqWegvqV6L7W0SFQprDKLq2UYhcGkPceJg9gXQqggsICjpxAsS0tTe2KPdMbU+gy8W XygQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=NzmzzhGPGUY7xZcOQ+0OfmkAMUDNRFa2wttp68Yz7bk=; b=g7ypDT3nkeLy3tqLBz9WHtNLlB8VIVAHKV+v+oWgrZeN2kwGLEL4xJfLQcw0UclPW8 0dxKfoxte2LglQVZS7OTlst7BMP+thhzGRNmmpaZ3IrlZ43cze8RlsCfWxcz65+uMKiD I1jQ7HoA8OioYqwqn6QgSNVGVHNYgLRMGMzgM709zDYhCHEU7iAq27WlRezH7q8ADnk2 KKx66eTKQN6Bf2R7M36WGTRTPk07jF4kwSZHExuRuSY6FVtpLCJ6bIKtDu0OOtN2uMrg gci5SBw90oEETLiqh5jSTGzjrZjj9S29zSofmAhTl14eQq/M1/YQxqXudZl/9c36eTwH E/6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gentwo.de header.s=default header.b="mDV8x/vO"; 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=NONE dis=NONE) header.from=gentwo.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a056402516100b0042b3cf57cc9si23223696ede.71.2022.06.09.05.25.09; Thu, 09 Jun 2022 05:25:35 -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=@gentwo.de header.s=default header.b="mDV8x/vO"; 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=NONE dis=NONE) header.from=gentwo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244899AbiFIL65 (ORCPT + 99 others); Thu, 9 Jun 2022 07:58:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244511AbiFIL6y (ORCPT ); Thu, 9 Jun 2022 07:58:54 -0400 Received: from gentwo.de (gentwo.de [IPv6:2a02:c206:2048:5042::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45EF813CE4 for ; Thu, 9 Jun 2022 04:58:50 -0700 (PDT) Received: by gentwo.de (Postfix, from userid 1001) id 0CDE7B00149; Thu, 9 Jun 2022 13:58:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gentwo.de; s=default; t=1654775927; bh=NzmzzhGPGUY7xZcOQ+0OfmkAMUDNRFa2wttp68Yz7bk=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=mDV8x/vOv68VDjg22k4RMOhgEUyQVhp17be0H3abpHmpzRHLZ6eO0kdAts6i3K9nY /EiGmDVD0hGP/O4Pi+KdVjBAFkYec4qnTpSaNfOhGMLZRGtbGgwRwdqWQSGCP+UJ4s DXp63jvxADrXo3v/B15z140CcV7ptnfpj7f5q+cLQx7j9KPrJc0O06VLtRDDSTiSXs AXGOtstnavFqll3La/hP6p6Df1tSar0ioozucIOfyORzOOuStcR7kYuGcV9q7t+vZi OIAKhJHOuzd+Fe8hRfR2IMAOD+ZzafeFSvO9XR9dBgVI7twEF6uV/hT0Cko/PDQTGN uVtkXOkrMGKrQ== Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 0B516B0012F; Thu, 9 Jun 2022 13:58:47 +0200 (CEST) Date: Thu, 9 Jun 2022 13:58:47 +0200 (CEST) From: Christoph Lameter To: Jann Horn cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/slub: add missing TID updates on slab deactivation In-Reply-To: <20220608182205.2945720-1-jannh@google.com> Message-ID: References: <20220608182205.2945720-1-jannh@google.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, 8 Jun 2022, Jann Horn wrote: > The fastpath in slab_alloc_node() assumes that c->slab is stable as long as > the TID stays the same. However, two places in __slab_alloc() currently > don't update the TID when deactivating the CPU slab. Looks ok. Acked-by: Christoph Lameter