Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp432273lqb; Sat, 16 Mar 2024 10:00:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVX0rT4GwR7dBAvO+uQ7Gyxk9kQWWx96tN/mlORxOjE1jlLgElIPIqNLw5axuStI/VP+ygvcZtalU0DVNL2jDrWpt+tLfVsY+FE5V0Fsw== X-Google-Smtp-Source: AGHT+IFctFIegRbF3JHMECNWlUb3shH1rDff08xZtdmiGorpadfcpLoCIJOkJrZdPNtrZ+WEI0GW X-Received: by 2002:a05:6808:3c97:b0:3c1:ee6f:cd17 with SMTP id gs23-20020a0568083c9700b003c1ee6fcd17mr10132985oib.2.1710608427696; Sat, 16 Mar 2024 10:00:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710608427; cv=pass; d=google.com; s=arc-20160816; b=hbIxFQRqJ2XJ3CBsqVmCzT1BJc8ahq40KnWlInKixcgih/18TCDaSpdXOD+qPQUkcV OaCAKDR0Vzn3e9n8bJAwiteR68gF/i///d+wB567TNha8jIXl4fNvMSrk1sCxjad91Uy lPmNA7dO4VrKZZZRjjaGNeo63ajmtlxTLEL62MY9TWr4VJtLWIdi8ssErodnx2IlW1R/ kICg6BHfJdQmfxTHhfqQcZDkVGpDomIE1PljeZY8CtSbwx9rRQRDTk+ztKQr3Vwfamwa nN5iIWbPeON382vXM74b1ucfDhmg2o7KTxqwod1bcjLz+Lspaw8anIz50RqJZmRuIjok Pkfw== 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=PWbA0wHuinXi0fph4mmC8TipcDP0qDAWprG2vdMlvMk=; fh=a3thHd/1IrBRhPQbiyvzcOuGGP0XceA8yiUIZma1C1M=; b=XZ51b06rDQ6PIFvDXt5wgQMy4k9tTn4T8/P9Q6oAk9elrbOS8+kVdrVIjB2kvV5YIF 4i9HyqjKRoOOYGhBaTnCQA1Oadvk7CJujNvIPPzeP/gtDT/fP8lDRendaIPb20o7Z9GX Y1CCEwRK0QzzvxjaUI6qZ5v9HJCFiIPonnPb94KGKS8EOv1OtffXcSE8sI4MDZLFkkya DjpFt2fwIKmhtyl0GIjV/F47fyBaJ7Q5IlIk6Qfmye6nKK+Y7PikFMHVtXco4qipwfXR SECzYfxz6n89D0epU4yzfZdpEIJc7RW+FnrsvzRysVj2LI158aIVIDU3o/MoDgRr046+ z/+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QVLwXgRh; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-105238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105238-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id od18-20020a0562142f1200b00690ce64fba9si5014995qvb.391.2024.03.16.10.00.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 10:00:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QVLwXgRh; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-105238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105238-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6736E1C20CD0 for ; Sat, 16 Mar 2024 17:00:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E176A1BDCD; Sat, 16 Mar 2024 17:00:20 +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="QVLwXgRh" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 F28D78C07 for ; Sat, 16 Mar 2024 17:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710608420; cv=none; b=Lw56Cg3L1c/ldR9QRsWI4CdRn9eeQPO1QxRVg7cJoiVEco+pkC1OsXOXnJZsALQKLqgu1re1ODg9062vN1hfVTJEqPqDRIziOiPvXyOQxourbkxjfM+EOkqZrKfIpuHt1sF1dNLedSgGEfQdNsu8WbiXqlO6k4piI7tWciJlKP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710608420; c=relaxed/simple; bh=u/bZv6E05f3mRkmnhykOIIMJBPFXkOhL/ZZY0KaSOUA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OelOcHN42lMosHgOfwlHJJ+C+2WtItwfEdvhRMjbOiJpbI4nJXQMKkXp2RsQ/KHRxX8VHplT7bI49+BFCYacgOaf9R53apQM3PF9JyzyZhPxARLnDyDH7FaSYdX6PFd6VGW/bbJ/i7wW0jtNPb4RBZbOjRDMxTUvc1eiXLcnt/M= 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=QVLwXgRh; arc=none smtp.client-ip=209.85.167.52 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-lf1-f52.google.com with SMTP id 2adb3069b0e04-513cfd48224so4591521e87.2 for ; Sat, 16 Mar 2024 10:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1710608416; x=1711213216; 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=PWbA0wHuinXi0fph4mmC8TipcDP0qDAWprG2vdMlvMk=; b=QVLwXgRhzK7diMNnfzwijtunQFTo0uXFx3fH5SjMFShZ4RC/X8v6gtSRbc9cpPsmyb QezrLDIGAHevRuJYpeMY3OMf8A+b4U52YEBUtXg/2pU7QQ0AFQtBoZF8lcDtOs53yEDP GkKicRIUU4x935xUqOM9Q8zVMpovKU7PrJJFU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710608416; x=1711213216; 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=PWbA0wHuinXi0fph4mmC8TipcDP0qDAWprG2vdMlvMk=; b=jAqZktrFolfpsiKACQY2gw4Y3Kkp2yaiDTx+4sDf51LkMepLG1nCFsWi41wn3YB3tS rBq+1IW4/uolKreGLAGtknpG6y5TCPVzNNww+lAlPW5NwMBA6NuMO7k8J+37aEWJqM0f A+bCLOlg92WrB53K6Vnhb+tJbxHjErQ4QhLeIfXfx5K6qSzdsopaTcqrMOjCyr3MppFA mhkYbsZnuvHVykLaAKQIUeW24+ZBCMOrWmrp9ndcjov9qdrNTAE5Un0dDSg0iUnCRnGi WjS0YaI2ZpAz+riCP2vPZsk8yab+aR9ZKbj0qaif7Q2VYOJzBFlSLJ3MifygEFo4hSIb yYUg== X-Gm-Message-State: AOJu0YyB5Ny9ZffhoS6MWB2qE1YQuLpsmg06fgQFo76mExjGMWWre380 RzbwP4XQyKv76paDpE7vEooOCb9/oIdNzMVxreu8/MjD6Na9XcLNPhVDAbtYxBCIOFHWCGWxsXA C4HKzKQ== X-Received: by 2002:a19:644d:0:b0:513:d5ec:afb with SMTP id b13-20020a19644d000000b00513d5ec0afbmr1531874lfj.40.1710608415705; Sat, 16 Mar 2024 10:00:15 -0700 (PDT) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id i21-20020a198c55000000b00513137b0178sm1034243lfj.91.2024.03.16.10.00.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Mar 2024 10:00:14 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d28051376eso46588981fa.0 for ; Sat, 16 Mar 2024 10:00:14 -0700 (PDT) X-Received: by 2002:a2e:a164:0:b0:2d4:3e96:47ee with SMTP id u4-20020a2ea164000000b002d43e9647eemr1832357ljl.26.1710608414220; Sat, 16 Mar 2024 10:00:14 -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 09:59:57 -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:31, Linus Torvalds wrote: > > So instead of merging a new feature that was mis-designed and is > already having code working around its mis-design, I'm not merging it > at all. Here's a clue: when hacking up VFS code, ask for ACK's from the VFS people. And when hacking up MM code, make damn sure that you have VM people involved. No more of this "random code that happens to work in my tests" garbage. Yes, I'm sure that others have done this same disgusting page counting hack and this was copied-and-pasted from some other disgusting source, but because of all the history, I'm now looking at tracing pulls arefully, and I'm simply not allowing any broken hacks. So in addition to getting actual VM people to help you with mapping stuff (hard requirement), I would also suggest: - your allocation has to be live over the whole mmap (and that's due to other fundamental issues - you're not even trying to deal with actual dynamic allocations and thank Cthulhu for that), and the code is literally designed that way, so then faulting pages in one at a time and refcounting them one at a time is just pointless and wrong. Just do it all at mmap time. - I'd suggest marking it all VM_DONTCOPY | VM_IO | VM_DONTEXPAND to not let people play games with the mapping. - avoid all the sub-page ref-counts entirely by using VM_PFNMAP, and use vm_insert_pages() and a random note: - from a TLB pressure standpoint, it might be a good idea to try to keep the page table entries naturally aligned, so putting that one status page at the beginning is likely a bad idea. It will typically mean that hardware that can silently use larger TLB entries for aligned pages won't be able to do so. but the effect of that is likely fairly small. Linus