Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1837993rbb; Tue, 27 Feb 2024 02:53:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUGLrs6wyKv6Kqs5VUBLEh4Cxt20H3gjCmsBIo/xqwjpb9e58RipF3Ow7MS1dQR18qLxfSpdTf5NF1nJZXi/+yqJqeAHcsNkmtBFj6K9A== X-Google-Smtp-Source: AGHT+IEb80loX68It5NiHAYeQ5M402p7fWHK7cDqGPx+MWJRYPw6t2SJpM1IO9AB3+tnXdee56ZO X-Received: by 2002:a17:906:bc8c:b0:a3f:50ad:fd71 with SMTP id lv12-20020a170906bc8c00b00a3f50adfd71mr6647573ejb.19.1709031218621; Tue, 27 Feb 2024 02:53:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709031218; cv=pass; d=google.com; s=arc-20160816; b=Lx94cUoyroi5cAjLW5HtD9kK4wMbquO3ypoHhWJYiremBZ/MbxtfdXJZmI5vNnNAJ3 9Xa5ah0tHfexb/aYeKaQHMe4YzSPDgJJYwDix8+NntQcvnmw9lcZPFTGUZ/pfebR9rOz 8JP++sLsBIV82UjZwzCj8rmeBvIN7HqgzzlQwh6w1XbrBuKfDY2CEPpMHIzPYRNgf2vu WonmvY/QD5q5RqUo3UlDypifg6TFOYBq9c9lrIczFXPuSGWLxk1dTEtCkmx3mjcIr6Fa fx5Cztd9XWohQFe+G7hAe2wlUErJ7Gc6iy0RoN2mHDLqi9z6YXo6eGOKw57/c2yOw2om 8KyQ== 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=qGvpUwB+lxBj4afFC+tSeaJUdemWlyNXCs2pXwtbuIo=; fh=5UbdWS+gmusdBLuKPwu0YA0X4BGecsId58RPrebwGqo=; b=HtsRiERZt9hozc5PXsWTNhIoZ2XLUz7ccOiQLAfj8gKp3YeqexSkOctvbcWGh0Nli8 ko/Vu1dpO1v8kydNwoTaCay4OHLQPjHZrAhVI/Dv52eYzPNZY+lR0KfG1mbRsEHaxPXQ friENj1AaPRywXW2Xz50MihNoBIaTCNvmKla2nV50b+nIRGtvjS9S5i5w2VhC7SqWs5S IprYQkbkq4dh/h2E7SEb8YjfNiehSP5MgWmrwvLfvYu0S7Ex6ON0MnmA7gWVOzZSBVUq aqm3SrStTXCNEBCiW1DuqGd2QwUxcjX0OctoQi3oXPUSVIicwnH7z1HDsJ5V+eNmHcBJ LLiQ==; 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-83071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83071-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 u9-20020a17090617c900b00a42fbd1bc91si636446eje.378.2024.02.27.02.53.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 02:53:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83071-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-83071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83071-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 494511F233DC for ; Tue, 27 Feb 2024 10:53:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CF801386CE; Tue, 27 Feb 2024 10:53:27 +0000 (UTC) Received: from mail114-241.sinamail.sina.com.cn (mail114-241.sinamail.sina.com.cn [218.30.114.241]) (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 B11951386AE for ; Tue, 27 Feb 2024 10:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.114.241 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709031206; cv=none; b=X1/DtUpjjIiTweBqxZQv3Cf9ASEfbYWJzI9JFJOCqcJAX2fKuhiiRywgpmZRVTUspWnSH3nhOXC53IrU4bsWcSmW3GRfcqUYVcnwGCkOzRD7RCdO2wnu8BIk4m5DvzM4cUvNWvJvGBJ/BrL2RY0MBRwO+FrCYYYSPFRq7nq9wlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709031206; c=relaxed/simple; bh=up80Ewx5Z1o1h8/iNPfmvLnaFsEZXQywW6b0ZaDSuDE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LEtfbbGpuUSdKrfr+3kXcqxz40lvMz8dmzvVndiQaTJ5uqTtVm8DRcsB5/UCkGVpiQrAotrb5EFNlKSVNdhfqGQF4owyfs70LRUG7CIE5Rj25Ng+ozctj/etNBqluZ+ZOcjfYRi1/3QBhB1SRDpw/oKHVaFSjRamn4Lsl80N8rw= 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.114.241 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.88.50.169]) by sina.com (172.16.235.24) with ESMTP id 65DDBF1500006C5B; Tue, 27 Feb 2024 18:53:11 +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: 87445445089294 X-SMAIL-UIID: 118B64FADD7F4FC1B4574058270DEBD8-20240227-185311-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [dri?] [media?] inconsistent lock state in valid_state (2) Date: Tue, 27 Feb 2024 18:53:01 +0800 Message-Id: <20240227105301.1525-1-hdanton@sina.com> In-Reply-To: <00000000000066a91a0612527e6d@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 Mon, 26 Feb 2024 16:56:17 -0800 > syzbot has found a reproducer for the following issue on: > > HEAD commit: d206a76d7d27 Linux 6.8-rc6 > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1704b3e2180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- x/drivers/dma-buf/sync_debug.c +++ y/drivers/dma-buf/sync_debug.c @@ -107,15 +107,16 @@ static void sync_print_fence(struct seq_ static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj) { struct list_head *pos; + unsigned long flags; seq_printf(s, "%s: %d\n", obj->name, obj->value); - spin_lock_irq(&obj->lock); + spin_lock_irqsave(&obj->lock, flags); list_for_each(pos, &obj->pt_list) { struct sync_pt *pt = container_of(pos, struct sync_pt, link); sync_print_fence(s, &pt->base, false); } - spin_unlock_irq(&obj->lock); + spin_unlock_irqrestore(&obj->lock, flags); } static void sync_print_sync_file(struct seq_file *s, --