Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751905AbdIKRYw (ORCPT ); Mon, 11 Sep 2017 13:24:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57840 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbdIKRYv (ORCPT ); Mon, 11 Sep 2017 13:24:51 -0400 Date: Mon, 11 Sep 2017 10:24:49 -0700 From: Greg Kroah-Hartman To: Amit Pundir Cc: Todd Kjos , Todd Kjos , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , "open list:ANDROID DRIVERS" , lkml , Martijn Coenen , Xu Yiping , gengyanping@hisilicon.com, shiwanglai@hisilicon.com, John Stultz Subject: Re: [PATCH] binder: fix memory corruption in binder_transaction binder Message-ID: <20170911172449.GB21108@kroah.com> References: <20170905172152.36227-1-tkjos@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.0 (2017-09-02) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1132 Lines: 28 On Mon, Sep 11, 2017 at 10:25:14PM +0530, Amit Pundir wrote: > Hi Todd, > > On 11 September 2017 at 21:10, Todd Kjos wrote: > > (resend in plain-text mode -- sorry about that) > > > > Amit, > > > > Are you sure this patch is the culprit? That is pretty surprising > > since this change can only be hit in a uncommon case (the target node > > is valid when we start creating the transaction, but dead when we > > check right before sending it) so it is unlikely to be hit during a > > normal boot. It also fixes a corruption -- so if you were actually > > hitting the case, it would likely have caused issues before and not > > now. Take a look at it and see if you think it is really possible. > > > > I just booted hikey to Android with this patch 10 times in a row with > > no issues (used hikey-linaro 4.9 kernel which has this patch). > > Sorry for not being clear enough in the bug report. android-4.9 is > fine, I see this issue on linux mainline tree with this patch. What exact kernel release? A number of binder fixes have recently landed in the stable trees, and in Linus's tree. thanks, greg k-h