ceph-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ceph: fix missing snapshot context in write operations
@ 2025-09-25 10:42 ethanwu
  2025-09-25 10:42 ` [PATCH 1/2] ceph: fix snapshot context missing in ceph_zero_partial_object ethanwu
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: ethanwu @ 2025-09-25 10:42 UTC (permalink / raw)
  To: ceph-devel; +Cc: xiubli, idryomov, Slava.Dubeyko, Pavan.Rallabhandi, ethanwu

This series addresses two instances where Ceph filesystem operations
were missing proper snapshot context handling, which could lead to
data inconsistencies in snapshots.

The issue occurs in two scenarios:
1. ceph_zero_partial_object() during fallocate punch hole operations
2. ceph_uninline_data() when converting inline data to regular objects

Both functions were passing NULL snapshot context to OSD write
operations instead of acquiring the appropriate context. This could
result in snapshot data corruption where subsequent reads from snapshots
 would return modified data instead of the original snapshot content.

The fix ensures that proper snapshot context is acquired and passed to
all OSD write operations in these code paths.

ethanwu (2):
  ceph: fix snapshot context missing in ceph_zero_partial_object
  ceph: fix snapshot context missing in ceph_uninline_data

 fs/ceph/addr.c | 24 ++++++++++++++++++++++--
 fs/ceph/file.c | 17 ++++++++++++++++-
 2 files changed, 38 insertions(+), 3 deletions(-)

-- 
2.43.0


Disclaimer: The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-10-28 15:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-25 10:42 [PATCH 0/2] ceph: fix missing snapshot context in write operations ethanwu
2025-09-25 10:42 ` [PATCH 1/2] ceph: fix snapshot context missing in ceph_zero_partial_object ethanwu
2025-09-26 21:40   ` Viacheslav Dubeyko
     [not found]     ` <af89b60b-17e9-4362-bccf-977b4a573a93@Mail>
2025-09-30 18:32       ` Viacheslav Dubeyko
     [not found]         ` <71034561-e258-46a7-a524-9343a6416a4f@Mail>
2025-10-01 18:22           ` Viacheslav Dubeyko
2025-09-25 10:42 ` [PATCH 2/2] ceph: fix snapshot context missing in ceph_uninline_data ethanwu
2025-09-26 21:52   ` Viacheslav Dubeyko
     [not found]     ` <a16d910c-4838-475f-a5b1-a47323ece137@Mail>
2025-09-30 18:44       ` Viacheslav Dubeyko
     [not found]         ` <1084d2db-580a-417b-a99c-cbde647fd249@Mail>
2025-10-28 15:26           ` Viacheslav Dubeyko
2025-09-25 19:36 ` [PATCH 0/2] ceph: fix missing snapshot context in write operations Viacheslav Dubeyko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).