Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp326766rdh; Tue, 13 Feb 2024 19:41:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWq58+hngoBaKfR+ECAyg7EJjXObEyjYne0Cq9Q57AZhT3Tex93NoNCiJsj5glbWJwW43VLggRPIZrijlQAlurtm01J0LIK+x1Z89wO3A== X-Google-Smtp-Source: AGHT+IEU6PQpf1lW1piromojRvWTzta3eN8PUracq5fcJeGGn49DCjo8H5SuCl6x1WUfNjG/yCZp X-Received: by 2002:a05:620a:100f:b0:785:5b35:d64 with SMTP id z15-20020a05620a100f00b007855b350d64mr1383184qkj.71.1707882089723; Tue, 13 Feb 2024 19:41:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707882089; cv=pass; d=google.com; s=arc-20160816; b=PobHSub4bsE6WWMgraFniseCouhT6nZM5u+fI2WnwUbtnHrSq2b4nl0CKButrV/VZ6 +oGoD+SUCzar88iS0C9sj/joXpRQsTIhWmBIDXmgubP+p/pwRMtgyQmqZ1dbu3JiHyDd 5cjpcA3TlpuIFPd4J207FPtQ9tfoTt68bY1ifwtq6NnFh5J+HORmTppm8trEornKw2Zc U9hwAnEWWMr61loXAc7YRuuuizwNYzjJC63JnNhOMe/Pgsiss0ecyvlKXfmBCwa5N4KE SOVHu75Iys+fHwSxRubgazxyyawq8AgmI6YcFQ6F/qNuSa7YYiYfLqcxw7nv3YNifeFO msbA== 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=SjNcOXpUXCpW7hvwTs6jC3rgxgeXo/xClpLr+BjjAWE=; fh=/ITFTX6I2TKn0zo7LnxtFMPMDIUmZJssk03kTF3b7MU=; b=snY/3hl+Eo9v2VePZ6t3sVtX9+ckqMXJtX+Z7eckb2NQ6+lTwgCjlth6RUkt6jQqVd Q5Vvb6hs8qELfJ8AhJS/BtSMF7QfBSoHyz11eGrwKGNdQiVDauLq+kFADt3I2Cfc0ks1 W/KHyir0mHttUD4tHl1MR6WgQo+MFgjbjoSJQ0tx35Lv1lxj5BISQtmt/eNP/jLQW9PA wp8MkZu5jkpVXFNTcJ6S2gYgUwVzyhY72ZdqMzODd1SzVGNjRHEsIPrpCg9jU0Sz39lX hsHFXPVM/pgqfE/do0K7BGlwJPBwdjdkKnIoGbQjogssEZ79dt0CDZ7HRmLQpyw/x69x sBdA==; 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-64713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64713-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXRUt75sSadKWZRmqGLjKTEuHSZpIEzG6FDDdRVkQtbpqqqK/hfT7BN/BDLtxBGvl0wFoHLfcoMAz+TbGhiffExdUANOl5om6hpQEldXA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o13-20020a05620a22cd00b007872729f4f0si1104304qki.105.2024.02.13.19.41.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 19:41:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-64713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64713-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6A1811C22779 for ; Wed, 14 Feb 2024 03:40:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F405EB667; Wed, 14 Feb 2024 03:40:03 +0000 (UTC) Received: from r3-20.sinamail.sina.com.cn (r3-20.sinamail.sina.com.cn [202.108.3.20]) (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 C0839945A for ; Wed, 14 Feb 2024 03:39:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.108.3.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707882003; cv=none; b=k7+uihQKmfjGWwqeBpwjqbHG/AR2FtvBFVPmnCkijTKij39SY88hP/ITM1y73q16XYvcvFshhb+AMzQfBsaW1ULhFtWEAvXmsJs0GFS1e3Dv3EpvIpVL8F9QD/U/NJrxy8PIh+V57NIJMc9Eez6K5cNqOz2zMUjIRuk0CMv9yIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707882003; c=relaxed/simple; bh=BR6PWRQuzdXJi9gufSKWPm698+m6vSpa+PVFocD93wE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b4E/4mKAfeuJwi8ajWowv+Ud7GcL5YpMvv5qHi3dgRa2eTZ1riQteenEEnmKwdKVmv2EW88eZx/Btmtq2NTV9ml8vwzPlA1SxoRT+kNNvA6/GdPK78CBRyBd8CGuzLPC3D7wIHRO5Ac+9L8UD3SQJRTuumDA/zkRtq/voSJ+0x4= 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=202.108.3.20 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)([114.249.59.61]) by sina.com (10.182.253.24) with ESMTP id 65CC3604000060FA; Wed, 14 Feb 2024 11:39:50 +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: 2109161048592 X-SMAIL-UIID: 7327D8FC310C4E8C95B87A560E04ADA9-20240214-113950-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [dri?] KASAN: slab-use-after-free Read in drm_atomic_helper_wait_for_vblanks (2) Date: Wed, 14 Feb 2024 11:39:37 +0800 Message-ID: <20240214033938.338-1-hdanton@sina.com> In-Reply-To: <000000000000ec4c32061143ec95@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 Tue, 13 Feb 2024 06:08:15 -0800 > HEAD commit: c664e16bb1ba Merge tag 'docs-6.8-fixes2' of git://git.lwn... > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11fcdba2180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- x/drivers/gpu/drm/drm_client_modeset.c +++ y/drivers/gpu/drm/drm_client_modeset.c @@ -1062,6 +1062,8 @@ out_ctx: return ret; backoff: + if (state->commit_work.func) + cancel_work_sync(&state->commit_work); drm_atomic_state_clear(state); drm_modeset_backoff(&ctx); --