Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp15614img; Tue, 19 Mar 2019 16:42:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxg8Y0R30vt8UIuRLQbDSUmT2pcya4PiwWYX3SGLGRlymmrQZgUpQs+jFdXAbiwCvVWBfaR X-Received: by 2002:a63:6f49:: with SMTP id k70mr4487799pgc.132.1553038956355; Tue, 19 Mar 2019 16:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553038956; cv=none; d=google.com; s=arc-20160816; b=YcRBTo6H8YxvCpHS+7X1cE9dEiXNClhxCjshpJSfdHEV2KTQGFe9pjJBcPuimyxbxH 4qCQP7RhAhMjSOfOpmReSWfxfK04nmQaAWLY99uOPjoxc5X9A4S1Bbkqnm4kzPY6B4V6 FBSuq6JHnRtrDVxU6o0iGBeHDZPMFLJ1qgr5ATwmx7y71Qi/lEj4IlsGfT1VTu5kzcMA Bvj4lb4gHHIkhV9/uNnnu0gaLFYkP2LxCuXnu9LrAcaiVY//CA+cKFTXmCXCePxEoWj3 38cKhPXbmWLZ3p6JKdeOZ1Idowb5sy5oTOpscTQRHMTdYSYlBj43e9Q3WMpggduOAQ9W xGjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Rg9mK1kJOMuRsY9leXe20xar5bspdwa24vDi2J1Vf1c=; b=dVFqef3MMVvgr5O9ivMdHHCRq8oL/8i08cO59MPJmtlonVPWiLHWB5I99UqX01th3c QTK+oy8k70mEH7VNdlnSUAEU9q98kH1eSNjJPTxyyg4a792ukzY8x3/qDO3PYHuF8ct/ MPhlsoITpTlG6mScdtPd7htgAFTHG+KntATBkTm0Pdv52rgZ+35hFs1SOuSQ+NFA14cz GdjkyJy84/V8ItOuIznkowLvFgqGufObJYH4j3mU+h9lNcQ6ezt6/y3aoOo7Spw6lXa/ nxG7Lcm4SVfKN5IkqsPhw2IEvm/1xSoKPdxecDLx3JY2YJbjalfCopIZpV0K+72TdM8O Gp6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ommez+kc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si294170plg.364.2019.03.19.16.42.21; Tue, 19 Mar 2019 16:42:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ommez+kc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727183AbfCSXlk (ORCPT + 99 others); Tue, 19 Mar 2019 19:41:40 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52076 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbfCSXlk (ORCPT ); Tue, 19 Mar 2019 19:41:40 -0400 Received: by mail-wm1-f68.google.com with SMTP id n19so18616363wmi.1 for ; Tue, 19 Mar 2019 16:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rg9mK1kJOMuRsY9leXe20xar5bspdwa24vDi2J1Vf1c=; b=Ommez+kcjBwgvEjMbDspXwG4H7XJE4ef2dHHdqNUYscI9IMD7gQeOtKFP2rM3QQQpa AlYohY0EWfsyYTT+hGYhY13kIwZij4NRvH/cc+2qNjD/lj3LzQ3FMrN29QdltxOrM511 Hta16ow/I6OzFfyOa/JWoZI8YnKbrUSXBoGx/dRwm97yNgQJMN7UVCbR92GPHaOI15vm uRGOoU6aMocp83Q2prRY/z9qsbktyE3O8HZMx95i9EvHOEe7F9VCoX5yWPyEJx873ouj It0LvVH/P7+Hh5JELKBRoj61oJYVMGhJDre2/08r7bH6QJR5SgUshFrrGIlTOfuQs20P 0ptQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rg9mK1kJOMuRsY9leXe20xar5bspdwa24vDi2J1Vf1c=; b=neUxbScF7STY6tQ35KCbpy/DhFCE0RjB1JJ0naWq1A7cnYDDk6K7XvvBNqG/Fi7+7K UkGG3/sar8pp33T722bNdTxXgf7q0zfL/XGZXkKK9dKVNui+Sad9ea86XvKiZrFHsRKr JRc95v37ovKqBwBxDcTcQKVkSa6UdiVFc9X6GqbG0ihWYCVwPv71/TtBbxIOc6muJWT5 LH/2gmt3GWhrUkqvffuwxOHLAHAXccZYAB5vOysSL0TgaMznnpJO5dwr+FB9I+0KjCHX hP4El4b0h2WSsX4VQgcPzRUfQIeJGlXptr3u2eGsCFBZ7CdfOh0LBQCyrVDmoCfGDD/7 cCvw== X-Gm-Message-State: APjAAAWkOkU5+H+s/TWwhXCqafy8Mq/t05gU49AZjREIFq/udLMaqGbi iMFSYDMMwe85n8lF5kW8WkquDOpJhveMsx1fuS4ZfQ== X-Received: by 2002:a7b:cb8e:: with SMTP id m14mr5279503wmi.64.1553038898217; Tue, 19 Mar 2019 16:41:38 -0700 (PDT) MIME-Version: 1.0 References: <1553037915-85931-1-git-send-email-fei.yang@intel.com> In-Reply-To: <1553037915-85931-1-git-send-email-fei.yang@intel.com> From: John Stultz Date: Tue, 19 Mar 2019 16:41:24 -0700 Message-ID: Subject: Re: [PATCH] usb: gadget: f_fs: don't free buffer prematurely To: fei.yang@intel.com Cc: Felipe Balbi , Greg KH , Jerry Zhang , andrzej.p@collabora.com, Vincent Pelletier , jingx.shen@intel.com, Linux USB List , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 19, 2019 at 4:25 PM wrote: > > From: Fei Yang > > The following kernel panic happens due to the io_data buffer gets deallocated > before the async io is completed. Add a check for the case where io_data buffer > should be deallocated by ffs_user_copy_worker. Yay! Perfect! I was up late last night chasing this crash, but couldn't de-thread what the problem was. So very happy to see this patch! I'll test it here shortly! thanks -john