mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
The comment in fuse_open about O_DIRECT: "VFS checks this, but only _after_ ->open()" also holds for fuse_create, however, the same kind of check was missing there. As an impact of this bug, open(newfile, O_RDWR|O_CREAT|O_DIRECT) fails, but a stub newfile will remain if the fuse server handled the implied FUSE_CREATE request appropriately. Other impact: in the above situation ima_file_free() will complain to open/free imbalance if CONFIG_IMA is set. Signed-off-by: Csaba Henk <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]> Cc: Harshavardhana <[email protected]> Cc: [email protected]