Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2726109rdb; Mon, 12 Feb 2024 14:45:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2PGwA24hyx8V7GKtqsslcUxDdrbDPAd3yy8duRChhCAYp6zGPElljfsncBwH4haP8pPOv X-Received: by 2002:a17:907:7f16:b0:a3c:9309:5d1f with SMTP id qf22-20020a1709077f1600b00a3c93095d1fmr876036ejc.7.1707777958171; Mon, 12 Feb 2024 14:45:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707777958; cv=pass; d=google.com; s=arc-20160816; b=Whd4Y8nq/Cs9qPfyF/JGzlB7q7/IWnb2bdHwWqspV33XzXP12u7PrQR1SLjp3pCkeb b7rtw0sL6V4OWlXPiggvqIBnR7BEOR5P4DO4b5zrZuZFJReTHABWxJD3/Z43lJnRAgpR cTaaeNlU28r22MFhJn2GcTVQqFOt/Z7/R+OyhyZnSlQQuXK3re0MlQzv/0vAgpWqFNLi zJO6vxHCyjnXM9o9d0Dj7Q/nb6e+rjCAYCRSXlpkgPEtEdIw9e32GYaUfV9n1GcIRYYi D92S+14SiMubghDJVbw+WhZ5Ouq1//E9RAJWDIC0lnoMcFMN7EYxaBtDmVVozGO+cqCX McGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=M9x0GXj1drWEZHiTvKM8aFvDBLB5BYp9bLGNurXOzwk=; fh=0nuArW9RYd7NcBKZ6wvsE+6cOf744kvQ1OT8A9xso2E=; b=xFV3RVfvMH7JD3KwF4XGklXq4gHRE/35sMxx+l5D9sspfsI/mnVmQ2hQe9ToetMi5d zEnN7H8qBZvz0VOVIMKLrsdWtn84aaP0h9LgnlmiICfxCYhet8+TNRMoVDZuMIZCVYCy bkFxi8QDwW5bbZvOj0UxIAx5rXrYmjpT6XpkuPP5SblZk1XZ0Pc9z6TTJXA+hnZ4uuiL eaq5sc3NayJS6MfG8cEgykHULGXLtU/zGbZ25/os37dQqTeNf1sY2USwonHOhKvXn9tJ VSDUjWhldI9VQaQ0KgAULKqIujTYjBp5zqRlAcN+iWJjLv6W50W9Oa5Q9xoTicKpe+Cv pskw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PtdQpm+C; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-62496-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=2; AJvYcCXSyUStS3Lj/nYVPQefKdUQj3jQMeSIAhWxtsMtZfBlcXfe8pPfAICHdEikF+HQ9d1gOkRl2EMJGCIDwRMF/gMczh+PSi59ZCKs/uXpTw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id jo11-20020a170906f6cb00b00a3cea51ea99si308420ejb.510.2024.02.12.14.45.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 14:45:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62496-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PtdQpm+C; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-62496-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E60881F22E75 for ; Mon, 12 Feb 2024 22:45:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4F394EB32; Mon, 12 Feb 2024 22:45:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="PtdQpm+C" Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11CE14DA1D for ; Mon, 12 Feb 2024 22:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707777943; cv=none; b=obSJvMDxp/SoezZ90dj2ZG2zebWywMDTqioOJJ5wnizTauiUexQXCaqMkgUSVwSjy3XRGtdOJUE9mpnd5if5wd3IFM7XYGVEV7mNVJYaQv2dZsjfOs5y3PlxLgd0boaDrg8UDcH4udAsiIk6Lij3jeyN1o2IWPKFi7l2GKiQAvw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707777943; c=relaxed/simple; bh=Lqi+dtaPDt0Cdp8tkYw4ZeZ7cvsn7QQVayGZiang7cg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TGhM+fbRpcRixGvd2bdICVOgDrg6jC97Fxa28rwGIzAlmBNWzsmh3fCPPiZBLHBx+7KF9SdOpm4UOx6nQCtmRiuMCQUxvC0o5dMWeCiSgr02djz75jj8KX5jsYhWm97mjakwSjxYhFFSEvdmumgtUR5V35+yh83by8EnH4HHDhw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=PtdQpm+C; arc=none smtp.client-ip=209.85.210.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ot1-f48.google.com with SMTP id 46e09a7af769-6e2e58feaefso198636a34.2 for ; Mon, 12 Feb 2024 14:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707777941; x=1708382741; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=M9x0GXj1drWEZHiTvKM8aFvDBLB5BYp9bLGNurXOzwk=; b=PtdQpm+C24YhPzBvsh4VLhtbz8qSZM4nDhdlXlO50cL5rfoNWIYqmLDMQUi8bh3gJI vZU3wGoBksl9jBMgito711zFJUdjiHzzWt2DDz5m5suZxamdPBHvpa+T8tsZhOnFB63Y SKAl+YwD51kRDmRfiRrR6Vb+Ic02/lX/R0LOo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707777941; x=1708382741; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=M9x0GXj1drWEZHiTvKM8aFvDBLB5BYp9bLGNurXOzwk=; b=KxJej9K8zqgToE4F14nK9jPESPWclErnT7cH8wCQ1INk8skzpWeN904lhoR4Z/hmDd d/iwgxWoAukB988vyIqmurXzRjl17HYvDi+D7McivEjL0XltAQV9CiYktk21cFFetvQr /2SYrPnhXT/oWNHl/JWD78pD/5MeXINk5UT1X4q6EdmTaUa0GRpgEGq0jtwDVsmIs6Gc GjwAhkgAl5DBsEe/1FnwqZ5XZktwErtvl2LVDjDP5FWKQ/25AC+CHx1DB3aEC7gKQ59p gAWP/U69rFv+P1UBXbJUbORO4ttDLX9spf3V1CV9BlaiOkMVj22K5aOmoKV7idntTBCb cTZg== X-Gm-Message-State: AOJu0YzgKDe9cRw65yDLG9h9Nq6qs3f2I8HcZFpZsrqD0jGsOT2+xNAz WZeqS6DP4jbL1Bs453VRos/vc1SsbhtNeAaZidvWmtw2mjwzLhiSjwzUCrsx/Q== X-Received: by 2002:a05:6871:521f:b0:21a:43e6:9479 with SMTP id ht31-20020a056871521f00b0021a43e69479mr6494394oac.25.1707777941191; Mon, 12 Feb 2024 14:45:41 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCU5F04iljKWgIhFX67fz6I0jBA29fs1KValNbI20GQ721akFaZZswko9rHZyanWImombY2MRxlAp7+1vnmOqFP7q3t71cIchW8bu03KW0mwMJ09EDhrMyT10XPJaH9Bzb53bFzuM4BfNnrmZpnY5B+/fkfb74fuUtg23PbdKoYURrf6KUG8I3oX19u7Tt+W5BZUjko7u4hrdj9G7NJMAZUxEfnlfmwQybY2KYzaip7/GPxsca5fxpskYZOzkyWm7W5EXnVeqie8w9GlyWjw+1HLCFKyvdODwZ1IAzj8OJmSifxvqrB+SJgeRE6+2anrYiQ5CQ3OjrlZ9MbV4U+AsezFTvbF6SHAGsCB9zkYD6wuU10oKJx6qhY3nZcIWpFrTI0zoVY91oEChX9Ilp0TaOpzYN6r/7qCg0nZllRlWzOLnsd/YEQdhMMJ6gLqwfDgNp2YRYlwnaQXK0Pw/BArGG70FUDSnkDDzFfQyOMSqoQNMuO+6IPIGk7ltANLWIORmwbgcT2nIrOcqp01sEzZA0WJvdCTUITvforW3LWpoZE0x07bDes7lpFpCZanVON8HwRF9g5REXHwY5BM3xpjm9HkhaLKOuRcm0MVmwEXk+H3VpM0Mv5NVf91BClEFo+/4ig+2QwEfLffPJ1oQuLBUNtltszsmR2I850mAt2Cr1muh7xK43zUA2hQPHmJRY2OSYWwRbDxjUCzVMOxgXPe2IHMYsDVzu6vfog4TBGWlcB6TbpX8ZqcbQ== Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id t16-20020a63b250000000b005cfbf96c733sm987037pgo.30.2024.02.12.14.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 14:45:40 -0800 (PST) Date: Mon, 12 Feb 2024 14:45:40 -0800 From: Kees Cook To: Suren Baghdasaryan Cc: akpm@linux-foundation.org, kent.overstreet@linux.dev, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Subject: Re: [PATCH v3 33/35] codetag: debug: mark codetags for reserved pages as empty Message-ID: <202402121445.B6EDB95@keescook> References: <20240212213922.783301-1-surenb@google.com> <20240212213922.783301-34-surenb@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240212213922.783301-34-surenb@google.com> On Mon, Feb 12, 2024 at 01:39:19PM -0800, Suren Baghdasaryan wrote: > To avoid debug warnings while freeing reserved pages which were not > allocated with usual allocators, mark their codetags as empty before > freeing. How do these get their codetags to begin with? Regardless: Reviewed-by: Kees Cook -- Kees Cook