RFC Check O_* flags set with fcntl() on anon_inode files.
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | anon_inode fcntl() checks: report failure for fcntl(F_SETFL) on signalfdfs/ | +13 | 0 replies | |
| 2/4 | anon_inode fcntl() checks: report failure for fcntl(F_SETFL) on timerfdfs/ | +12 | 0 replies | |
| 3/4 | anon_inode fcntl() checks: report failure for fcntl(F_SETFL) on epollfs/ | +13 | 0 replies | |
| 4/4 | anon_inode fcntl() checks: report failure for fcntl(F_SETFL) on eventfdfs/ | +12 | 0 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Davide Libenzi |
|---|---|
| Series | A-b |
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC][PATCH 0/4] Check O_* flags set with fcntl() on anon_inode files.
anon_inode interfaces often do not support flags that can be set by fcntl(). Right now using fcntl() to set these flags falsely reports success for things like O_ASYNC yet SIGIO is not delivered.
I relied on the flags allowed by the syscalls that create these files to determine the flags that are allowed to be set by fcntl().
Each patch checks flags for one anonymous inode interface:
[PATCH 1/4] signalfd
[PATCH 2/4] timerfd
[PATCH 3/4] epoll
[PATCH 4/4] eventfd
I did not check the perf, kvm-vm, or kvm-vcpu uses of anon_inodes.
Cheers,
-Matt Helsley