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=1796202943; b=haP6N7x5BDfr4nDI6f9gZMNFOdelN+RxUvzaCn86H562lF1UcAWYiz2Ofa2g94Wa7Z9x np10H7Cm4Z9b+iakok4e1K0BGSDa0pl5BX2x30ZUz/L/w6r2FQKJoabSOdQVC4f+kRjob 1eNXMFmweFIcjfnj83LtG3v7aE8SoAiANf3xcGd3+sDvY2CELglx3drhq4UxShPGHyG/J QItyJ2KNBgW2HMcE4q2QbicEN46sx9jhvlKb2+MECEEdzBkrlRKrOWdRP87DN69DwHZvO SiUcnCenlqIe04Vo/MTUGZOhoXxkbQM7JkYVQRwukmwfSMBam5VIzg97ASn8lGcCTGA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796202943; 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:From:Subject:To:Cc:References: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Authority-Analysis:X-Proofpoint-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-ORIG-GUID: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=ng+nzXBeH6ldyeUv9eLY2b8On2lAB9JJuhsszp45xQg=; b=QlJh3X1FRVMGC9YedkDFr4VFElCmCZsEp1lg671WC0xpF5jS9fR3lF3Lmr0PoLdyMUcU MPcS1br1PaMGB6d7lLxdMzkbeaLeMaNYxU6SdCPHi9G/0lgVo6xwHyYgufchnpiPP6rnK RLYPQqj7BSl+1mJGQlBQMWCyclzzUt8aJvl2pTo59TS29qaMcbcyQmwf+T1LRKr+5U35j ALVZvadw6P/GukQOlsKEvB8sTC7mI8Z24/xOZZz+lvvKNrolODtbRScouWJTR2BRN0s1m Q1bDFr2fsqGI+4rbGSYfVZJDY4Xlkt+g84ORTq4c3UQGtmhUTllRSRjzyRR8eV1ophA== 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=Yxza0gN6; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=b74za2IY; 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 B16AB606A325 for ; Wed, 2 Dec 2026 09:15:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B16AB606A325 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=Yxza0gN6; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=b74za2IY Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26p7S12382960 for ; Wed, 2 Dec 2026 09:15:42 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= ng+nzXBeH6ldyeUv9eLY2b8On2lAB9JJuhsszp45xQg=; b=Yxza0gN6gdjdIirb AQaG1L7aouZDeruvmbCcXp1gj5hD9FZRMOhvXaVAofmWwHZfRb0QvaqFpZDJf850 2t/H+cCnxpaH0QSalTcd3zs+tc4rFnLjEwSmbKwG5lSAIQJ9fLy62AuWJ0WAUm/q ics6pdGKXEB2Ax6syqffYTAfQJMz4x4Nu6j3pQ0Huiune6itU9QvCQtXLSWBEWyX kAlf7e2fIO1oryIjF2z5I4OKml3nrqTVt30hWDZF/xAf4+YXlskZ+YUzNwsUL/w0 a/BVESIdJZa+N85OK9b5tdbPNs3tz/prutJY9a+E5x3mZnjfIW4iAP8/ZiL3RZV0 6JD+mQ== Received: from mail-dl1-f71.google.com (mail-dl1-f71.google.com [74.125.82.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja5p9jhce-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 09:15:41 +0000 (GMT) Received: by mail-dl1-f71.google.com with SMTP id a92af1059eb24-1b5b37993ecso7722235c88.0 for ; Wed, 02 Dec 2026 01:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796202941; x=1796807741; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=ng+nzXBeH6ldyeUv9eLY2b8On2lAB9JJuhsszp45xQg=; b=b74za2IYzTR70aKDdrGEpChu73JixRiwjMe/RrNAT+K383R5cRUcbqcZt0Q0UMc1rc Go0ukwdDctIPCXIOjS2fYs4jPkdqmeqQEPAQ8n48DOZc9QNVP78GbmiQXMN2pId3iljf E2IcCuLuMZmhfN1nsyEi6gshdl8/4V/Zm3GXAirCD67LTHxDJTpHwiFd3ZBisxuQKDGZ XHmb3PPPMYH3Vx0qxyeNMPGLYA67Zw3dmwphKuS8uZpfDFXhBwL37mD2lWCM9miSoCU5 HhInSMM0zVVG0My8UL8pI1hiC55XCe3B3YvANau4wJgh32mUcFP6Q/Z+fPL9K+cEOrzT 6R0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796202941; x=1796807741; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from: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=ng+nzXBeH6ldyeUv9eLY2b8On2lAB9JJuhsszp45xQg=; b=vKRAxgJlM+JKGIbLyy4JiVH+yR0Fpe3GPte645DAVo/BNCEaIE9AKGQOaLtBYAOvB+ OCef2/RDbApaKbJpSA74b/eQX3ovStV8+jK5vVloDuITNjW9kb3J+tMkCnweVoO/nxCU kVHh6V1bQudoplDqzmtzAJuT0ET68rcldRQMxLna/uLvdjQOEaIqHEG/bpUSYefNzO4t dG8lJvZI5SVUkI7CoLmfQLbolOUDI+fMtBTv2uZfb9P/V0kkCWFSCzQdnAibNYxOPs1g GHdNXnkQzRru7PixCW/9dXucJ8j+nzKthwWxtEj7QOHtA/L+GeGhY1QBGbyANb7tDaIo /0UA== X-Forwarded-Encrypted: i=1; AL+hErEFP67uLT7aUMeyQ78YtNf5ZotthQyqJGYAP4bNDDZfHBQYt5tRW1uRzQjNqUtT3wQaTK7kh5g=@vger.kernel.org X-Gm-Message-State: APuU4Z8ID3O7PZ7ZFCRBDOmb5bpXKWphDdgwX2O5Kl/xDtotP6Cz5JUX /J6cPJwt6sGn397/RUgwA2GkS5XsnK32PReb/sFSv/iFFmUvtcSpQF1OZ9D/zKthYSFTbZgS9Eq jG1v92TRLRcppd76jDHwZdcS7CJ+u3+2l30DJQm02oEdox4B2a59zFCjgIb0= X-Gm-Gg: AZFdTZceg7GHcZVj1vKT63BdV4SDIS2xRZeqO0/Gs29F5jlrFMWxWit/C4HY9iauFmW 7NOSj5ijplwfdUt0oC2xLSJ2RzLlC1gyJLFoDY+vJJziFR55wzbn5qC76tjtQ9yR7CcuwWYdOO4 LZYqTCt/gE0iqXr+iBag9+bW8/IrKZgLNicj2ilX/eP3cKtIdXKIUwfYQbPXSaMpTBqyRJIADg9 yLzknNzheFbGAnJz6gZXGp5/bMaz4mXvuRnZGTbq+IoMPq4PyaZh5QWHSMvxJ5xwSbYl/tCxKIF /WU0CAolwDWV7kPqeaVtdXfnykJyY9ziz5DuQZk3SoZ9aAGmMJ0NBxIz9FuPV+/4SvCOJVMtw2D TGbYDkrT2Qd7GqeDdgWRtf1T1JHPYko2Gb/YnWTqXpqepJ6bWs7i9ZAcHjwi6y5BEvRniYXu5ed xEGJA= X-Received: by 2002:a05:7022:3c07:b0:1b3:a22c:7f37 with SMTP id a92af1059eb24-1b556922d5emr33179980c88.39.1796202940903; Wed, 02 Dec 2026 01:15:40 -0800 (PST) X-Received: by 2002:a05:7022:3c07:b0:1b3:a22c:7f37 with SMTP id a92af1059eb24-1b556922d5emr33179954c88.39.1796202940262; Wed, 02 Dec 2026 01:15:40 -0800 (PST) Received: from [10.204.100.41] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55684c85fsm144504527c88.14.2026.12.02.01.15.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 01:15:39 -0800 (PST) Message-ID: Date: Wed, 2 Dec 2026 14:45:32 +0530 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 From: Vishnu Reddy Subject: Re: [PATCH v3 2/4] media: iris: Disable the system error work on removal To: bod@kernel.org Cc: Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Mauro Carvalho Chehab , Hans Verkuil , Stefan Schmidt , Dmitry Baryshkov , Hungyu Lin , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , stable@vger.kernel.org References: <20261119-iris-handle-unbind-v3-0-52d467a13907@oss.qualcomm.com> <20261119-iris-handle-unbind-v3-2-52d467a13907@oss.qualcomm.com> <179604311084.1329975.2425990508110024419.b4-reply@b4> Content-Language: en-US In-Reply-To: <179604311084.1329975.2425990508110024419.b4-reply@b4> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=Ft6QbGrq c=1 sm=1 tr=0 ts=6b0fe1bd cx=c_pps a=JYo30EpNSr/tUYqK9jHPoA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=K7EYZ_02sBeUhtAYeKQA:9 a=QEXdDO2ut3YA:10 a=Fk4IpSoW4aLDllm1B1p-:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDAzNiBTYWx0ZWRfX3SOoaiT4UL+Y O+AOhG+/+6DvaNCX+98WkmCqOXPuCzIvlomSTtfw63KSJrq+sGbIpYiCka43qkKJ3I5SqxcxOda FCGv/OGD2wJKDmchgwMyZVgff/T3KP4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDAzNiBTYWx0ZWRfX8W5v2KcHBpyx U14JmInSy/6b+oqcAqxoqBSclNhpqKJsEJnaVzSMfKqd6JWr/I+eoE+UXF6Pkkqfu2Mn59Ej4dB AQ9mzoBHGzmc/oS+iusphP2Lxk+0Ylkh1ivyIqaKMbZ08ju5/h3RgMaEOSbtss2dWYRC808MLGy tgXDCKzYnP3B+iERXEtJO0LM6lEvPX5v38t75mokipuYIX9SHLudY/ra3ahkDKUgfXlzRhktInb UHbo+gimLug/rT5ghe7Oky4gOUwgUuTF/BQE2rgcsN1qXeOCuuF6hkl3Rm5kZ4byr1ptFfkYeQi Y9mDwKhMgTmHrxwtRsK9jqEgYqAZlw/ggO73c65yjUnc3DkDrOTlxzaSlAlEwpYLhqT02++6jBp NkCLZnXuvv5ND58fhwgcIp5a425R0lgntpm50PHA1XWHQDmldu0VcoDL5qZQ3CfEgp0Us7SPEQ+ Aaqr7ZHWGmwASA2dphg== X-Proofpoint-ORIG-GUID: I7J4C62F4YC5SsX9TSt-zHVHu2l6nlw0 X-Proofpoint-GUID: I7J4C62F4YC5SsX9TSt-zHVHu2l6nlw0 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-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 malwarescore=0 adultscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 clxscore=1015 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020036 On 11/30/2026 6:21 PM, bod@kernel.org wrote: > On 2026-11-19 17:15 +0530, Vishnu Reddy wrote: >> iris_remove() calls cancel_delayed_work_sync() to stop the system error >> work. This cancels a pending work and waits for a running one. It does >> not stop the work from being queued again afterwards. >> >> A system error interrupt can still arrive after that call. The >> interrupt handler queues the work again. The work then runs after the >> removal and uses resources that are already freed. >> >> Use disable_delayed_work_sync() instead. Once it returns no new work >> can be queued. The work cannot run again during or after the removal. >> >> Fixes: 452480931648 ("media: iris: cancel sys error work on driver removal") >> Cc: stable@vger.kernel.org >> Reviewed-by: Vikash Garodia >> Signed-off-by: Vishnu Reddy >> --- >> drivers/media/platform/qcom/iris/iris_probe.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/media/platform/qcom/iris/iris_probe.c b/drivers/media/platform/qcom/iris/iris_probe.c >> index 343e44c6b9c4..6f02bb629867 100644 >> --- a/drivers/media/platform/qcom/iris/iris_probe.c >> +++ b/drivers/media/platform/qcom/iris/iris_probe.c >> @@ -251,7 +251,7 @@ static void iris_remove(struct platform_device *pdev) >> if (!core) >> return; >> > Wouldn't it make sense to devm_free_irq() here before disabling the > work-queue so the interrupt handler can't run for the rest of this routine > ? Calling devm_free_irq() here can leave the IRQ enabled with no handler. A sys error work queued by the handler before the free still runs, and its iris_core_init() -> iris_vpu_power_on() calls enable_irq() on the freed line. > --- > bod > >