From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796028320; b=byL8D6qy/MFB0nnS+6vcl/hfN1hbJkjPnGjnNIFnhmO6mLCkyJK4zUTtLTUi8zR4ZWnH aEogz1BGdNCqfFToppvcVJ27AgB373Wi9ldonyyk5kGdT9hSpVQyO3VZ/eOHt+M0GA1+s kCz/nbjFIaE0909Mx9jVDDCSzzl/dJvyEMyc5IMxPnlsxo6fLtJDvYcd6gHbfdKM3PY+T nFVYh5oY+9zaFLBXonOulr/6nCXUSeE9NwWndJRev/lANTv7G0nYGIWcYOB+MZ2iD1BsS 2OJ2wVBg+lT1ipJrdZu2NOx20egbzM2t6AIsPNAQw0xngz/mh/Ba91tYZUGbDHp5+6w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796028320; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-Spam-Info:X-Authority-Analysis: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=/nJODe7nelZaiuyT671FUpvRXTNczbpOCzeigeJeN+U=; b=sSHfK4xbjAIrprdbNl96v8DLTbvuo54xSfpMcisjg178oDXe+1CWLBR7zHnh7ZM/0Nv+ eV5qD0UiVi7prxBIieCIgMnmjx/k59ljSC2sGo05mySYp9UP3p9Vt/2rYqbM97KJqreTQ bX30GJhtjq1kXPhJR48i04ermshEraB1yjZ2tIpSM3WgPKj2YY7wEu3I3SutaY+qol0Dp Jy41A2eJD9IMUjdtcaokDV+dK17QSg+PlbyTgQT5XUff0m74+Zd/w2ABjJFwRqTVBmqSM oY6JXoS8bay2ezQSWAX0gMqI8nzDfcVjvQyxhoPN+4nn83Bhod3k5dtd6goZW4BhPsg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=KyMCzpei; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=KvAnLDrc; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64963606A691 for ; Mon, 30 Nov 2026 08:45:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 64963606A691 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=KyMCzpei; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=KvAnLDrc Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AU7aXAF1461699 for ; Mon, 30 Nov 2026 08:45:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= /nJODe7nelZaiuyT671FUpvRXTNczbpOCzeigeJeN+U=; b=KyMCzpei1v0CghvN s8FNMUTmphdkZyF1xBHSBzwNULhyb2y663lT6X6NZDdNLzgdSovSG7gAyBMzQ62u JZouC+32Q99TIfJLUkC1my8xyp/+4laqoDcwxdBKZEpwkyC2HmuKwK6AuPVKcHWL XbQR+p6nmcAVzpP34M3HkXpeN5oP3Iyq8c78DzaoDKrEwxye9bFmAhN34wGMNd3X 3TzeArK8JoXsXKQKo9a7sVVJgGZ/7QKZM2QipnEKgrenU09BylpamZ7JmK0Nv8Pe kI+UFRGK6dn+wd76d7mgy9sNNVqWs9qrHDUPV2LkDIyUs/4aXECA1s78y1yLCyLO t+Ivyg== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j94wfr8p9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 30 Nov 2026 08:45:13 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-55dc507006bso10034971cf.1 for ; Mon, 30 Nov 2026 00:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796028313; x=1796633113; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/nJODe7nelZaiuyT671FUpvRXTNczbpOCzeigeJeN+U=; b=KvAnLDrcAKx4M8jdfCXFSinPyqSlZbSA9XDx8mmYfQyHIQHwjQcvNrMNWbDwr8i9tj TbnxQ+OsYoGWvhh2SGToyDJx4VlM86UU/mmzpJD2tC+BJougmS+2HN3PYdoRo4gCYLUu CQs7RXF0lKerlalCATdKm2Mhv0W4YANCQqpPmuSX60SJPoXoXYwLx0I/ocJ9/BmQ8mia 3Q+gt/dQXGPm3DRWxMA65IgA4mcb0i8mxCMv3Qw9Ib+OBGes4zqy5tfLLQp0pdSBFiXy Py52lCgzyoEmPeL9GAd2ReloRTIY6DFFPBr9gGTlhE0TFHBtHuE0gttqzLIFrN38c6Cs yYzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796028313; x=1796633113; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=/nJODe7nelZaiuyT671FUpvRXTNczbpOCzeigeJeN+U=; b=xHhYH/PNng7KdNwj19qAIhzo8mPOGFUaJIEFVCUqrfHW5ZhZJwJekZbgNYI1JdYxY9 YW1TE+mC7BPQb812U90hBNqkTrRcD1SjLKGB7ugSz09su/orvTi70wBGAldip7uHIp8M uBG75jXsggLsOY4rY2GUFUn4IgOfuK9qU+v0vllDrAAIi0IIyDJRrjdvjyEVFmY90+a9 lU5D+S0BTt59fYi3YYvYoViYPt3LX5uyczt2HqtyurMCHm1cvu8b8wafqI9lF70c0+QK sjXYnUhjOunnWaUHMnZZ7dUguKFjKrszA7pTRZ9adFIdCjVbBDmM1Cj16m8liMfpuFtB rU8w== X-Forwarded-Encrypted: i=1; AL+hErH2xv3bo7jkZYkHihmtQoNDfdDs/AyygJ+tvz45AaXSDX5NBofYUm4x4MtkfVs12TkrVhL5fVuvNJukrSI=@vger.kernel.org X-Gm-Message-State: APuU4Z8jqG07ZLqQSXw5PutHgxqdF1H9ggAUjWmXyjfy0c5WU4mi118V Anp6ICT/H+qjgfbatXKDbScG6udwSxKikTsqKswd8vMUgsaBs8SJU5QTdi0gyCPomUsAJ4k2WBv IjvtrZIww7DMDwdYsr9EqDHCS9psXzgVVIjHx1Mhdr5+ZjKm6W5EgCEiNyWEjQx4XjVM= X-Gm-Gg: AZFdTZeCa+/XqCmTbzGvJht6TWxuJE1JTxziqIezb4h9iIueWrUD44m1fkkbnwr+JlF 2RJ6V7mrNhUQ+XL/4d46bZNmX3Q5WMZyTdUZ9dmrkabV8NftQme+TeQVSN3XQ3+eJ3Ze/pXCLdG BzjzPhUrB8j81qk0yP/jFg0AE8L4fPTVfSFiu6U3TCYJo/fSBrUCQuT5V2mB/bUr0rPhJ0QEyMc 84AvQxVjIQuJMdDKWPZ7MN/4P1qDGRkyUPIg5ozfV1R7C/lCUSxDHUB2Aj9xh0cmuqhuQzEQ+2u 3cqvpJ7HkDYGMtDgrlTqFUloaXkYLRO23s/10nIIQAaYeSwOirAjxzO05DeRzetIArPI0FOp6H3 3mBBmUS6wBe+/DpfinqKqrlFBO+3KUJ/taz22rKKDsReY+nxrINZlHwcPi/SMzow9rBnmjEY= X-Received: by 2002:ac8:7488:0:b0:54f:7ca7:1292 with SMTP id d75a77b69052e-55d76aba659mr654220271cf.5.1796028312318; Mon, 30 Nov 2026 00:45:12 -0800 (PST) X-Received: by 2002:ac8:7488:0:b0:54f:7ca7:1292 with SMTP id d75a77b69052e-55d76aba659mr654219691cf.5.1796028311882; Mon, 30 Nov 2026 00:45:11 -0800 (PST) Received: from [192.168.226.72] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c51a161e387sm624361166b.47.2026.11.30.00.45.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 00:45:11 -0800 (PST) Message-ID: Date: Mon, 30 Nov 2026 09:45:08 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 01/14] drm/msm: fail the snapshot init when its worker cannot be created To: Dmitry Baryshkov , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Archit Taneja , Kalyan Thota , Vinod Polimera Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20261127-msm-kms-destroy-fixes-v4-0-242b0a3f8e47@oss.qualcomm.com> <20261127-msm-kms-destroy-fixes-v4-1-242b0a3f8e47@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20261127-msm-kms-destroy-fixes-v4-1-242b0a3f8e47@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYxMTMwMDAzNCBTYWx0ZWRfXzgF5JIgWvMYe mp3RFIozc1DRDCN3fr3CIq8qfDgp7op+3cULImcZajsDG+X/35PYQnxG7mUAkppN+X6X/Lfped5 gJ4yQYE25tICeK1YRkKRdiZuVrMGm3I= X-Authority-Analysis: v=2.4 cv=BZ1NQbt2 c=1 sm=1 tr=0 ts=6b0d3799 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=FCBZkvyOtC7raMs1aTwA:9 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 X-Proofpoint-ORIG-GUID: Wi-tE0dsYz0XM5tGPpK00OGCI4gmgNKT X-Proofpoint-GUID: Wi-tE0dsYz0XM5tGPpK00OGCI4gmgNKT X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTMwMDAzNCBTYWx0ZWRfX/SeBRR5RfOEl qDVyCYBmsCOBwk0eQLxE+CyMsFlxKY4xRjEo56vDV/6DE0jAWpIjQNdsFH8CAFsb3LaRZqlTITm JlsISwxtCOe3Lma74091/ci4ZrfQHiFq6QZrOmWtKB2jkQu6ObgUFLAd11x4iecWfIr46TfItSW HSc6f4wdgGr6Balzb1doykgxAd/sKA707tJ75pc2gwbf6njUs9/gk4dYZH3iRAcUTDY0kYs73DX Fy7pq0BtfQoAI9v6pkJKzkO0beWwRJVF8rclqmRTom/caF3xFzR6777cVN6Lrw5vVbq+MqSmyKp nces6hPSNafd4k+dWIG9W4CMmuE74kTVfPfDdx4Q4wKUkIUh9rKCGxnt+6Zy0AO4ML3PBXvugku NoF5Kp2Cc4X3h2/dDtcrHLOyDGw21R7air58CeDfdPZYTE8FaGP+kQ3HJ2jzEaSy5cXWrov50S6 DWs4sytHEitqoFgQwaA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-30_02,2026-11-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 impostorscore=0 clxscore=1015 spamscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611300034 On 11/27/26 8:44 PM, Dmitry Baryshkov wrote: > msm_disp_snapshot_init() only logs a failure of kthread_run_worker() and > returns success, leaving the error pointer in kms->dump_worker. Both of > its users then dereference it: msm_disp_snapshot_state() queues the dump > work on it on the first display error, and msm_disp_snapshot_destroy() > only checks the pointer for NULL before passing it to > kthread_destroy_worker(). > > Clear the pointer and return the error instead, so that the KMS init > fails rather than leaving a snapshot facility which crashes when used. > > Fixes: 98659487b845 ("drm/msm: add support to take dpu snapshot") > Assisted-by: LLM > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Konrad Dybcio Konrad