On Wed, Dec 04, 2024 at 12:06:54PM +0100, Mateusz Guzik wrote: > On Wed, Dec 04, 2024 at 11:56:39AM +0100, Christian Brauner wrote: > > Only one question: The FMODE_FSNOTIFY_HSM(exe_file->f_mode) cannot > > change once it's set, right? > > > > The reason I'm asking is that we don't want to end up in a scenario > > where we didn't block writecount in exe_file_deny_write_access() but > > then unblock someone else's writecount in exe_file_allow_write_access(). > > > > What's what I brought up, turns out its fine and the code will get a > comment to that extent. > > see https://lore.kernel.org/linux-fsdevel/CAGudoHGzfjpukQ1QbuH=0Fot2vAWyrez-aVdO5Fum+330v-hmA@xxxxxxxxxxxxxx/ Thank you! Then it seems we're good to go.