Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp463238lqb; Sat, 16 Mar 2024 11:18:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkAg3pk2DXlTVc+A+W4Aa1uJj5lnFCCdLWgfzrs8MSfSJefL4dnI0dUehhgdYrKj7JRkt+YgP7ZOYmJraR1d9N7W1qINdfUXAUKt46TA== X-Google-Smtp-Source: AGHT+IE63C0/N8iryIBkfP8Bjl7maO8Jvc5aPfSPfkxOvhMmOh+4utOSWIG9UTkz7iwn8U/V82r8 X-Received: by 2002:a17:907:a78c:b0:a46:74a5:c615 with SMTP id vx12-20020a170907a78c00b00a4674a5c615mr6298089ejc.0.1710613114860; Sat, 16 Mar 2024 11:18:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710613114; cv=pass; d=google.com; s=arc-20160816; b=pkFyyrwkgI0Ey/MTi7M1Wvta0HJx/smuq5rkwyeyCq+WiAYIUYhp4beOtmsKTNVszC YIJGvoSz9LEsiYO1A0Xuydueo9PuqjmP/YxBrzqDE4ie/kiIaOH7Vw3cwJvCUA9Z1RFi Jdxy68i9VMgm/uXkG8/k41t6z76dCgRFJfOQI/st6K0w0A+69JNm0YpPLikXksFKYm3l 61VlftbUCnn2QG4e4m73+94qMmAlGM6oKtZ8P9spo1pzgYxoZJj//7HzVFaRMyccHj+D sNhZ3J+LYoJyeHwcZgCgUCK6/uAQpXhZQIzq9fPjVmz+xlpn0R6T74rfxnv2kRE95oun xL9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=PLpXkDAYjPG9BCm6FpcnxRIHT0mGwTq8E0HFcJCyd5o=; fh=a3thHd/1IrBRhPQbiyvzcOuGGP0XceA8yiUIZma1C1M=; b=oymd2KJjaEYLw1yPGjQQma9oWI/7zUhfzPxcAY/asHSCS5YeCjKAUkYsZrJ+DyKGEp 40dySUgw8MHbTcr/aR3fWhBot8p53T/ItGeEcKZG7AKFoUQTgh5zT+cZWRc+yDCYH0xW APsTqHS/X1ZXYADkIt1LndEXquV2cg/Rq5VhnOKHW/jkzuGHNtlZO3wip1cROWkUUk2E r3c77EwniGS1IHOzlCOZvjeiDCb88S6eryO1T/c1mHpKJQLvmI+DOz1HsZkE8JF/BSxI uXBoE58SME4FL/Hl8nOsiu3fyY/RJz1sy1ffbhBOm/2/X3ka7IYd0t4Xlwx1fUfofnZK DYUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KQGi3bnv; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-105267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105267-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id xa19-20020a170907b9d300b00a3ec8a31c0csi2738616ejc.974.2024.03.16.11.18.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 11:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105267-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=@linux-foundation.org header.s=google header.b=KQGi3bnv; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-105267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105267-linux.lists.archive=gmail.com@vger.kernel.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 95BB61F2172F for ; Sat, 16 Mar 2024 18:18:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2029D1BF5C; Sat, 16 Mar 2024 18:18:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="KQGi3bnv" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 2F0591172C for ; Sat, 16 Mar 2024 18:18:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710613107; cv=none; b=e4YdOfHnQhGukDNKB8Ae6uPBwitArCGDfYFXwy8y2VwCCpDms166yHj72uusLH9CWDTymnH8qeCv/GQ4ewhGsT6VybA5g7gWHjQu0ym53dsUEzRlIgx1iqB3s7pBvZ3riIJSACcLsyMRQGUcvjlrHLEEJ7CgQArBvRTHJc8IwhQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710613107; c=relaxed/simple; bh=pgebCKvCkwVomojS5FqT6Lrc12uxNPn160ZOqqBbiGU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=cQc4oaGjvhPnSNis0TDLGyXFX2u5Z/75uzfI9Hl5GttRbvt3FwX2nq+lokluwkJzT73ZsXM8f7K4nzQTY3vNES4V37rjiNm80cU29JxwUDeqAd0wWlImtuiTIq0X96YDo88GakNDvQEjM5boYJSCo9j2JQ3FXDqqcbiLj0/GZC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=KQGi3bnv; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a466f89560eso397385466b.3 for ; Sat, 16 Mar 2024 11:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1710613102; x=1711217902; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PLpXkDAYjPG9BCm6FpcnxRIHT0mGwTq8E0HFcJCyd5o=; b=KQGi3bnv/IsQ8N/f/eueqLSnkDAZOlZH0NgdiTg9avuqeMYVCBYVnyCBs5pr/elEH6 G9wju4eOGie7xE+MSTDdy2gBzaoHKynnllDv1E+FE5PkuXrg3CzeKXasTiHBVGg3964C udhzhscTesiasIOZkHDsxog1U1HNIQsMw7q5Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710613102; x=1711217902; h=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=PLpXkDAYjPG9BCm6FpcnxRIHT0mGwTq8E0HFcJCyd5o=; b=Wm0SZA7UrmC0HtMDKmcAV3lnJQA+sv8iyw6PwIv9cEIzhE825mtZAErMKyLxoQUnM4 XUhsLb5u7blZQ1AkgtjF2T1WWDio/FghCqAOznEuQ+gr7WCihJ7pKMPn758jcq2sdLtN 1c3E3EUq8hfl1mTXh+hOGvc/mt3fifWTEUgwAyfVcz7qYVJZYn6Zb8ZLfxHx2Kkg4Q8m S3UpvymN4FTszi8pjjmmekZuGgrQPH/Nev+igjXrfjXvKEDniZ3uFQDkSfj+RMaPFyFg 7Xi9zrbxzMkmWBFTckd5x5gNYd1QrfgTLIJYQ/fiwNqBewa4w71YuPIoxrjLwGFPo71Z SbKA== X-Gm-Message-State: AOJu0YzRiHwVkyT1XNLAsG5cOwLIy7EjieUJoL76xvGmc1ZK3v/W74yy eHULT7JAMXh38jH6t89Lnt6hTxSKRT96kGTzyN+0zPzYJLlv7w5pfZzx0Xy5fuOWdWVzIR9PrVp PfkH+sQ== X-Received: by 2002:a17:907:86ab:b0:a46:ac10:1cde with SMTP id qa43-20020a17090786ab00b00a46ac101cdemr1040731ejc.45.1710613102412; Sat, 16 Mar 2024 11:18:22 -0700 (PDT) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com. [209.85.208.42]) by smtp.gmail.com with ESMTPSA id l8-20020a17090612c800b00a46aab70226sm627515ejb.180.2024.03.16.11.18.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Mar 2024 11:18:19 -0700 (PDT) Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5654f700705so4434566a12.1 for ; Sat, 16 Mar 2024 11:18:19 -0700 (PDT) X-Received: by 2002:a17:906:30cd:b0:a46:4e14:c9fd with SMTP id b13-20020a17090630cd00b00a464e14c9fdmr5264463ejb.23.1710613098865; Sat, 16 Mar 2024 11:18:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240315122934.1d3231ce@gandalf.local.home> In-Reply-To: From: Linus Torvalds Date: Sat, 16 Mar 2024 11:18:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] tracing: Updates for v6.9 To: Steven Rostedt Cc: LKML , Masami Hiramatsu , Mathieu Desnoyers , Beau Belgrave , Chengming Zhou , Huang Yiwei , John Garry , Randy Dunlap , Thorsten Blum , Vincent Donnefort , linke li , Daniel Bristot de Oliveira Content-Type: text/plain; charset="UTF-8" On Sat, 16 Mar 2024 at 09:59, Linus Torvalds wrote: > > - I'd suggest marking it all VM_DONTCOPY | VM_IO | VM_DONTEXPAND to > not let people play games with the mapping. You already did set VM_DONTCOPY (and VM_DONTDUMP is a good idea too). And you cleared VM_MAYWRITE. Those are all good. I'd also suggest requiring the mma[ to be MAP_SHARED. With a read-only mapping, that doesn't really do all that much, but I don't think you actually need the vm_ops at all once you do everything at mmap() time, and then it causes a SIGBUS instead of a "insert zero page". And _technically_ it could tell the architecture code to try to align the mapping to the cache aliasing boundaries. Of course, because of how you insert the meta-page at the beginning of the mapping, you end up with the actual page table entries not aligned anyway, so it doesn't actually help the cache coloring, but it's still conceptually the right thing to do. So even if it ends up mostly just a "document the fact that these are shared with the kernel" flag, I think it's a good idea. Linus