Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1094019rbb; Sun, 25 Feb 2024 20:07:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdk/FQSTAhA7iL83FEtpnr0p7f2T/jGM/5vKJ1RsBM3kJKwIVjsomvQSTCbithOfP2owvOyH+M40GZxNeFSflWwiJNr5GaGbdocp4/ww== X-Google-Smtp-Source: AGHT+IEUuJTSfKqucu0gilHVCdHic/LOWl12v9DzV4FchG3tV8UyPavy0NU4xm/XsJQbJInvbva0 X-Received: by 2002:a05:6a21:3401:b0:1a0:c82f:f89b with SMTP id yn1-20020a056a21340100b001a0c82ff89bmr7844292pzb.6.1708920456569; Sun, 25 Feb 2024 20:07:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708920456; cv=pass; d=google.com; s=arc-20160816; b=Phx2cFsfh7TGB6IS9A2Jw4aj8wFzakD3YqUzTKznfPONo3Boa3ebg8OP87kV6BgFmI ZawuLqngVw3d4qjMD8LDS08oNron9UIBeSHAyvvFhApv/9p4s1LrV+Nd64gTAklpYNAE IvIlpBNhkSs+W7w/1uFzUGflU862bV30yBTfXdCdKlQ+45vKULJEwXoT+/zwh/m1EPuJ AYRfEbzXSIpqCvD9P9DOjWr2GENECwKGIpBsvvLsO5f7Tfr8Qt5Zf8i5mR5SRWYqft0i 88k0fEBK3WsN/rF/yeMcgAqTgS/pQl0flqeZexJQJAYNa3MD1701LSEyaJcvBjxTf8R4 Iiyg== 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:dkim-signature; bh=hxZfxLuN5IBbtVCVA9Sdm69q2IlqTKCbXSZFXp0KSOA=; fh=fAGsqndr+oA5OPFH805rHDcBhQhVZeD6Bn22T+xzV7A=; b=RsdIpluYm7ZryOPS3z6ddLeiG8vu2AAtqbBqy7oSjhekJa9AL7NUe5Ie32I4LPAjnE qEmf+HJdZMpfjq+CQQmeN2jfr3R/lqlGMBXvERIZNkT0DhBZ4izzbSv15wUcimFx8Tvb WfIbcORix1lO4/1BYOwQL6dToBlE2sVG1q8463gUlzJpDiSZQIwf6+wpieggLOfK4doT C+JpkQ6qZYIppFqeblotc50YxVAjKCjZOdA8YHMI7hkxsCXvxxWYTYEJollXnH+ptL6s gJ/m4dTOc3kwrG8Cf+QTE2GsTYgt7Is5oMPqSlsql8IoTQgmh/2rA6+kAy67fJun9847 o1Tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=DibklIX8; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel+bounces-80524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=windriver.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h21-20020a635315000000b005cd811e2ffesi3093080pgb.18.2024.02.25.20.07.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 20:07:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80524-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; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=DibklIX8; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel+bounces-80524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=windriver.com 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 766A6282B17 for ; Mon, 26 Feb 2024 04:07:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 855901B59D; Mon, 26 Feb 2024 04:02:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=windriver.com header.i=@windriver.com header.b="DibklIX8" Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) (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 C7AFD1B27D for ; Mon, 26 Feb 2024 04:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.178.238 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708920146; cv=none; b=uNTNkyd7sO9iaoexR/TBe+x5zvuJJ/2ttwRvswFRoLpxe83/CDsGtWKzlurPUZ4eGGtccctaPGHZ2M5tiAgyIJZHuU3uF8xOduI7Cez86ZHr4BrlrOvEf2a8Y076N2k08Lg9udDLSTqTOXoeGmJ4BY7zpoJ9CnCMcZ/KzVVUucM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708920146; c=relaxed/simple; bh=LOABVSf79geybJN4DQhM9YJDQ+2x4J0sTuqeGEDlZus=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jfk55ISHF6VO6yNufrMrqzbobLdopUDq0ZhwC2x9GB17PrtOQhdnNbVqzpsC96tpopQ/prvH9R4m1sa3tqvc5QNM33OnhdM5kj8xXxlQdYqW5gGMhPGLzmv3i53gFyG/h7c5XqO++EWIa4F1Z331ZRODByVrGnyPiouhERPxUek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=windriver.com; spf=pass smtp.mailfrom=windriver.com; dkim=pass (2048-bit key) header.d=windriver.com header.i=@windriver.com header.b=DibklIX8; arc=none smtp.client-ip=205.220.178.238 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=windriver.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=windriver.com Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41Q3gmHI012557; Mon, 26 Feb 2024 04:02:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= PPS06212021; bh=hxZfxLuN5IBbtVCVA9Sdm69q2IlqTKCbXSZFXp0KSOA=; b= DibklIX86Q8iwRg8q5YOCEB3/euk9g605HYCI0ezC5EEKrrkMhV0rG6jHMTGagm8 BLks+K7d3mHlVABm3ccgNu73VZzFsZzYF1z+4m8uzo7Yt668ZZNBDHQ6GOHoa5r3 N1oVxIzSNRJ0/ReabdEcJGuk7oNuHrN2jIttJpDgt3zuPYGPtIOw6pRQbCOecHEY ThOa8AIALSG4FoUrsR4BayxZFU28MY0M8FG12iDMN7J5+GkXCc4yiV3KQGu3hAlJ FHKmKWcJof0FWenfVEYkJ2e6Y1pGLd4GyVohZL2hDHeVtNGNlzHoWC9EPxNWbOW3 7p7DPm92G6Flqqx32lN4Nw== Received: from ala-exchng01.corp.ad.wrs.com (ala-exchng01.wrs.com [147.11.82.252]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3wf5nx1h3d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 26 Feb 2024 04:02:16 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (147.11.82.252) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 25 Feb 2024 20:02:14 -0800 Received: from pek-lpd-ccm6.wrs.com (147.11.136.210) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sun, 25 Feb 2024 20:02:13 -0800 From: Lizhi Xu To: CC: , Subject: Re: [syzbot] [dri?] WARNING in vkms_get_vblank_timestamp (2) Date: Mon, 26 Feb 2024 12:02:13 +0800 Message-ID: <20240226040213.1200539-1-lizhi.xu@windriver.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <000000000000edf6a306105afb50@google.com> References: <000000000000edf6a306105afb50@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 Content-Type: text/plain X-Proofpoint-GUID: HuD90L6zHc2OIM5EfZRtIWHF9bGZqXVn X-Proofpoint-ORIG-GUID: HuD90L6zHc2OIM5EfZRtIWHF9bGZqXVn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-26_01,2024-02-23_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=810 malwarescore=0 priorityscore=1501 impostorscore=0 bulkscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402260029 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master diff --git a/drivers/gpu/drm/vkms/vkms_crtc.c b/drivers/gpu/drm/vkms/vkms_crtc.c index 61e500b8c9da..8994cbd88482 100644 --- a/drivers/gpu/drm/vkms/vkms_crtc.c +++ b/drivers/gpu/drm/vkms/vkms_crtc.c @@ -100,6 +100,9 @@ static bool vkms_get_vblank_timestamp(struct drm_crtc *crtc, *vblank_time = READ_ONCE(output->vblank_hrtimer.node.expires); + if (!in_vblank_irq && *vblank_time == vblank->time) + return true; + if (WARN_ON(*vblank_time == vblank->time)) return true;