Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3897960rdb; Thu, 28 Dec 2023 03:57:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEU2myjViVcVag3umzlfRW0gUrv3MntbTBP7jjXwFTvLvkw4acfwed+Cnnch/G1EBvc4v2N X-Received: by 2002:a05:6a00:14d2:b0:6d9:f66a:9ee5 with SMTP id w18-20020a056a0014d200b006d9f66a9ee5mr1839353pfu.27.1703764619840; Thu, 28 Dec 2023 03:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703764619; cv=none; d=google.com; s=arc-20160816; b=k6IdSj03wvotrpBozCGai2Zxw2/XqgWsTpwbBrFJmDlXDwMvkhHHjnFBkjFbP2dLqk /hl6ofDv8FSy7ePGQkjqC/ZyQsHzXkpXWxSkgKgkjo3CW1p3/nesdNtIwY7NSjJc4NLL LO6mUsZjn431vI4p3oBseWWj8ygXXVzBQvefQvmEVlgEGGpHLSfs30oRz7GdRR9f6Tyw 1cr5QpqRpaN4ZAZuHQKVUGE+VGZ34AX5PrYjUqpxbvnZSuszLQfhn7PDISHpV5+fm5IE 6yYuWjynxhl6nIk3pkXKlOv1f4sYbSphRr+Z0HkZQ/GyKuAiT+OMZJIAOhXRIH7Ja6st UhwA== ARC-Message-Signature: i=1; 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=dVwmX4FKCwlF21z0KGu1JSuVD+5YaGq9UThRiquc/dE=; fh=HErPi5DPoGP5nrrwAUdYruOYfNugcNrp5AGHhbW6X64=; b=cfRCBCQOYwV3YZKRMofWXD8g4EjngszlTPVY3SuLcuaBxzi6R9ABGlzujSh+PlCBFs whBxSC6XjoH6MRqT+3cMOwnMah4PJe+v1UOdKC+ItIN4jVqXNqGW0eo+5QfaJj5AzBfl 3uLymYo1DAH2uVVmQ517gclqLjdsPrOYXipjwvicCf0YuJThV4RdEUCYLUxJsBv15UFU hpsKSg2zWYGqXba3o0BX/aVs1Xd532SwbInIqlbq0+ib6r6VsVaGl0TBvN5mVlqqTGkq nuvGwIGCco4CrHB/hdTwXrqkJRob+PzTca4salNNfiXhrwfrSO4lGSazABlvgAC+x/xc QE/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12629-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t191-20020a6381c8000000b005cdface6326si9689312pgd.351.2023.12.28.03.56.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 03:56:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12629-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 84E7B284E4C for ; Thu, 28 Dec 2023 11:56:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3B777479; Thu, 28 Dec 2023 11:56:53 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 0E11B7461 for ; Thu, 28 Dec 2023 11:56:47 +0000 (UTC) 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.9.182]) by sina.com (10.75.12.45) with ESMTP id 658D627100007CA9; Thu, 28 Dec 2023 19:56:37 +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: 29396431457300 X-SMAIL-UIID: AEBE18E176FC4779AA7014AB7BFF9B11-20231228-195637-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [dri?] WARNING in drm_prime_destroy_file_private (2) Date: Thu, 28 Dec 2023 19:56:25 +0800 Message-Id: <20231228115625.1757-1-hdanton@sina.com> In-Reply-To: <000000000000f4faa2060d83f582@google.com> References: <000000000000f4faa2060d83f582@google.com> 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 Wed, 27 Dec 2023 12:51:18 -0800 > HEAD commit: 5254c0cbc92d Merge tag 'block-6.7-2023-12-22' of git://git.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=155d5fd6e80000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- x/drivers/gpu/drm/drm_file.c +++ y/drivers/gpu/drm/drm_file.c @@ -287,6 +287,7 @@ void drm_file_free(struct drm_file *file if (dev->driver->postclose) dev->driver->postclose(dev, file); + drm_gem_release(dev, file); drm_prime_destroy_file_private(&file->prime); WARN_ON(!list_empty(&file->event_list)); --