From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EBB4C43603 for ; Sun, 15 Dec 2019 18:40:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E965C24679 for ; Sun, 15 Dec 2019 18:40:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576435208; bh=/U+b1fJIxF7ytZ1OAsOjHaaTSNPfagyofdfgamhxPQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=B4iFBHgBvSnZWE+pIIdZD4fRe6kXvMJuYXtMmPP9TvxgYSwt0ds5Lr40npBBOUSga ZyBTzXnTU5QbgyF19weClaanYSr71zRpqPifxm/KshH99ngbNONoycCuD1X9/VtYMt SeRlpQ3XXtZkjRhRlD3VQunDitWWLE7RnKtS+d8M= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726422AbfLOSkH (ORCPT ); Sun, 15 Dec 2019 13:40:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:55994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbfLOSkH (ORCPT ); Sun, 15 Dec 2019 13:40:07 -0500 Received: from localhost (unknown [73.61.17.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66C0B206D7; Sun, 15 Dec 2019 18:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576435206; bh=/U+b1fJIxF7ytZ1OAsOjHaaTSNPfagyofdfgamhxPQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gmmP6XSyTybQQqPENUMIsshHuGIYEQeWYDLpy5lPaN/tBvLKeJ5u+KPfXY7NHt7HW DRAvifkecmYje8cWpfygGVWQbw8VAtEbwKJg/6D9DZdBqVw82DimwHo4J31oknHfwK LIaA2HB4jAvfRhBTlsWHaZsThInyaNozOSQeWQaA= Date: Sun, 15 Dec 2019 13:40:05 -0500 From: Sasha Levin To: gregkh@linuxfoundation.org Cc: wenyang@linux.alibaba.com, heikki.krogerus@linux.intel.com, stable@vger.kernel.org Subject: Re: FAILED: patch "[PATCH] usb: typec: fix use after free in typec_register_port()" failed to apply to 4.19-stable tree Message-ID: <20191215184005.GN18043@sasha-vm> References: <157640796159177@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <157640796159177@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Sun, Dec 15, 2019 at 12:06:01PM +0100, gregkh@linuxfoundation.org wrote: > >The patch below does not apply to the 4.19-stable tree. >If someone wants it applied there, or to any other stable or longterm >tree, then please email the backport, including the original git commit >id to . > >thanks, > >greg k-h > >------------------ original commit in Linus's tree ------------------ > >>From 5c388abefda0d92355714010c0199055c57ab6c7 Mon Sep 17 00:00:00 2001 >From: Wen Yang >Date: Tue, 26 Nov 2019 22:04:52 +0800 >Subject: [PATCH] usb: typec: fix use after free in typec_register_port() >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >We can't use "port->sw" and/or "port->mux" after it has been freed. > >Fixes: 23481121c81d ("usb: typec: class: Don't use port parent for getting mux handles") >Signed-off-by: Wen Yang >Cc: stable >Cc: linux-usb@vger.kernel.org >Cc: linux-kernel@vger.kernel.org >Acked-by: Heikki Krogerus  >Link: https://lore.kernel.org/r/20191126140452.14048-1-wenyang@linux.alibaba.com >Signed-off-by: Greg Kroah-Hartman Fixed up context and queued up for 4.19. -- Thanks, Sasha