diff options
| author | John Groves <John@Groves.net> | 2026-06-15 16:07:21 +0000 |
|---|---|---|
| committer | Alison Schofield <alison.schofield@intel.com> | 2026-07-14 16:26:43 -0700 |
| commit | 755effecd6fc7d8ff18f09135cb5e3cf98c20d55 (patch) | |
| tree | e19bbbc1cf598b61217bf0ae7547009febf3c133 /scripts/Makefile.thinlto | |
| parent | ff7c73fca793bd5c29a15ba735b0886f62f3a840 (diff) | |
| download | linux-stable-755effecd6fc7d8ff18f09135cb5e3cf98c20d55.tar.gz linux-stable-755effecd6fc7d8ff18f09135cb5e3cf98c20d55.zip | |
dax/fsdev: fail probe on invalid pgmap offset
Convert the WARN_ON to a fatal error when pgmap_phys > phys. This
condition means the remapped region starts after the device's data
region, which is an impossible state. Previously the probe continued
with data_offset=0, leaving virt_addr silently misaligned. Now probe
returns -EINVAL with a diagnostic message.
Fixes: 759455848df0b ("dax: Save the kva from memremap")
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Signed-off-by: John Groves <john@groves.net>
Link: https://patch.msgid.link/0100019ecc0999fa-97574544-8b6b-46cf-9f33-423abdbeee7f-000000@email.amazonses.com
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
