Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp771179lqb; Fri, 15 Mar 2024 06:14:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNyp7MgvLsJGoFdWVOAhrcRtvFbN9kA4IjU4zK2+ejITYKtxX69lQU96gQxuZbsTQYV1gPscvyOOPyYEC/CjQtM5CfT+N4nC9vWzoH/w== X-Google-Smtp-Source: AGHT+IFm48py4MmSdrEPKKZXjYt/hhjVx04Do0r5k7sZpG1YXivNG390KLawspqH3m1bvw5O1oBt X-Received: by 2002:a2e:97d0:0:b0:2d3:f81b:7f9 with SMTP id m16-20020a2e97d0000000b002d3f81b07f9mr2229367ljj.21.1710508461047; Fri, 15 Mar 2024 06:14:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710508461; cv=pass; d=google.com; s=arc-20160816; b=ulDZ0jfpMew68CoHoUSkrHqbEybwCKJLkSD1jv+V/jW+Aux1dntV6d2kRIu5GSjM0z 1Xyk+UExzbVnJu/gsWJakRqUK9Smpzi1fKQXSsm5x2Q4VtwBSpVw9nGiUM+/4s2eCVDI ox/sSRlKW/k98/9llMOCL32Ixr/CgEOoa/GAvvlwIbUPQflc8jQdJHMCHWx7ZGFJ7RYC YW+eeZ21wfDq2VRH/KmuLkcAxPnxTfSoeLDe6E7a/2fZ+vNK32etdbPE8TnMhbUAEuO2 hhduDLRtsqBBVipfV7fFg3Wdpgx5muQk7ELiGYJWhW+Bbxe3Ogr+cvfNqgT1Ztedeaws CeSw== 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=gV8T8ZGGk4ZPLw9CG5bbSWg8oUB7hw78mTJKf9Ma5ns=; fh=xVUZvOLjzNDpTPHdcDi9sSMokJL7XuFiMoTSPn3Y5QA=; b=gXaCAtjekjoCRssyeH8ejlVGclcsJSwI2dioNqfGA2glAVmb4eusGoOQs1Xn2BIrU5 xRsWCsPoqVEsT3x9dCW67xS1pbh/u2Sw/T+kmbFMCaVhBIjq/dnpT9Z6z1OaEc5/m7qk uKdQpzuemJrntOyol0joN7tgXGB3I8vlPANoke9gYJqyTrZoEFQZOgrlcut1vauv56SP uE+1NgZR/R53qkwYXMxP30pXM53z9dIWKVlizCvGOMGnu4hYJUxukNh1Xm5Dbv9KjNVA tcFvteUk/gjo+GeGBqdiuX5iA04xFCmIWgf9l8Qhj6dUYlXTERXcNIgYV4EORof6kAqL ZTTA==; 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-104442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104442-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l12-20020a1709065a8c00b00a41308b6bdasi1704492ejq.260.2024.03.15.06.14.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 06:14:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104442-linux.lists.archive=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=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-104442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104442-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 C158A1F21D55 for ; Fri, 15 Mar 2024 13:14:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1659925775; Fri, 15 Mar 2024 13:14:15 +0000 (UTC) Received: from mail115-80.sinamail.sina.com.cn (mail115-80.sinamail.sina.com.cn [218.30.115.80]) (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 8AC4A1BF3C for ; Fri, 15 Mar 2024 13:14:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.80 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710508454; cv=none; b=boPG17vky92+OHi9d8Km+L6P2gj6UoaqydN17851Ma0Omy4845xbHuLkw6ORjtwz8k/m/Sp2SnOVXEuHzBfoW/4gVMxklXH3z55Uqc2O7O5IH2my3+djb0ZiJ04dcUfZdrntHyB2pNbnYCt5S3CUGSvTYraYSfHNHoWyCWfwBG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710508454; c=relaxed/simple; bh=IYJsJVb1B+OkPrJEvMcFveSOBi36A+2UgMgMymfMJdo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=V4ZR1Zm0Hj9XYH86a2EXVa+Gl9R2UhJJMwgVzOD4xp7NXWwlZ1h4k/waDTKtgOSXL3kL/WQeqByWXyZ9NHsx/3iXB5TXYjk6FyN/XXDgQmjb6bEI6WhrjNd5aFashiIZHPqpNly+BjNOiTHeANmwAO68RXLsxM/6UNC2Lw1hDfM= 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.80 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)([116.24.10.95]) by sina.com (10.75.12.45) with ESMTP id 65F44972000022CB; Fri, 15 Mar 2024 21:13:26 +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: 54374831457846 X-SMAIL-UIID: 6B082FB0F3C74AE29C4570FF4A4DB8D3-20240315-211326-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [sound?] possible deadlock in snd_pcm_period_elapsed (4) Date: Fri, 15 Mar 2024 21:13:14 +0800 Message-Id: <20240315131314.2471-1-hdanton@sina.com> In-Reply-To: <0000000000002a81490613b2affb@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 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- 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)) { --