On 14/11/2019 00:27, Pavel Begunkov wrote: > If an operation doesn't need a file, set fd to an invalid value. > This would help to spot an unwanted fdget() in the kernel, and is > conceptually more correct (though negotiable) > Either we can add a test with close(0) beforehand, but it won't much help with new opcodes in the future. -- Pavel Begunkov