linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cifs: fix skipping to incorrect offset in emit_cached_diretns
@ 2022-10-11  6:46 Ronnie Sahlberg
  2022-10-11  6:46 ` [PATCH] cifs: fix skipping to incorrect offset in emit_cached_dirents Ronnie Sahlberg
  0 siblings, 1 reply; 15+ messages in thread
From: Ronnie Sahlberg @ 2022-10-11  6:46 UTC (permalink / raw)
  To: linux-cifs; +Cc: Steve French

Steve,

V3 of the patch.  We have to handle that there may be indicies that are
skipped in the ->pos sequence so add support to handle this.
As we now can handle this case we no longer need to modify cifs_filldir
to return -EEXIST for these cases.

This fixes generic/006/100/111/257



^ permalink raw reply	[flat|nested] 15+ messages in thread
* cifs: fix emitting cached direntries
@ 2022-10-11 22:07 Ronnie Sahlberg
  2022-10-11 22:07 ` [PATCH] cifs: fix skipping to incorrect offset in emit_cached_dirents Ronnie Sahlberg
  0 siblings, 1 reply; 15+ messages in thread
From: Ronnie Sahlberg @ 2022-10-11 22:07 UTC (permalink / raw)
  To: linux-cifs; +Cc: Steve French

Steve, Tom, List

I update the patch to change rc to be bool and also expanded on the comments
regarding ->pos  as from Tom's comments.




^ permalink raw reply	[flat|nested] 15+ messages in thread
* cifs: fix bug when skipping one entry too many after lseek()
@ 2022-10-10 20:42 Ronnie Sahlberg
  2022-10-10 20:42 ` [PATCH] cifs: fix skipping to incorrect offset in emit_cached_dirents Ronnie Sahlberg
  0 siblings, 1 reply; 15+ messages in thread
From: Ronnie Sahlberg @ 2022-10-10 20:42 UTC (permalink / raw)
  To: linux-cifs; +Cc: Steve French

Steve, List

Please see an updated patch for the issue when skipping one entry too many
after an lseek() on a direcotry and reading out of cache.
This now makes this patch plus patch4 pass generic/257.

It also introduces a trivial change to readir to avoid creating holes in the
ctx->pos sequence.   We either need to handle holes in this sequence
or we can just avoid creating holes in the first place (which this patch does)




^ permalink raw reply	[flat|nested] 15+ messages in thread
* cifs: fix failure for generic/257
@ 2022-10-06  4:36 Ronnie Sahlberg
  2022-10-06  4:36 ` [PATCH] cifs: fix skipping to incorrect offset in emit_cached_dirents Ronnie Sahlberg
  0 siblings, 1 reply; 15+ messages in thread
From: Ronnie Sahlberg @ 2022-10-06  4:36 UTC (permalink / raw)
  To: linux-cifs; +Cc: Steve French

Steve, List,

Please find attached a small patch that fixes when/where we start emitting dirents
to the application AFTER it has performed a lseek() to a different offset.
Not sure if applications should assume that the offset where a specific inode value can be
found at being stable, we need this fix anyway to address generic/257

With this patch you can also apply patch4 from the cached directory series
and generic/257 will still pass.
 



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

end of thread, other threads:[~2022-10-12  1:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11  6:46 cifs: fix skipping to incorrect offset in emit_cached_diretns Ronnie Sahlberg
2022-10-11  6:46 ` [PATCH] cifs: fix skipping to incorrect offset in emit_cached_dirents Ronnie Sahlberg
2022-10-11 16:38   ` Tom Talpey
2022-10-11 21:38     ` Steve French
2022-10-11 21:54     ` ronnie sahlberg
  -- strict thread matches above, loose matches on Subject: below --
2022-10-11 22:07 cifs: fix emitting cached direntries Ronnie Sahlberg
2022-10-11 22:07 ` [PATCH] cifs: fix skipping to incorrect offset in emit_cached_dirents Ronnie Sahlberg
2022-10-12  0:49   ` Tom Talpey
2022-10-12  1:04     ` Leif Sahlberg
2022-10-10 20:42 cifs: fix bug when skipping one entry too many after lseek() Ronnie Sahlberg
2022-10-10 20:42 ` [PATCH] cifs: fix skipping to incorrect offset in emit_cached_dirents Ronnie Sahlberg
2022-10-06  4:36 cifs: fix failure for generic/257 Ronnie Sahlberg
2022-10-06  4:36 ` [PATCH] cifs: fix skipping to incorrect offset in emit_cached_dirents Ronnie Sahlberg
2022-10-06  5:18   ` Steve French
2022-10-06  5:21   ` Steve French
2022-10-08 15:21   ` Steve French
2022-10-09 17:54   ` Aurélien Aptel
2022-10-10  5:12     ` ronnie sahlberg

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).