Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp958435rdb; Tue, 23 Jan 2024 23:41:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmNsHC/XwZ0Z7vUvx69Z7LmaCsBW5I+8wxk4BlPl2GPpb2lq3KRwR5rMukGqsk1oimzvQJ X-Received: by 2002:a17:907:d30b:b0:a29:3a5b:6fdd with SMTP id vg11-20020a170907d30b00b00a293a5b6fddmr418369ejc.192.1706082108832; Tue, 23 Jan 2024 23:41:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706082108; cv=pass; d=google.com; s=arc-20160816; b=kpWBMrdbk8KhayVUfli5nIxvvgJnAo6HAAz5SoWh9UzsFttUSsDSyA8xBiM3rZFX9V O96QMuYcGTCiN4f8bIj+NnO5qfh1WKzg+7SpHVoaLprEqn401F5t6h+vuRhRLW/487si zonpwgcYjvq1AhI0t5eSJ8X29UXoVNNV2oqlqf5lyMyqOEWVJBDZKW1IqklSJ+mT37v7 m0QS5JiZi6ZYRoD6eyJigxU1CQsspzXjfHr/94cExvAYLcTiwiXTtrGhEyWxMMnHQOwX 1PRUien/Kugsz7Uk9B4//tVWqrPSISRQN+ifHlaEkeAQcxequL29DHR0b6EK1ii8+o4E OV+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=wS35TwK0K3MUqOLWKIEUN4XToREr5MJPwePHWgqnUXE=; fh=4Vodg6AF2Rwr/unxmWsjptdA/bXZQusni4geHSRGAQA=; b=eDfYxjEH8Izz5TtOrslUBVpwmpEyv1QjKcdArh12gXnPIo3DXUby+Y8Mg4zBXdhCxt zHQL4mp+B+LnfdoUWV6c43IMHmI0pqH6ALuKmRb8ppQnZ1j1bWGWRVGScn3mVJ56xu88 bQSTgdreLAMwQUmHUN3URc4YtMLw23tdmOawgTArtsg1yqS5J+mTzbNbM8AdGKX0NmCf r4bbfTTiEisEeJeDdygVeBYc0Nluiyp6xd9mDxz1lbtzV2mkRsTj1zqe6ab81qbkSarB GCrj2BlKoIyLIryr99TDsa9QYvfSYUFEldM86IC1d5PIlBw0x/mVWQ/sZI+tOKYwDYeH w+iw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=QOzbeEOU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dkOCgmY7; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-36571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d3-20020a170906c20300b00a2d9a0bb418si10050800ejz.669.2024.01.23.23.41.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 23:41:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36571-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=@arndb.de header.s=fm2 header.b=QOzbeEOU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dkOCgmY7; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-36571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 6AB101F21CF4 for ; Wed, 24 Jan 2024 07:41:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B48D1171A6; Wed, 24 Jan 2024 07:39:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="QOzbeEOU"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="dkOCgmY7" Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (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 5C2D817550; Wed, 24 Jan 2024 07:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706081957; cv=none; b=FA1KXYh2ac4DZL5oH0UReHdvELlbf8uzldoEYhEIpydjq6wACb6XsaU2fxtd68O7vFey6hfdnrQcJKqyLiMVdnA+C+VsvBynbK48UIAONjYs8tHA3gh3sM897xvScXHSBlzZZedQ43GiygVfHCJFwZi3/F0pCWonWTqZjHzAAPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706081957; c=relaxed/simple; bh=D9xiLc3ZLn+kzRd73I0utR9rOr5+qDorAUvhecrJ/GQ=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=rk4d+uuo93C88/uLgtr1UPobC9sYW3ZgiZFcmRcIVSERq1tcPBbV5cLI1gHUge9Lm4TQwMtUrreJzMeqGbN+oYJopnOmCfcqULrQB6KPw4DtOqwS68qOwv/eE0UHcDWsznJF2tcq2BGEaXYAZOsd+kAz8H+t7GgPNC7GwBFMomQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=QOzbeEOU; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=dkOCgmY7; arc=none smtp.client-ip=64.147.123.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A8DFF3200B11; Wed, 24 Jan 2024 02:39:13 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 24 Jan 2024 02:39:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1706081953; x=1706168353; bh=wS35TwK0K3 MUqOLWKIEUN4XToREr5MJPwePHWgqnUXE=; b=QOzbeEOUxsmmwCRvwyDa6uJOd0 V6VxJ1hz0dq/Z8IIYvaP+2gGafTMn8ojm5vuQiyMRLInJDVxnF5Ypf5p7I4Tltcr J6JmwuZPrh+M/OdhQd/MF27syr1H0DRkpZRhE5nHzDRto0cS7zGVKql0XBXr20S9 UGATx6ivIusF0G4MY7ZagIwQ8CyyYJa0927bOUYOENJeSoqXSVohrjqN6zh1Yw85 uInG0bbNs7BkU6tCCFmvhsBiqrv7wp6AmbDFrRIfaNU2w8Gyt+5wDGskO0ddjtmk HEddPhvQhlnC0UnWvbt23FV1lZvy7mHhvYWah8vWXC/8e2N2xLK+x+wfzCAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1706081953; x=1706168353; bh=wS35TwK0K3MUqOLWKIEUN4XToREr 5MJPwePHWgqnUXE=; b=dkOCgmY7rJ8pgQjO+69dAeru9JMOqksLU/t8+Ej8tncT P52reVCASyRKqwkrrawkhL3UlGknrUhzGH+W2v3DAHX5uO2Qp9lVAmw6G6njUrIG kPQwQV2pWGtzOWEpTF6MxVAiWT8MTAAUnBJW0iAfIaPx46j2SDDYyIiuj4p00lIn Z7vFQCoSxRthkybGOWFc92SgrW51nSpC8o07Qf5E4apnLuI/xq0tNGihTRfVgCao krfcn8nYH2YDWSzeHYx4U7091KpDDIqDuyJC0m+kW+3DhdZ6iltX/MGxIRZgn7dR PAL44zp+zc9HpBGy+uLANFYsuM9+ks9BEUPQy1zqbQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeltddgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BDB43B6008F; Wed, 24 Jan 2024 02:39:12 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-119-ga8b98d1bd8-fm-20240108.001-ga8b98d1b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: <20240124004028.16826-2-zfigura@codeweavers.com> References: <20240124004028.16826-1-zfigura@codeweavers.com> <20240124004028.16826-2-zfigura@codeweavers.com> Date: Wed, 24 Jan 2024 08:38:52 +0100 From: "Arnd Bergmann" To: "Elizabeth Figura" , "Greg Kroah-Hartman" , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Cc: wine-devel@winehq.org, =?UTF-8?Q?Andr=C3=A9_Almeida?= , "Wolfram Sang" , "Arkadiusz Hiler" , "Peter Zijlstra" Subject: Re: [RFC PATCH 1/9] ntsync: Introduce the ntsync driver and character device. Content-Type: text/plain On Wed, Jan 24, 2024, at 01:40, Elizabeth Figura wrote: > ntsync uses a misc device as the simplest and least intrusive uAPI interface. > > Each file description on the device represents an isolated NT instance, intended > to correspond to a single NT virtual machine. > > Signed-off-by: Elizabeth Figura I'm looking at the ioctl interface to ensure it's well-formed. Your patches look ok from that perspective, but there are a few minor things I would check for consistency here: > + > +static const struct file_operations ntsync_fops = { > + .owner = THIS_MODULE, > + .open = ntsync_char_open, > + .release = ntsync_char_release, > + .unlocked_ioctl = ntsync_char_ioctl, > + .compat_ioctl = ntsync_char_ioctl, > + .llseek = no_llseek, > +}; The .compat_ioctl pointer should point to compat_ptr_ioctl() since the actual ioctl commands all take pointers instead of interpreting the argument as a number. On x86 and arm64 this won't make a difference as compat_ptr() is a nop. Arnd