Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp66696pxy; Wed, 21 Apr 2021 18:43:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH4lHpzUrg4QGbBw7b2BsJ8iz6QidnKZ82KWcUpeRdxcGXrpWR2vHwHPupPXapBS+MeYZi X-Received: by 2002:aa7:8512:0:b029:25a:b502:e1ad with SMTP id v18-20020aa785120000b029025ab502e1admr992733pfn.22.1619055817978; Wed, 21 Apr 2021 18:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619055817; cv=none; d=google.com; s=arc-20160816; b=Fm3GccR0LmdOXhQFtlhUymgeDN1FHfo99ns++XUMF+zTyQh3TRYMKI80lDbOeIsG2o jqyQ5ljbugWK3sRi9b4bHsOzS52LZckKu24tpKLoMbPWr73zXw+u4lLiJe7OtWFev68N 4HPKnuYX5RQtGdCpuSU5d9Q7PvDmaWBm2tRpL7UCaXOrdrzUelKaT9Cmm5mXMwHx8dc/ TQQMS/Korot8XpGsCwxAkRH2dXnE4X8ry8w0aQCVGB+FOrQ8zzcxWFNUimVI4J8q5Zmj ORCORkjOBesFH+8sU1UqloV0O0Alx8fCx/hhkO3ZaiL7KyGVQGxvAXLXlIRmO7DSVwoB bPOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=njqJUWFA3ImGe1lNgsEVjtRD9uJtY/f34iZUTskwg74=; b=iV7DXkYcjhJDoK/ssOpAglZ2rN5vIWgAAi56hP9vvcu3vzYRFjqgga6k/Ae8ZKoxcQ irZUuy08jnMyBgGD+KKV4Clml3w9x8ZG48TzMUbXvfG2JS5ur3wxG7iNII0oovcmY1pX iUWEEn1bsLUoRF7T80/SPlW7cnq/liOiqHLi7jtXNAJjgoOAcXPGnm7g3JRDMu9qNpWP dvYJyzpFyk1fPpRjvIiMYIGQP31Q1GJSBVUMoevj4rdToucu9rhHsG1JeiuBnqKXqoGu 1N1hEMkO0L5aDnbEzswh96nCLcCyN87KdaBYBIkmjH6kSVZC+298aic/KT6NjA887FLG L3oA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 77si1613856pge.14.2021.04.21.18.43.26; Wed, 21 Apr 2021 18:43:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238200AbhDUQOC (ORCPT + 99 others); Wed, 21 Apr 2021 12:14:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:53634 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235591AbhDUQOB (ORCPT ); Wed, 21 Apr 2021 12:14:01 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 7F285B50E; Wed, 21 Apr 2021 16:13:27 +0000 (UTC) Date: Wed, 21 Apr 2021 18:13:27 +0200 Message-ID: From: Takashi Iwai To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Wenwen Wang Subject: Re: [PATCH 080/190] Revert "ALSA: usx2y: fix a double free bug" In-Reply-To: <20210421130105.1226686-81-gregkh@linuxfoundation.org> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-81-gregkh@linuxfoundation.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Apr 2021 14:59:15 +0200, Greg Kroah-Hartman wrote: > > This reverts commit cbb88db76a1536e02e93e5bd37ebbfbb6c4043a9. > > Commits from @umn.edu addresses have been found to be submitted in "bad > faith" to try to test the kernel community's ability to review "known > malicious" changes. The result of these submissions can be found in a > paper published at the 42nd IEEE Symposium on Security and Privacy > entitled, "Open Source Insecurity: Stealthily Introducing > Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University > of Minnesota) and Kangjie Lu (University of Minnesota). > > Because of this, all submissions from this group must be reverted from > the kernel tree and will need to be re-reviewed again to determine if > they actually are a valid fix. Until that work is complete, remove this > change to ensure that no problems are being introduced into the > codebase. > > Cc: Wenwen Wang > Cc: Takashi Iwai > Signed-off-by: Greg Kroah-Hartman I examined the change again, and confirmed that this code change itself is correct, so it's not necessary to revert. OTOH, it's just a tip of iceberg in this driver, and maybe it's better to cover all in a better way. So it's fine to revert this, either. thanks, Takashi > --- > sound/usb/usx2y/usbusx2y.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/sound/usb/usx2y/usbusx2y.c b/sound/usb/usx2y/usbusx2y.c > index 3cd28d24f0a7..bb188245b0e2 100644 > --- a/sound/usb/usx2y/usbusx2y.c > +++ b/sound/usb/usx2y/usbusx2y.c > @@ -279,8 +279,10 @@ int usX2Y_In04_init(struct usX2Ydev *usX2Y) > if (! (usX2Y->In04urb = usb_alloc_urb(0, GFP_KERNEL))) > return -ENOMEM; > > - if (! (usX2Y->In04Buf = kmalloc(21, GFP_KERNEL))) > + if (! (usX2Y->In04Buf = kmalloc(21, GFP_KERNEL))) { > + usb_free_urb(usX2Y->In04urb); > return -ENOMEM; > + } > > init_waitqueue_head(&usX2Y->In04WaitQueue); > usb_fill_int_urb(usX2Y->In04urb, usX2Y->dev, usb_rcvintpipe(usX2Y->dev, 0x4), > -- > 2.31.1 >