• Linus Torvalds's avatar
    Merge tag 'vfs-6.9-rc3.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs · fae02687
    Linus Torvalds authored
    Pull vfs fixes from Christian Brauner:
     "This contains a few small fixes. This comes with some delay because I
      wanted to wait on people running their reproducers and the Easter
      Holidays meant that those replies came in a little later than usual:
    
       - Fix handling of preventing writes to mounted block devices.
    
         Since last kernel we allow to prevent writing to mounted block
         devices provided CONFIG_BLK_DEV_WRITE_MOUNTED isn't set and the
         block device is opened with restricted writes. When we switched to
         opening block devices as files we altered the mechanism by which we
         recognize when a block device has been opened with write
         restrictions.
    
         The detection logic assumed that only read-write mounted
         filesystems would apply write restrictions to their block devices
         from other openers. That of course is not true since it also makes
         sense to apply write restrictions for file...
    fae02687
super-io.c 36 KB