Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp525865pxy; Wed, 21 Apr 2021 08:31:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/Uz3skd301FHks7Q5jyvJ02/V/wobZoR6hoIYyeL/yIaFM3d7JeGzRbhDlZ0IFW2tHlND X-Received: by 2002:a17:906:3e89:: with SMTP id a9mr32282920ejj.405.1619019062395; Wed, 21 Apr 2021 08:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619019062; cv=none; d=google.com; s=arc-20160816; b=sbIZ47nWc2Gx5JI/auDs0OEuOwrKTc21j1aFNH/FztsMCaxdv/ORt1RP+ZMwMDZX8C jej4DkxwrCy7xwRUNJ3SnRUBLaxruTXrAvp5PPrWHoEuvw988751xZdX6nCWKBQy3Pos msCoV/saY9poJTt22e+wtsYy9EFiacq58uW3aSCQ2W+qhfOx9W5V1yMk0wJ/NGj9Zm2T cEzC50uR3QiifoQqOE26kMIvkJj0GQ93+gYJZlRkzngFFgoyzQZdnmRpZ6VdIgIoApyT HH43AMwA4gLQN/B1l8DAUzxoY7wXuj6dc5I0KHXi2lRfijU+Pf81iaxLTH3H7tUAyugv 4N1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Utz3MyEhj/oq0iMJ7XeawlitA4+PjnorfLkh52aRSRk=; b=DGfqli/re9H2/O27yV9xdhkLy1S2WvYPJALqCbWv+ynMTa5Aix7+MHZivvhXLVAVyh 1c6K0XAkpYjYnyd02hDbCPTz577fQC4V0Bw2vdYEVjxtN52GFHbpwkxxHoPIDYrUx4HI RwNBNH49vKX4dI7AllfIHJ/K1X1+O2Nk04BwCW5LVMmoIapkXsTIzNgcFplPvCAJSG58 /ZyHvn2/1+DS6PGEeClpgdTfdJQkb4rVEcDOaZnlPJVm81vXwcDypdRkQKqWesLNsFCa BP4loLI3D9zfg3tg40DsuEBDAvQzeg/NfdWSVZjUdMRb/v4gCuGj0csbFSfhrNmXU2zO ilqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="PYL/IvRL"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt5si2121202ejb.50.2021.04.21.08.30.39; Wed, 21 Apr 2021 08:31:02 -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=@linuxfoundation.org header.s=korg header.b="PYL/IvRL"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238336AbhDUNGe (ORCPT + 99 others); Wed, 21 Apr 2021 09:06:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:43838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234340AbhDUNFR (ORCPT ); Wed, 21 Apr 2021 09:05:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F06F86144C; Wed, 21 Apr 2021 13:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010283; bh=Djgxgz4Yq5aee3tYO2USWvW75GrNTN0DXteofV7ehlM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PYL/IvRL6FDVNX/snG1keQqDtl62hSZ16hcc4Wagp4Mry2UpdpqyJixIoQpHXSZK3 4m/HN6qa85Oxt4RjVwdMvbwsdk5sloEsjrX+Kg6izXGmYN+OqVocLCljrAI44hqTjT p8tpPsJy/4bOX+zZqPLzQVEIazOM+9MQDony2lnk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Wenwen Wang , Takashi Iwai Subject: [PATCH 080/190] Revert "ALSA: usx2y: fix a double free bug" Date: Wed, 21 Apr 2021 14:59:15 +0200 Message-Id: <20210421130105.1226686-81-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421130105.1226686-1-gregkh@linuxfoundation.org> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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