Restricting path name lookup with openat2()
Restricting path name lookup with openat2()
Posted Aug 23, 2019 6:21 UTC (Fri) by pr1268 (guest, #24648)Parent article: Restricting path name lookup with openat2()
__u64 reserved[7]; /* must be zeroed */
Why so much empty reserved space? Requiring the use of a struct with 56 empty bytes simply for "reserve" seems unusual.
I'm sure there's a good reason, not just for having the reserve space, but also for having so much of it, but I didn't glean that from the article.
Posted Aug 23, 2019 11:57 UTC (Fri)
by cyphar (subscriber, #110703)
[Link] (5 responses)
* Though, the struct being 64-bytes overall does mean it fits in one cache-line. That's not a good argument for it to be that big, but it does mean that making it any bigger than 64 bytes would be a much worse idea. I figured that I might as well make it as big as reasonable and see what other ideas people came up with.
Posted Aug 23, 2019 22:21 UTC (Fri)
by josh (subscriber, #17465)
[Link] (2 responses)
Posted Aug 24, 2019 5:54 UTC (Sat)
by buck (subscriber, #55985)
[Link] (1 responses)
Posted Aug 24, 2019 20:05 UTC (Sat)
by quotemstr (subscriber, #45331)
[Link]
Posted Jan 9, 2021 7:55 UTC (Sat)
by Serentty (guest, #132335)
[Link] (1 responses)
Posted Feb 3, 2021 5:50 UTC (Wed)
by cyphar (subscriber, #110703)
[Link]
Restricting path name lookup with openat2()
Restricting path name lookup with openat2()
Restricting path name lookup with openat2()
Restricting path name lookup with openat2()
Restricting path name lookup with openat2()
clone3 and openat2 use the same design for extension, and Christian and I gave a talk about this design at Linux Plumbers last year. You're commenting on a thread which is almost 2 years old. :P
Restricting path name lookup with openat2()
