1. 01 May, 2019 1 commit
  2. 28 Apr, 2019 1 commit
    • Jan Kara's avatar
      fsnotify: Fix NULL ptr deref in fanotify_get_fsid() · b1da6a51
      Jan Kara authored
      fanotify_get_fsid() is reading mark->connector->fsid under srcu. It can
      happen that it sees mark not fully initialized or mark that is already
      detached from the object list. In these cases mark->connector
      can be NULL leading to NULL ptr dereference. Fix the problem by
      being careful when reading mark->connector and check it for being NULL.
      Also use WRITE_ONCE when writing the mark just to prevent compiler from
      doing something stupid.
      
      Reported-by: syzbot+15927486a4f1bfcbaf91@syzkaller.appspotmail.com
      Fixes: 77115225 ("fanotify: cache fsid in fsnotify_mark_connector")
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
      b1da6a51
  3. 24 Apr, 2019 3 commits
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2019-04-24' of git://anongit.freedesktop.org/drm/drm · ba25b50d
      Linus Torvalds authored
      Pull drm regression fixes from Dave Airlie:
       "We interrupt your regularly scheduled drm fixes for a regression
        special.
      
        The first is for a fix in i915 that had unexpected side effects
        fallout in the userspace X.org modesetting driver where X would no
        longer start. I got tired of the nitpicking and issued a large hammer
        on it. The X.org driver is buggy, but blackscreen regressions are
        worse.
      
        The second was an oversight that myself and Gerd should have noticed
        better, Gerd is trying to fix this properly, but the regression is too
        large to leave, even if the original behaviour is bad in some cases,
        it's clearly bad to break a bunch of working use cases.
      
        I'll likely have a regular fixes pull later, but I really wanted to
        highlight these"
      
      * tag 'drm-fixes-2019-04-24' of git://anongit.freedesktop.org/drm/drm:
        Revert "drm/virtio: drop prime import/export callbacks"
        Revert "drm/i915/fbdev: Actually configure untiled displays"
      ba25b50d
    • Dave Airlie's avatar
      Revert "drm/virtio: drop prime import/export callbacks" · a0cecc23
      Dave Airlie authored
      This patch does more harm than good, as it breaks both Xwayland and
      gnome-shell with X11.
      
      Xwayland requires DRI3 & DRI3 requires PRIME.
      
      X11 crash for obscure double-free reason which are hard to debug
      (starting X11 by hand doesn't trigger the crash).
      
      I don't see an apparent problem implementing those stub prime
      functions, they may return an error at run-time, and it seems to be
      handled fine by GNOME at least.
      
      This reverts commit b318e3ff.
      [airlied:
      This broke userspace for virtio-gpus, and regressed things from DRI3 to DRI2.
      
      This brings back the original problem, but it's better than regressions.]
      
      Fixes: b318e3ff ("drm/virtio: drop prime import/export callbacks")
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      a0cecc23
    • Dave Airlie's avatar
      Revert "drm/i915/fbdev: Actually configure untiled displays" · 9fa24625
      Dave Airlie authored
      This reverts commit d179b88d.
      
      This commit is documented to break userspace X.org modesetting driver in certain configurations.
      
      The X.org modesetting userspace driver is broken. No fixes are available yet. In order for this patch to be applied it either needs a config option or a workaround developed.
      
      This has been reported a few times, saying it's a userspace problem is clearly against the regression rules.
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109806Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      Cc: <stable@vger.kernel.org> # v3.19+
      9fa24625
  4. 23 Apr, 2019 2 commits
    • Linus Torvalds's avatar
      Merge tag 'nfsd-5.1-1' of git://linux-nfs.org/~bfields/linux · 12a54b15
      Linus Torvalds authored
      Pull nfsd bugfixes from Bruce Fields:
       "Fix miscellaneous nfsd bugs, in NFSv4.1 callbacks, NFSv4.1
        lock-notification callbacks, NFSv3 readdir encoding, and the
        cache/upcall code"
      
      * tag 'nfsd-5.1-1' of git://linux-nfs.org/~bfields/linux:
        nfsd: wake blocked file lock waiters before sending callback
        nfsd: wake waiters blocked on file_lock before deleting it
        nfsd: Don't release the callback slot unless it was actually held
        nfsd/nfsd3_proc_readdir: fix buffer count and page pointers
        sunrpc: don't mark uninitialised items as VALID.
      12a54b15
    • Linus Torvalds's avatar
      Merge tag 'syscalls-5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic · d286e13d
      Linus Torvalds authored
      Pull syscall numbering updates from Arnd Bergmann:
       "arch: add pidfd and io_uring syscalls everywhere
      
        This comes a bit late, but should be in 5.1 anyway: we want the newly
        added system calls to be synchronized across all architectures in the
        release.
      
        I hope that in the future, any newly added system calls can be added
        to all architectures at the same time, and tested there while they are
        in linux-next, avoiding dependencies between the architecture
        maintainer trees and the tree that contains the new system call"
      
      * tag 'syscalls-5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
        arch: add pidfd and io_uring syscalls everywhere
      d286e13d
  5. 22 Apr, 2019 3 commits
  6. 21 Apr, 2019 1 commit
  7. 20 Apr, 2019 11 commits
  8. 19 Apr, 2019 18 commits