Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp705458lqb; Fri, 24 May 2024 10:32:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5pmlhDla+FyUTK0tInb9VXWMg/MANPpWAy15m8sURWRbKFRaNHJWXQSVRk3VN5SPXHSPsUrFje+jPoqZXXbdNsLkZIdFB6u4N2vQEqA== X-Google-Smtp-Source: AGHT+IG5pcbntQ8L/f2xkYZ+rodulrle38cqGruzsl038IbZGCqBj1J1VBqrFtvZk6hzLTYuGF0/ X-Received: by 2002:a17:903:1109:b0:1e4:df0c:a570 with SMTP id d9443c01a7336-1f4486bd9ccmr31342085ad.8.1716571946643; Fri, 24 May 2024 10:32:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716571946; cv=pass; d=google.com; s=arc-20160816; b=OcW0WUSP5PysRnRc0+PofbkyzP/tetjqJAaWGUrQCYa10X58zLmLPbN4/pwGzRF/+H y2uQvh4SlIwHWZrtTeMy/lLa7f+8vQ3br7DncKVVTeL0TG3wvOULx8PbtsXiOSccis72 8X3ygSvEjs+bLQ6/zFyaDpUBnHwGIJAAP2PPhFfWaq0jux0K2QmGREzU5KRAgvgNCkzJ 4ND/t28nHO+oJ/TL6dOLk5BUqoB8+WwaqDK12YQWdeuqw5G15VtPBJTXAZLvjzYeVuzj BSwfUlSySqyF/Rf79aYAcTXEkW+HbniG2Z3oLchhvWxqG0jtlbXecYYDscj7B586GGxC 9K2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=JEWTCSM3XBFavVDN9bUg0nS7Wtc0uHZpCIzdXnEp5Lg=; fh=NJfM4rEahl8fL20O+26eupcsxGBu/NuwJP1p3Hh4EvY=; b=qoVSod6UAOUMZe4LC0ck8j149Tew+bvJfcR50lM4acMTPrnWTaTyCp2GWwtIIEGb7Q ccrQQO2q3QyufRcx4hmJQcyah40uO1LSUyGdjVbbv6J6LFTUoXHB0FQf/+HP0NhBJAc5 mZREtYssKQkIvBaf2QjykYNlFjRH2Gld+3dvgSOB+MS4VQzjh7n1sq51BPbhXVaF7EJA k9Th/OIlEC0ILA6X5DXCJGNhMzAWFzCiBH7jQfPyR4N8CvOBh7QyuzxVL0WPqKCV6ttY FF9mSq1y6DgOWxkGfA56VBr+Hbef4aGUI5K1eFwMJjN7n6XiEYH3+Xf5UmNxpkFnX5FR +/sQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=nziDWrxf; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-188976-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188976-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f44ca09fa3si16969345ad.606.2024.05.24.10.32.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 10:32:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188976-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=nziDWrxf; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-188976-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188976-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4F3A6282448 for ; Fri, 24 May 2024 17:32:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7EC02C182; Fri, 24 May 2024 17:32:14 +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="nziDWrxf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D2BAA1BF3F; Fri, 24 May 2024 17:32:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716571934; cv=none; b=Tovn0+jSCIpwgtYGSK2rq6fjaMudt4hlISyWkuDNh9SQKs0vYfJok7CNQeBL/icm/TjyCjCALzwcy7fwe2DH/1u//EEc18qhHJlLhI7LUe2G8H00F3AqAbyMk/ofDiPzJjDr/lAqxRWTRwo2Fm0Vduaq2Ln4X6Zc1kVo6zCgn/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716571934; c=relaxed/simple; bh=JEWTCSM3XBFavVDN9bUg0nS7Wtc0uHZpCIzdXnEp5Lg=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=CBUYLuUGALGzG8NAu0gZKJq3L9FnWUppuy3adt6V53Oq/m3oJqknYJ1xcn5QPBjXw1iCa1RP9uYjb/G/YCDpJw7RGbZNSEUXKouYiM4mDL+w/YQdWGQXXT0JyaLZejEkcZF1kJQVUS62iF2PUQN+Laob8ayu5Cd5zeIAYyr6qdM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=nziDWrxf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F125AC2BBFC; Fri, 24 May 2024 17:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1716571933; bh=JEWTCSM3XBFavVDN9bUg0nS7Wtc0uHZpCIzdXnEp5Lg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nziDWrxfNfD1eMXTOJu+nT1tjve0RD4XhiJSvWDxO/3X2n4X1z/5AzsGZopm6RMNn Bb+k6UgtxiO8OmA25GcIvKyo+WVZttIyGmD9BB95X6FaGlZvuuG6SMgRFTVqvAUwcD FV1WRKTTt6SWYQ+s9E/lXuhNBkGZ8r40m3NZrtVY= Date: Fri, 24 May 2024 10:32:12 -0700 From: Andrew Morton To: Andrii Nakryiko Cc: linux-fsdevel@vger.kernel.org, brauner@kernel.org, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, gregkh@linuxfoundation.org, linux-mm@kvack.org, liam.howlett@oracle.com, surenb@google.com, rppt@kernel.org Subject: Re: [PATCH v2 0/9] ioctl()-based API to query VMAs from /proc//maps Message-Id: <20240524103212.382d10aed85f2e843e86febb@linux-foundation.org> In-Reply-To: <20240524041032.1048094-1-andrii@kernel.org> References: <20240524041032.1048094-1-andrii@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Thu, 23 May 2024 21:10:22 -0700 Andrii Nakryiko wrote: > Implement binary ioctl()-based interface to /proc//maps file Why an ioctl rather than a read() of (say) a sysfs file?