Skip to content

RFC Check O_* flags set with fcntl() on anon_inode files.

Matt Helsley lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4anon_inode fcntl() checks: report failure for fcntl(F_SETFL) on signalfdfs/signalfd.c+13 -60 replies
2/4anon_inode fcntl() checks: report failure for fcntl(F_SETFL) on timerfdfs/timerfd.c+12 -40 replies
3/4anon_inode fcntl() checks: report failure for fcntl(F_SETFL) on epollfs/eventpoll.c+13 -40 replies
4/4anon_inode fcntl() checks: report failure for fcntl(F_SETFL) on eventfdfs/eventfd.c+12 -30 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.

PatchDavide Libenzi
SeriesA-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.

Read the v1 thread

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