Message ID | 20240304095542.4799-1-d.dulov@aladdin.ru |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-90363-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1319076dyc; Mon, 4 Mar 2024 01:57:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW60akNEIHwxTAb+xh1Ar2WUTqk/E+/LiWtKritmnBbSUxO5iPHYHn7zeW/pXnLsUlBid1V66IJ0cpLFajqfpLfwAQZvA== X-Google-Smtp-Source: AGHT+IH52Uw9bMxC3ArIFmtNDnSBDUd5hKZJEynmljtJfeuqOaUdESjPJtvIpfHkpzTsHoJSiB1k X-Received: by 2002:a17:906:37da:b0:a45:6bd0:9f53 with SMTP id o26-20020a17090637da00b00a456bd09f53mr698004ejc.36.1709546247151; Mon, 04 Mar 2024 01:57:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709546247; cv=pass; d=google.com; s=arc-20160816; b=0PsteGLEJHd5BgUUgO0PlO/djWTnFgzwlBnQo4ZM44+iO1i6p8j7HTB2yVesTf1RRt Yy0pf1CVywRKMnY0plF8uD1r18n4pABsvIkDOndP2wJwmnO/SyuXI+MTNn5yIRPC0nHz lQKtRdosUUp89Mmey3rQg13+lmr2R2LSWne+BqGdeiUdEckHgwuDT4aTVr85QKERjOk6 IrHoR3jSx6EH1nkU2NOXJDv6cA7GRSifZixhqhz7VR7j0fQn0/1xbVcQDEiqBy9mCh8v LmkN8HlnH/yXHtbg/MOkGAtwgSNvuObJwNIIXQkPXGrXvvrWTT98cculDfe45MiEAXEr 25VQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=V6biRr3fhF5Ft0FiKw2fc8izimZW8EJPR7YGP80eLwc=; fh=2NtlWJ5w2JrImoJ85OgFq1J8F+Mr/wmZMWpHvsXDtxE=; b=tBHhnrBAqcB0RtnT3abrp42RCT7UYP9Sq1u7LZl/fGu/y0FJUvGhLD9d/jvblHEFsf pB4gD0rnc1atUNHu9+7gPsD+3J7jQIXEFy8V3UN/VHqvUumD7uLZxm+9b3KaMO7Ja75R /psVk0IDn2mucCqtD2DzYWMqcc63QmiRWU3//T6H1FUGKf3kqsHhNHha47+S8QwOv8ag 2F3/rwRrTv+YsOQKC16rScWxN3a5RwGaZrikMpzbkfNuBnoBRps7VFrKInackcBqCxHt hfGL9KfyTmOSoSNSRvGh+XSVgZ2LgHr+T9yMHvrqc6I4OVHZmks/q1v8mIUPoic4Zd1t Abjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aladdin.ru dmarc=pass fromdomain=aladdin.ru); spf=pass (google.com: domain of linux-kernel+bounces-90363-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90363-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aladdin.ru Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n8-20020a1709067b4800b00a438fc5c03esi3751853ejo.970.2024.03.04.01.57.26 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:57:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90363-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=aladdin.ru dmarc=pass fromdomain=aladdin.ru); spf=pass (google.com: domain of linux-kernel+bounces-90363-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90363-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aladdin.ru 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 15A3D1F23A8B for <ouuuleilei@gmail.com>; Mon, 4 Mar 2024 09:56:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D21C924B2B; Mon, 4 Mar 2024 09:56:11 +0000 (UTC) Received: from mail-out.aladdin-rd.ru (mail-out.aladdin-rd.ru [91.199.251.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1303222625; Mon, 4 Mar 2024 09:55:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.199.251.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709546170; cv=none; b=eyvnlA8xdNLhTQpFpRCYtk6g/eD5HOgM75tOSC4xnU/o1lzpQtRbBtlt6wULidP0B1V4y/ggh12HX/paMuq1ucMW3GCRol1rxqHVkMDyZki2OrJSo/o38q/UXTLnPbWw69iix5UNnM7PMAIAF9cOobs4PSB+FQuEZBQ2Lo1gD0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709546170; c=relaxed/simple; bh=ZLWxTNvadb4hyjem5uvWUCn8AIITYg1bzbW2sx4kDIU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=VmxLrt77IMoeUY2qkIz3+7oisEL+K31WkhvM2pamcxdR9XRYEus5nsg/YRBrZ+Iz12S4ubuR90bTsrlBB7q/ZKg6W74iiEKBPuOf516eJhqfnMuqbc1xTs7oO47EOvhQWP1G1AJXHCSmaB9s9T8Hk+FW7LpPLgTJMI6n2WgMShA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aladdin.ru; spf=pass smtp.mailfrom=aladdin.ru; arc=none smtp.client-ip=91.199.251.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aladdin.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aladdin.ru From: Daniil Dulov <d.dulov@aladdin.ru> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, <stable@vger.kernel.org> CC: Daniil Dulov <d.dulov@aladdin.ru>, Vinod Koul <vkoul@kernel.org>, Bard Liao <yung-chuan.liao@linux.intel.com>, Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>, Sanyog Kale <sanyog.r.kale@intel.com>, <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>, <lvc-project@linuxtesting.org> Subject: [PATCH 5.10/5.15/6.1 0/1] soundwire: stream: use consistent pattern for freeing buffers Date: Mon, 4 Mar 2024 12:55:41 +0300 Message-ID: <20240304095542.4799-1-d.dulov@aladdin.ru> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EXCH-2016-03.aladdin.ru (192.168.1.103) To EXCH-2016-01.aladdin.ru (192.168.1.101) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792589165380755114 X-GMAIL-MSGID: 1792589165380755114 |
Series |
soundwire: stream: use consistent pattern for freeing buffers
|
|
Message
Daniil Dulov
March 4, 2024, 9:55 a.m. UTC
Svacer reports NULL-pointer dereference and double free issues in do_bank_switch() in case sdw_ml_sync_bank_switch() returns an error not on the first iteration of the list_for_each_entry() loop. These problems are present in 5.10, 5.15 and 6.1 stable releases. These problems have been fixed by the following upstream patch that can be cleanly applied to 5.10, 5.15 and 6.1 branches.