Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3209557lqp; Tue, 26 Mar 2024 02:51:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5uc+mnAR1KD4kbkF/ikucQRqM4g9pUZRp1cTU2arsd/ou6BFi/AY6Ad+lSie5pugntMjKqRzpFUW/TuQndl9V3BInBCe+Qae5QEVKyQ== X-Google-Smtp-Source: AGHT+IEp3VAPSVnaBpAP0NmzPN++6KjqkEcmyBhITk6y904PpMnEx/OMXbUnyXHL0ruDD8/l1ww+ X-Received: by 2002:a05:6a00:1252:b0:6ea:acda:1f6f with SMTP id u18-20020a056a00125200b006eaacda1f6fmr1337720pfi.14.1711446688817; Tue, 26 Mar 2024 02:51:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711446688; cv=pass; d=google.com; s=arc-20160816; b=FuA/RzNFUhEpt4YTfo3sy7m3B306ermAJqiVbnSoYVVTgPGjk/2TIF66sWUjbFlyXI NN86J7m93g+QPupXyj7hAo/VQE5zlEr/r0k0/JarKpfSor6KY6WOGZmv2Yc+rQm38djj F4L65CWlOmmZXjFTzkiQEOA5uOiqjjLFxE0PcvdDdcSehkOR0JOYpTAXVMk5jO/QSGyk /K30xqwM+k4hxC/JkN+rBkCQp1XayoreoXkm0k/oXelm78u7dUKghIB+25Wj80oPHmp9 kKMuIfKtQ5G98jDkoUhv561QmZ5UvNW2fGf0MlKlgT+aogRCdS0dJMvZQD8htF1qBi/5 10NQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:content-transfer-encoding:references:in-reply-to:subject :cc:to:from:date; bh=5sQa21jwBonW/6+Jw+ZFcVI96cxtybQHQgUhbVSaYMk=; fh=QcFoz6ZtJ6k6m1HIhatKCfHZdxvy2xgbHAwKXadCmg4=; b=If7eqy6XP0j8HzwS3KFSR2Dn9chVTXWn4h2o5R6//7LESsjUfxWkXUZrrQusbrIloc E0y/OdYSCcHtNuRUMkoO/StR9vyo/CMGLMzHipRrIgztVJzsuxE4AvDwvhFupLeLqOYR 4LLz3GS5ovVphF3Fqw/z+dNYLUGPQcJnT2Be2XB2kFXghGFhGWNtrlOJC7ADuk9y9s8a rK8KDzf5Epf0fPrY104FRlNuqzQ2vsfQEP+FrvNa/HRvd7moWrhSCt+Iz8mD+lv+x9cO 3V0jigbI5nWflGUIK9LI4d/dKuHhqbDgYH/XhKTJolB5Hor9Yz6d5zptEDUbyEO+A8RA 8sgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=zju.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-118713-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118713-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y129-20020a636487000000b005d8bce9b04dsi9360857pgb.681.2024.03.26.02.51.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:51:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118713-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=zju.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-118713-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118713-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C4CA329DA86 for ; Tue, 26 Mar 2024 09:51:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D9374F215; Tue, 26 Mar 2024 09:51:01 +0000 (UTC) Received: from zg8tmja2lje4os43os4xodqa.icoremail.net (zg8tmja2lje4os43os4xodqa.icoremail.net [206.189.79.184]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B25241B960; Tue, 26 Mar 2024 09:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=206.189.79.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711446660; cv=none; b=PHy1N55nkmZw+a6kKzh7O5IL1YtjvX+UeluhQgZYyWwZIWYDcIZUc4Em896opPJc8RJ15ZJY6gTtaZ1VEec5zUQw5mFHKXaP80e4uiTNSmUsuOrJC8582V6+dnVWsZkw97DbMoqryI7ckU1vfiICZZW2OF4bBrbrj6A2Axae1Qk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711446660; c=relaxed/simple; bh=5sQa21jwBonW/6+Jw+ZFcVI96cxtybQHQgUhbVSaYMk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Content-Type: MIME-Version:Message-ID; b=qyWY2H0SEUAvDJ+mWAqCzwofwBZk1+AOo0HEd+6MlJzYHjj7+ZZu4r7PFAKs8q6jZ5IZvaBG+WnkTuACtKhQF3zCHApjM7KtiATaBRUeQeX5/zCTcbTqhRaJJaUxqPiMvBUEmF/XtA706Pf+ZgQrCrWSSe3EOLiJ3HF8ZQEJvIA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zju.edu.cn; spf=pass smtp.mailfrom=zju.edu.cn; arc=none smtp.client-ip=206.189.79.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zju.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zju.edu.cn Received: from duoming$zju.edu.cn ( [218.12.18.200] ) by ajax-webmail-mail-app3 (Coremail) ; Tue, 26 Mar 2024 17:50:40 +0800 (GMT+08:00) Date: Tue, 26 Mar 2024 17:50:40 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: duoming@zju.edu.cn To: "Takashi Iwai" Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, tiwai@suse.com, perex@perex.cz Subject: Re: [PATCH] ALSA: sh: aica: reorder cleanup operations to avoid UAF bug X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.4-cmXT5 build 20231205(37e20f0e) Copyright (c) 2002-2024 www.mailtech.cn zju.edu.cn In-Reply-To: <87zfulv1qh.wl-tiwai@suse.de> References: <20240325033946.47052-1-duoming@zju.edu.cn> <871q7yybeb.wl-tiwai@suse.de> <43e102f3.61dc.18e7601a2f2.Coremail.duoming@zju.edu.cn> <874jcuxtf9.wl-tiwai@suse.de> <75af0c57.6e39.18e796e478f.Coremail.duoming@zju.edu.cn> <875xx9wjv6.wl-tiwai@suse.de> <3c71609d.7271.18e79cbb047.Coremail.duoming@zju.edu.cn> <87zfulv1qh.wl-tiwai@suse.de> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <864a35d.75f2.18e7a2b487c.Coremail.duoming@zju.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID:cC_KCgAHC8VwmgJmXd0rAQ--.24165W X-CM-SenderInfo: qssqjiasttq6lmxovvfxof0/1tbiAwIMAWYBgRkQowBBsB X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWDJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= T24gVHVlL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zdGNhcmQtPnRpbWVyKTsKPiA+ID4gCj4gPiA+IEknZCBsZWF2 ZSB0aGlzIHVuY2hhbmdlZC4gIFRoZSBVQUYgaXRzZWxmIGlzIGNvdmVyZWQgYnkgdGhlIHN0cmVh bQo+ID4gPiBzdGF0ZSBjaGVjay4gIEFuZCwgaWYgYW55LCB3ZSBjYW4gY2hhbmdlIG1vcmUgcHJv cGVybHk6Cj4gPiAKPiA+IEkgdGhpbmsgaWYgd2UgbGVhdmUgdGhlIGNsZWFudXAgb3BlcmF0aW9u cyB1bmNoYW5nZWQsIHRoZSBVQUYgY291bGQgCj4gPiBzdGlsbCBoYXBwZW4uIFRoZSBzY2VuYXJp byBpcyBzaG93biBiZWxvdzoKPiA+IAo+ID4gICAgICAgKFRocmVhZCAxKSAgICAgICAgICAgICAg ICAgfCAgICAgIChUaHJlYWQgMikKPiA+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IHwgIHJ1bl9zcHVfZG1hKCkgLy93b3JrZXIKPiA+ICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIHwgICAgaWYgKHNuZF9wY21fcnVubmluZyhkcmVhbWNhc3RjYXJkLT5zdWJzdHJlYW0p KQo+ID4gc25kX2FpY2FwY21fcGNtX2Nsb3NlKCkgICAgICAgICAgfAo+ID4gIC4uLiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgfCAgCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICB8ICAgIG1vZF90aW1lcigpCj4gPiAgIGZsdXNoX3dvcmsoKSAgICAgICAgICAgICAgICAg ICB8Cj4gPiAgIGRlbF90aW1lcigpICAgICAgICAgICAgICAgICAgICB8ICBhaWNhX3BlcmlvZF9l bGFwc2VkKCkgLy90aW1lcgo+ID4gICBrZnJlZShkcmVhbWNhc3RjYXJkLT5jaGFubmVsKSAgfCAg ICBzY2hlZHVsZV93b3JrKCkKPiA+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwg I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