Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp90759ybh; Fri, 17 Jul 2020 20:01:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmVc3GpPxb/no//qarWyTMc6WvkdB7HfX51isoQE9KSHR19x6t65KQBbEUY1Nty6xFDPtD X-Received: by 2002:a17:906:a449:: with SMTP id cb9mr11029861ejb.115.1595041315296; Fri, 17 Jul 2020 20:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595041315; cv=none; d=google.com; s=arc-20160816; b=NRjZ9lsGjIl464l4zETlBAg9Q91LGUGT3+FfUz7niKmCKfoBVqs3mROacrRtb1694d rmnCMNTXBPTy25yJCbiCj7RBbsomRyKUuafullvQrRvoi9ztGcbWQXonDkVxKqFRAOU6 siFkSvLQNIDPYP5G8O74ruBbak9fAu5jJsNtXDX1/XXcpyniWl6rsZyelnnK7TWEfkF6 /z6bl84/qbMmrqhUdBPlzNv8SEV58hI4XBxkszYYHRDfd2F/MkKk5TgQEzaHrp4YTAmu 3FrHX6OtyS49XBtIqkcCH0L7w+6XzVUqyKkcCt6YjX5IEt0yZ4jRhSUVo/YpTeV+hihb n7xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=6gkKHN2VVvizCwFgJMmDy6tc+BUb4z5fDOqpe6ABGnY=; b=YpwO/B27bSe9bHFzTAtkw3Q5kfxFLHi4gUWV6VW+DQW0T9kkTg2GiNuiCBDxbYjBWl kfdgfnQGVl+1mkfZNMZwgdzavLGhX2mnXbUVwKnRAcY0yawDrFz9ftBX7EvZEcfCkE8H v8NRHlrKzXzjn8dmkM6DVT+GwXWer7KR2CqVzszSriah5wPH/7Zg+7vWPdSIvNaoOQcp KFY1L3uN84zLke+rDdF48uPh1mQ5BmR+swUuDZ6hMbUTTQ0uTGcdhCtQjDZ4UgAvO+2x r6UuTiwM8ThL2OZqCsVJKh24UPziTeh3YxOXmxWrNrC6n0EDLgTiq/R7nTgoj3HqvLCU nGIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rHSax3s5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si6266887eju.78.2020.07.17.20.01.32; Fri, 17 Jul 2020 20:01:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rHSax3s5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728889AbgGRC64 (ORCPT + 99 others); Fri, 17 Jul 2020 22:58:56 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40875 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726262AbgGRC64 (ORCPT ); Fri, 17 Jul 2020 22:58:56 -0400 X-UUID: 9aebe2b8f4c84eddab7362cb0c116591-20200718 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=6gkKHN2VVvizCwFgJMmDy6tc+BUb4z5fDOqpe6ABGnY=; b=rHSax3s5IhGzQFxB5dxoiTLclQBbsrH+3cBki8T5WGt5sD5yXkT6LhHyHuOW2eeEJB9vUBx0BHj8GbQGQx7fG1yxgEAJXPljwoAo8k2o5of774lfHCT2rmz4eaTXYN+5D7kd08/p4EI2ktJUnW+YL5NCYlHidk5qL65R5OsZKdk=; X-UUID: 9aebe2b8f4c84eddab7362cb0c116591-20200718 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1493739415; Sat, 18 Jul 2020 10:58:54 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 18 Jul 2020 10:58:52 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 18 Jul 2020 10:58:52 +0800 Message-ID: <1595041133.23887.4.camel@mtkswgap22> Subject: Re: [PATCH v2] usb: gadget: configfs: Fix use-after-free issue with udc_name From: Macpaul Lin To: , , , CC: Greg Kroah-Hartman , Felipe Balbi , Matthias Brugger , Eddie Hung , , Mediatek WSD Upstream , Macpaul Lin Date: Sat, 18 Jul 2020 10:58:53 +0800 In-Reply-To: <1595040303-23046-1-git-send-email-macpaul.lin@mediatek.com> References: <1594881666-8843-1-git-send-email-macpaul.lin@mediatek.com> <1595040303-23046-1-git-send-email-macpaul.lin@mediatek.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU2F0LCAyMDIwLTA3LTE4IGF0IDEwOjQ1ICswODAwLCBNYWNwYXVsIExpbiB3cm90ZToNCj4g RnJvbTogRWRkaWUgSHVuZyA8ZWRkaWUua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