file_remove_privs needs to be called with i_rsem held, which I don't think we do here. It also really should be called under the same i_rwsem critical section that does modify the file content, so we'll have to move the call into the methods.
file_remove_privs needs to be called with i_rsem held, which I don't think we do here. It also really should be called under the same i_rwsem critical section that does modify the file content, so we'll have to move the call into the methods.