From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B71E194C98 for ; Fri, 26 Jun 2026 22:46:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782514000; cv=none; b=lKcrWj5Nnno0H1F6bq/WGdAGGBXxFZnwKh5Mw/pByzVTT8flPN/l3JtlxkJTAT1MHfKQUfeKtgziYOvc2GWElqcnfnPTSqo6sUPWxWEbkj+R0rcw8OCHASG38ZDU9aZuAA+ia4UsZHw9TZi0ImnKRlRPtCVU98o/p5UGtER2nLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782514000; c=relaxed/simple; bh=bQ2zK+lWkkKorDcaIoZr5VkBtH4fySK6NZKZvQDauzw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=YjBoAgCU1rkvafTA6cK2C7Jz5g9fJOQ1vYQ6j4xTF1xqSM0LHGPrySN8B/3va/mUlmPEojhsJWK09Lj2hbP6mM3ZX0anxY3MUItBHq4Hw+0enoRvngJzufLPI8rwQ0hRQe+kgHzefRq2xzjIYs7zZEoalgwc8mMn9zRMHRwh85Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mqgdKMWA; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mqgdKMWA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 276D91F000E9; Fri, 26 Jun 2026 22:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782513998; bh=Dk8o8TjgL8E5/MT1l+L2Njj6Dbt7XMOsztbpkarmT8g=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=mqgdKMWA5L14HBYP/Txfanylf+NfH5G1eoR8JcyEfLVUZvQ0axgsYT7WXLVir5J6R 4ayNIhaNIVvw0YV0fJFYnBwDXcJmbVptRarN5EAA+ojbCCFNLtYt8VSd8TYgXwIE0v t3E7ApCJr6d+Le/t8EjnoKncmqBNIrflpfe4eD75akldNRa22YsmCZUqUdDy9atMga AeF0zRixvTKQ9JSRs3nyAHYZl4AUqEb+DZjfGsj2k28b+tehXVLywxwoQWpnG2LmNU sYxksEvP5eQWkdk7GWQnuwK/jNfyzpL0s8g+i4X2asZmxFY2saZMWUfhwEbz7dww9d uZX49qS5hagFQ== From: Thomas Gleixner To: David Stevens , Pasha Tatashin , Linus Walleij , Will Deacon , Quentin Perret , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andy Lutomirski , Xin Li , Peter Zijlstra , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Uladzislau Rezki , Kees Cook Cc: David Stevens , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 10/13] fork: Store task pointer in unpopulated stack ptes In-Reply-To: <20260424191456.2679717-11-stevensd@google.com> References: <20260424191456.2679717-1-stevensd@google.com> <20260424191456.2679717-11-stevensd@google.com> Date: Sat, 27 Jun 2026 00:46:35 +0200 Message-ID: <87wlvkhqd0.ffs@fw13> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, Apr 24 2026 at 12:14, David Stevens wrote: > Store the task pointer in the ptes of the unpopulated pages of dynamic > stacks, to allow the vm_struct pointer to be retrieved without relying > on any locks or current. You fail to explain why you can't use current. Changelogs have to describe the WHY and not the WHAT. > > -bool is_vmalloc_addr(const void *x) > +noinstr bool is_vmalloc_addr(const void *x) > { > unsigned long addr = (unsigned long)kasan_reset_tag(x); noinstr is not enough here unless this depends on !KASAN because kasan_reset_tag() is a 'static inline' which CLANG happily puts out of line into the instrumentable section...