fix INT_MAX readdir hang, plus cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 15 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | btrfs: set readdir f_pos only after filldirfs/ fs/ | +10 | 1 reply | |
| 2/6 | btrfs: fix readdir hang with offsets past INT_MAXfs/ | +16 | 0 replies | |
| 3/6 | btrfs: trivial delayed item readdir list cleanupsfs/ fs/ fs/ | +9 | 0 replies | |
| 4/6 | btrfs: simplify finding next/prev delayed itemsfs/ | +21 | 0 replies | |
| 5/6 | btrfs: add helper to get delayed item rootfs/ | +13 | 0 replies | |
| 6/6 | btrfs: get fewer delayed item refs during readdirfs/ fs/ fs/ | +23 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Miao Xie |
|---|---|
| 1/6 | R-b |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] fix INT_MAX readdir hang, plus cleanups
Hi gang,
I finally sat down to fix that readdir hang that has been in the back of my mind for a while. I *hope* that the fix is pretty simple: just don't manufacture a fake f_pos, I *think* we can abuse f_version as an indicator that we shouldn't return entries. Does this look reasonable?
We still have the problem that we can generate valid large f_pos values that can confuse 32bit userspace, but that's a different problem. I think we'll want filldir generation of EOVERFLOW like what exists for large inodes.
The rest of the patches are cleanups that I saw when absorbing the code. It's all lightly tested with xfstests but it wouldn't surprise me if I missed something so review is appreciated.
Thanks!
- z