From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751446AbdHVPt4 (ORCPT ); Tue, 22 Aug 2017 11:49:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58654 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbdHVPtz (ORCPT ); Tue, 22 Aug 2017 11:49:55 -0400 Date: Tue, 22 Aug 2017 08:49:59 -0700 From: Greg KH To: John Stultz Cc: Martijn Coenen , Todd Kjos , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Amit Pundir , lkml , devel@driverdev.osuosl.org, Martijn Coenen Subject: Re: [PATCH 3/3] ANDROID: binder: fix proc->tsk check. Message-ID: <20170822154959.GB10872@kroah.com> References: <20170728115608.61306-1-maco@android.com> <20170728115608.61306-4-maco@android.com> <20170808180802.GB22755@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 21, 2017 at 11:48:39AM -0700, John Stultz wrote: > On Tue, Aug 8, 2017 at 11:08 AM, Greg KH wrote: > > On Tue, Aug 08, 2017 at 10:34:47AM -0700, John Stultz wrote: > >> On Fri, Jul 28, 2017 at 4:56 AM, Martijn Coenen wrote: > >> > Commit c4ea41ba195d ("binder: use group leader instead of open thread")' > >> > was incomplete and didn't update a check in binder_mmap(), causing all > >> > mmap() calls into the binder driver to fail. > >> > > >> > Signed-off-by: Martijn Coenen > >> > --- > >> > drivers/android/binder.c | 2 +- > >> > 1 file changed, 1 insertion(+), 1 deletion(-) > >> > > >> > diff --git a/drivers/android/binder.c b/drivers/android/binder.c > >> > index f7665c31feca..831cdd7d197d 100644 > >> > --- a/drivers/android/binder.c > >> > +++ b/drivers/android/binder.c > >> > @@ -3362,7 +3362,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma) > >> > const char *failure_string; > >> > struct binder_buffer *buffer; > >> > > >> > - if (proc->tsk != current) > >> > + if (proc->tsk != current->group_leader) > >> > return -EINVAL; > >> > > >> > if ((vma->vm_end - vma->vm_start) > SZ_4M) > >> > >> Tested-by: John Stultz > >> > >> As Amit already confirmed, this resolves the wifi and bluetooth > >> regression I was seeing with Android using 4.13-rc2. > >> > >> Though I've not seen it show up in Linus' tree yet, so I wanted to > >> pester folks so it gets into 4.13-rc (its given me some slight grief > >> trying to bisect down a separate issue). > > > > I will queue this up in the next few days, I need to resolve the patches > > that have been sent to me for this, sorry for the delay. > > Hey Greg, > Sorry to pester you again on this, but this seems to still be > missing in -rc6. Don't want it to slip by. It's not lost, just on the bottom of my queue, will catch up with it next week... thanks, greg k-h