1. 06 Dec, 2014 22 commits
  2. 03 Dec, 2014 7 commits
  3. 27 Nov, 2014 7 commits
  4. 21 Nov, 2014 1 commit
    • Takashi Iwai's avatar
      pvpanic: Set high notifier priority · 037e6929
      Takashi Iwai authored
      commit 7939831e upstream.
      
      We've observed the missing pvpanic call at panic, and it turned out
      that this was blocked by the broken notifier of drm_fb_helper, where
      scheduling may be called during switching to the fb console.
      It's fairly difficult to fix the drm_fb problem and a quick fix isn't
      foreseen, a simpler solution for the missing pvpanic call would be
      just to call this earlier.
      
      In order to assure that, this patch sets a higher priority to pvpanic
      notifier_block.  Once when the issue of drm_fb is resolved, we can
      remove this priority again.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      037e6929
  5. 19 Nov, 2014 3 commits
    • Sergei Antonov's avatar
      hfsplus: emit proper file type from readdir · f96abf00
      Sergei Antonov authored
      commit 97a62eae upstream.
      
      hfsplus_readdir() incorrectly returned DT_REG for symbolic links and
      special files.  Return DT_REG, DT_LNK, DT_FIFO, DT_CHR, DT_BLK, DT_SOCK,
      or DT_UNKNOWN according to mode field in catalog record.  Programs
      relying on information from readdir will now work correctly with HFS+.
      Signed-off-by: default avatarSergei Antonov <saproj@gmail.com>
      Cc: Anton Altaparmakov <aia21@cam.ac.uk>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
      Cc: Hin-Tak Leung <htl10@users.sourceforge.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      f96abf00
    • Sougata Santra's avatar
      fs/hfsplus/extents.c: fix concurrent acess of alloc_blocks · 7357404a
      Sougata Santra authored
      commit d7bdb996 upstream.
      
      Concurrent access to alloc_blocks in hfsplus_inode_info() is protected
      by extents_lock mutex.  This patch fixes two instances where
      alloc_blocks modification was not protected with this lock.
      
      This fixes possible allocation bitmap corruption in race conditions
      while extending and truncating files.
      
      [akpm@linux-foundation.org: take extents_lock before taking a copy of ->alloc_blocks]
      [akpm@linux-foundation.org: remove now-unused label `out']
      Signed-off-by: default avatarSougata Santra <sougata@tuxera.com>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
      Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      7357404a
    • Vyacheslav Dubeyko's avatar
      hfsplus: fix remount issue · 291e7f11
      Vyacheslav Dubeyko authored
      commit bd2c0035 upstream.
      
      Current implementation of HFS+ driver has small issue with remount
      option.  Namely, for example, you are unable to remount from RO mode
      into RW mode by means of command "mount -o remount,rw /dev/loop0
      /mnt/hfsplus".  Trying to execute sequence of commands results in an
      error message:
      
        mount /dev/loop0 /mnt/hfsplus
        mount -o remount,ro /dev/loop0 /mnt/hfsplus
        mount -o remount,rw /dev/loop0 /mnt/hfsplus
      
        mount: you must specify the filesystem type
      
        mount -t hfsplus -o remount,rw /dev/loop0 /mnt/hfsplus
      
        mount: /mnt/hfsplus not mounted or bad option
      
      The reason of such issue is failure of mount syscall:
      
        mount("/dev/loop0", "/mnt/hfsplus", 0x2282a60, MS_MGC_VAL|MS_REMOUNT, NULL) = -1 EINVAL (Invalid argument)
      
      Namely, hfsplus_parse_options_remount() method receives empty "input"
      argument and return false in such case.  As a result, hfsplus_remount()
      returns -EINVAL error code.
      
      This patch fixes the issue by means of return true for the case of empty
      "input" argument in hfsplus_parse_options_remount() method.
      Signed-off-by: default avatarVyacheslav Dubeyko <slava@dubeyko.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Christoph Hellwig <hch@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      291e7f11