Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #50748

Bug#796036: linux-image-3.16.0-4-amd64: concurrent msync triggers NULL pointer dereference

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#796036: linux-image-3.16.0-4-amd64: concurrent msync triggers NULL pointer dereference
Date 2015-09-10 18:50 +0200
Message-ID <q7dcS-79C-11@gated-at.bofh.it> (permalink)
References <pYTuF-5ua-1@gated-at.bofh.it> <q7ayl-3dh-1@gated-at.bofh.it> <q7b1o-43t-29@gated-at.bofh.it> <q7dcR-79C-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On Thu, 2015-09-10 at 18:39 +0200, Xavier Chantry wrote:
> On 10/09/2015 16:17, Ben Hutchings wrote:
> > On Thu, 2015-09-10 at 14:55 +0100, Ben Hutchings wrote:
> >> Control: tag -1 security patch
> >>
> >> On Tue, 2015-08-18 at 20:05 +0200, Xavier Chantry wrote:
> >>> Package: src:linux
> >>> Version: 3.16.7-ckt11-1
> >>> Severity: important
> >>>
> >>> Using Debian 3.16.7-ckt4-3 and a simple test case, we were able to
> >>> reproduce a
> >>> kernel bug in msync system call.
> >> [...]
> >>
> >> I can reproduce this too.  I also found a similar problem with
> >> madvise(..., MADV_REMOVE).  The attached patch (against
> >> 3.16.7-ckt11-1+deb8u3) should fix them both.
> >
> > Actually, try this version instead.
> >
> > Ben.
> >
> 
> Yep, I already figured that this change in msync.c from file to 
> vma->vm_file was the one triggering my problem and I reported it upstream:
> https://www.mail-archive.com/aufs-users@lists.sourceforge.net/msg05167.html
> 
> J. R. Okajima acknowledged the problem and that vma->vm_file should not 
> be used, however he plans to keep the fput on vm_prfile. I guess that's 
> needed when doing msync / madvise on aufs ?
> https://www.mail-archive.com/aufs-users@lists.sourceforge.net/msg05169.html
> He said he would post a new fix, but only in a few weeks. It doesn't 
> seem that complicated but well, he looks busy.

In these two places there's nothing using vm_prfile so there should be
no need to get or put the reference.

Ben.

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#796036: linux-image-3.16.0-4-amd64: concurrent msync triggers NULL pointer dereference Xavier Chantry <xavier.chantry@intersec.com> - 2015-08-18 20:10 +0200
  Bug#796036: linux-image-3.16.0-4-amd64: concurrent msync triggers NULL pointer dereference Xavier Chantry <xavier.chantry@intersec.com> - 2015-08-19 19:00 +0200
  Bug#796036: linux-image-3.16.0-4-amd64: concurrent msync triggers NULL pointer dereference Ben Hutchings <ben@decadent.org.uk> - 2015-09-10 16:00 +0200
    Bug#796036: linux-image-3.16.0-4-amd64: concurrent msync triggers NULL pointer dereference Ben Hutchings <ben@decadent.org.uk> - 2015-09-10 16:30 +0200
      Bug#796036: linux-image-3.16.0-4-amd64: concurrent msync triggers NULL pointer dereference Ben Hutchings <ben@decadent.org.uk> - 2015-09-10 18:50 +0200
      Bug#796036: linux-image-3.16.0-4-amd64: concurrent msync triggers NULL pointer dereference Xavier Chantry <xavier.chantry@intersec.com> - 2015-09-10 18:50 +0200
  Processed: Re: Bug#796036: linux-image-3.16.0-4-amd64: concurrent  msync triggers NULL pointer dereference owner@bugs.debian.org (Debian Bug Tracking System) - 2015-09-10 16:00 +0200

csiph-web