Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp830360lqp; Sun, 14 Apr 2024 01:13:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUh8yFROTu+yo4SuHbvn8fW5goBbCZEkOrHrfdr7jHhWkvlyq4r1zIesyVD1X8SO+A37ReLgibodoO+JIfZlto8TIT+DX4DldzuGzr3cg== X-Google-Smtp-Source: AGHT+IFU5KJs7ibZvqKOo22K+nWKcjxR6Wslk/gzOTNTzY7nNeZ2v3qsEwdHdGpHwfFbrjiLoS50 X-Received: by 2002:a17:907:6d18:b0:a52:3fc3:f00c with SMTP id sa24-20020a1709076d1800b00a523fc3f00cmr3361042ejc.10.1713082425794; Sun, 14 Apr 2024 01:13:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713082425; cv=pass; d=google.com; s=arc-20160816; b=l706axir/QHGgx+iOiLzCMvR5IsnpBnVmWqseJhwvqiMR99qUY0gHMuDvn2qrKASLX 9RSxvWPzqjtwhI4AhbIyKf3E7Z14nIpykmMD4i3rYtJJq2CaRP56bZgWxO0UTlnb/bfM kypHSKMxIZcpOyWbNRCiD3OOTHS3XWYLCNEZBTkfgGKd/uS9Hg7xNy2qXrQ4q3+325kF F/D7qY8rRWqaiebnA8VXumYDHTnzigr3+hE+crLBw8g8nYuPOzfxAe996o47Qcy2gn1K gRdmaf6lH+m/lm1KBRGoeJIKDjNB8o7cvl8nPk5nvoWunH+KEsn3QCAIyj2XI9YH7Ns5 jK+w== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=0YW9xOexG2rtDBVfWSh0jvs70vpBpfayD9PnI0rggaA=; fh=ybXGO2Uj1Cc7ENTkn3LOJYqccDP4a3prN0I/F/otvt4=; b=NFxyEEthzA1KYT69kaAQ4gRI73CdOp+X38FEUqnIB+ywn5VwOLvPdfyVyhtzJKnMpH ZLHAeHsej0Cs5G69QUgjkrltvMVRuE5RonVYVJMMlWT7x677RnDtrOEUgtao5BEjmafg XvmfFGSC2+yEiJqq/LsCA6fa6XFY1kQYKkDdNXLD1pH2+qkyL2byr9KE7ulxPQmWdhH6 Eb+7noheNFAYA/z3dY3lIweVHFEGJaMM02rL1isEspK2VBVUgDp/KYSXJu0x0Q7uRFbs gmV/hfWSeEW9j7QN4tH8772bZSVKeyQSlIWsGvZWeuiZfTeS6yy/Ru/A6WCszPGIfxtf o1eA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-144037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144037-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ht15-20020a170907608f00b00a523632043asi2451335ejc.486.2024.04.14.01.13.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 01:13:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-144037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144037-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 87B9C1F21C13 for ; Sun, 14 Apr 2024 08:13:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 643D622083; Sun, 14 Apr 2024 08:13:38 +0000 (UTC) Received: from mail115-76.sinamail.sina.com.cn (mail115-76.sinamail.sina.com.cn [218.30.115.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8206C15E9B for ; Sun, 14 Apr 2024 08:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713082417; cv=none; b=faU9ys0jUfIZZwBttIp/rXmQ23s+u12T/1IT1b1ZoiX9G4iXBKtqu3mbasgT9+zEKK0OZUajfKY7sGoi90Jh6s+vMAZPtSkxJhYB5czJc+4+tHCQtOLBdJWAcRCYBUg+xDP2GwqQi4S32JaqRvF/ZMItkp2lIdzzPvICV1legeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713082417; c=relaxed/simple; bh=F3xf/pt6R7sYZi9bhyJuL7dyI8Pd/S5TgPXnODBOn2s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=raNu8wHAC85f2zvKvbHDWJRr100+EsJikGQ5zT+8RgicNc6Hi0SpyVFsOE8HqCK8LJTBGO8gtKpk1Cry/YWQRYwaLIWTbs6oi4NIbYR0il+Uz6niBBtP/R3jeZuvCirmb4y4J/bs2mjeFDO3UTy3EgdMawMnH351O8djZU/60l8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.118.67.190]) by sina.com (10.75.12.45) with ESMTP id 661B902100007286; Sun, 14 Apr 2024 16:13:23 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 82475831457606 X-SMAIL-UIID: B99C2C28A6B146038C15D9BC2B83E70C-20240414-161323-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tiwai@suse.com Subject: Re: [syzbot] [sound?] possible deadlock in _snd_pcm_stream_lock_irqsave (5) Date: Sun, 14 Apr 2024 16:13:17 +0800 Message-Id: <20240414081317.2137-1-hdanton@sina.com> In-Reply-To: <0000000000000457ff0616069d07@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Sat, 13 Apr 2024 21:05:20 -0700 > syzbot found the following issue on: > > HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10431e13180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fe46a7dd189e --- x/sound/core/timer.c +++ y/sound/core/timer.c @@ -409,8 +409,9 @@ static void snd_timer_close_locked(struc struct snd_timer *timer = timeri->timer; if (timer) { - guard(spinlock)(&timer->lock); + spin_lock_irq(&timer->lock); timeri->flags |= SNDRV_TIMER_IFLG_DEAD; + spin_unlock_irq(&timer->lock); } if (!list_empty(&timeri->open_list)) { --