lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <0100019bc82f2d6a-e8970706-9e75-4395-a464-7d170f033a80-000000@email.amazonses.com>
Date: Fri, 16 Jan 2026 19:01:33 +0000
From: John Groves <john@...alactic.com>
To: John Groves <John@...ves.net>, 
	Miklos Szeredi <miklos@...redi.hu>, 
	Dan Williams <dan.j.williams@...el.com>, 
	Bernd Schubert <bschubert@....com>, 
	Alison Schofield <alison.schofield@...el.com>
Cc: John Groves <jgroves@...ron.com>, 
	John Groves <jgroves@...tmail.com>, 
	Jonathan Corbet <corbet@....net>, 
	Vishal Verma <vishal.l.verma@...el.com>, 
	Dave Jiang <dave.jiang@...el.com>, 
	Matthew Wilcox <willy@...radead.org>, 
	Jan Kara <jack@...e.cz>, 
	Alexander Viro <viro@...iv.linux.org.uk>, 
	David Hildenbrand <david@...nel.org>, 
	Christian Brauner <brauner@...nel.org>, 
	Darrick J . Wong <djwong@...nel.org>, 
	Randy Dunlap <rdunlap@...radead.org>, 
	Jeff Layton <jlayton@...nel.org>, 
	Amir Goldstein <amir73il@...il.com>, 
	Jonathan Cameron <Jonathan.Cameron@...wei.com>, 
	Stefan Hajnoczi <shajnocz@...hat.com>, 
	Joanne Koong <joannelkoong@...il.com>, 
	Josef Bacik <josef@...icpanda.com>, 
	Bagas Sanjaya <bagasdotme@...il.com>, 
	James Morse <james.morse@....com>, 
	Fuad Tabba <tabba@...gle.com>, 
	Sean Christopherson <seanjc@...gle.com>, 
	Shivank Garg <shivankg@....com>, 
	Ackerley Tng <ackerleytng@...gle.com>, 
	Gregory Price <gourry@...rry.net>, 
	Aravind Ramesh <arramesh@...ron.com>, 
	Ajay Joshi <ajayjoshi@...ron.com>, 
	venkataravis@...ron.com <venkataravis@...ron.com>, 
	linux-doc@...r.kernel.org <linux-doc@...r.kernel.org>, 
	linux-kernel@...r.kernel.org <linux-kernel@...r.kernel.org>, 
	nvdimm@...ts.linux.dev <nvdimm@...ts.linux.dev>, 
	linux-cxl@...r.kernel.org <linux-cxl@...r.kernel.org>, 
	linux-fsdevel@...r.kernel.org <linux-fsdevel@...r.kernel.org>
Subject: [PATCH V5 04/19] dax: Save the kva from memremap

From: John Groves <john@...ves.net>

Save the kva from memremap because we need it for iomap rw support.

Prior to famfs, there were no iomap users of /dev/dax - so the virtual
address from memremap was not needed.

Signed-off-by: John Groves <john@...ves.net>
---
 drivers/dax/dax-private.h | 9 +++++++--
 drivers/dax/fsdev.c       | 1 +
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h
index 0867115aeef2..f3cf0a664f1b 100644
--- a/drivers/dax/dax-private.h
+++ b/drivers/dax/dax-private.h
@@ -67,8 +67,12 @@ struct dev_dax_range {
 /**
  * struct dev_dax - instance data for a subdivision of a dax region, and
  * data while the device is activated in the driver.
- * @region - parent region
- * @dax_dev - core dax functionality
+<<<<<<< Conflict 1 of 1
++++++++ Contents of side #1
+ * @region: parent region
+ * @dax_dev: core dax functionality
+ * @virt_addr: kva from memremap; used by fsdev_dax
+ * @align: alignment of this instance
  * @target_node: effective numa node if dev_dax memory range is onlined
  * @dyn_id: is this a dynamic or statically created instance
  * @id: ida allocated id when the dax_region is not static
@@ -81,6 +85,7 @@ struct dev_dax_range {
 struct dev_dax {
 	struct dax_region *region;
 	struct dax_device *dax_dev;
+	void *virt_addr;
 	unsigned int align;
 	int target_node;
 	bool dyn_id;
diff --git a/drivers/dax/fsdev.c b/drivers/dax/fsdev.c
index 29b7345f65b1..72f78f606e06 100644
--- a/drivers/dax/fsdev.c
+++ b/drivers/dax/fsdev.c
@@ -201,6 +201,7 @@ static int fsdev_dax_probe(struct dev_dax *dev_dax)
 		pr_debug("%s: offset detected phys=%llx pgmap_phys=%llx offset=%llx\n",
 		       __func__, phys, pgmap_phys, data_offset);
 	}
+	dev_dax->virt_addr = addr + data_offset;
 
 	inode = dax_inode(dax_dev);
 	cdev = inode->i_cdev;
-- 
2.52.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ