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=zziKIa3wWdQ1F+PC0dU9h102sr1Q1ehpMBIYCQ6sk5Di6IG6dkntQqcVgnsDxfzmaZiy K+2BMVLO673XXIQCCDlDoQ5qkhe/gPrUiRR7jrNYXDWVT/iIvrYMhfEApZp7fhr44O+S/ pgpFPP+qhew3wgWIYO1pLQss5zY0KdOJDuND5ouBxbdInLZy1liPEnMJ3b7ZlfDh5mRMQ Jyd9FaEixzvJlQp5jqoQN6hrW3GHNPUrLbfSHIWKBNcS/MYGaGcouzLTLgGoJgJPc4V/4 Q+A1bQ4o9sUcQdyTdA63vPswugpgaEIdJsRLkoPxOFg2uwi1i/2cBN6nNunh21WIauA== 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-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=ng+nzXBeH6ldyeUv9eLY2b8On2lAB9JJuhsszp45xQg=; b=3X5BxGy+e1AUpuHms1dJ7+PP2QzHXSZxwAjvL8noC+XzUjyt/saWe+4HsyTrRyyNmOSi P1C0uYTyqM030O5wXptqOBNdZqqhXag9PwMb9v5KPqGl1TNP1fNSkF8hN84CsnOJg3Sds jc17Y4BOkDikixYAi/jTm/N/J93wJa7iAz5oWaRHFLO/+ov8/Bl2dwtofmtT28/vpx7kB SIeMW8jUKaIBZfrT3cMGsQa6ZaPrqD66HlDjCvCIaj4vQlHp4zdobsg5wYeQlbrcck0rD XA/ZPQn+7e9IUDy8idjPoEUXi8nu6ajzt13JHzasul43WiiW6aIbIrraI5AqVegZI7Q== 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 B159C606A322 for ; Wed, 2 Dec 2026 09:15:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B159C606A322 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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26pLKB3193177 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-f70.google.com (mail-dl1-f70.google.com [74.125.82.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja4m92suc-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-f70.google.com with SMTP id a92af1059eb24-1b56c696405so6739863c88.1 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=lsXpUjo3Egh0u46p5DgWlSPb5yBCoDg0amBILhFEBVuGfNA89+QruffV6u5khtMaHy Am71kKieNHc+xmlYtLBDUNcZr/nRe9qARCp9MxknnDjRLjE99m1lo/yTXhcm2LNdHz0t 1O+B5C2kYqx75Tw5SiAlYmqa/gZU7aCd8yUnM9BluE0ywS1nndz2ILTGa77RjFfS+ngr JMhzsUB1ldpDG+brokj1fnKAusQlankR6XZ6mOLoQ1G2a5+rRuAERMJtoibcxUMkvfEr o2UHKNMstiD/Hy2Q/HiYQjN/1kVqpmE2UnDXf7AzzTtaRHs8aa413v8uBcK3m7g46/af Ubkg== X-Forwarded-Encrypted: i=1; AL+hErE7co5n7CueKfqZuKN/dDeMs6t8DUbz1+/3zlTNsOL7JPxBFv2VmFCuXCYSpbwJoRI45Shlqf8sy3Xknsk=@vger.kernel.org X-Gm-Message-State: APuU4Z9Mjss72vJnuBbHQtUYiJh0dFk50wolS+8/A3jq4JfumZ2CgFxa mBTDEwdWfERubhqUvoT3gBUTt6jJf9xfjfmC/4wSiVLv7d0qaiytpj6kxqkGG79LafJEbr4qVkx VSYB88vUdTKagCEDBY6wNGJJX1Wmuj9Ns7fPPvhV9olWeOqY/zZWdzNuc6Dwvt1La8CY= X-Gm-Gg: AZFdTZemWU7aAbwokzBTKc6TuHoJINVk1xXv7XZs8L7WlvY/HKYsPHecQEKEqyHjHfJ 2wRASDImhetu8XcBnwHdr/Av4c1sJBQegspY0WoZEovAhGyRj+0Kpi/xxJkcWZ+AWt7cO1VZkzM 4gDEjlnbAcK6hBbwosdCNqptNcprOsGxh8jo/jlGSoFD25Y0o6Iyjx7ZOs7PdOMLdS/tZLAsTZd KEoymnFo8wqVSRBva+sxFJkPTKMbQSMTaMXql/ASfC5AoZ7cBy2drGOG2xxUlQMC3vggkMXadMd QiYHXPyY1q7Y/+MI8gYmSH+P5s/sHuHxGV8I6AmDACsC+ycYvipeJEyhFFd6z729QWOSmRr8HBA yBPnwD/WoG+psfMt46CodKpwzUgVJbUwNc07qh2FMPxRV+FPcFLZ9Pjq0uVSQ3FSRrA4jAOpvtd dLod0= X-Received: by 2002:a05:7022:3c07:b0:1b3:a22c:7f37 with SMTP id a92af1059eb24-1b556922d5emr33179989c88.39.1796202940948; 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: 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/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-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDAzNiBTYWx0ZWRfX9L5yscdIGPmu GmsKL74W6TRwxmgLbyVN2LFcI3ZwMzeFJgKF2RjmRXMkphI1Kg96ut0E3SnLC/3swduPuXgpFD2 3x4+mNMAhSUe4nDJBDGxl85n2HuHdWQiLjbTV9Af5Q6G2MgjhMoU7gvQ8uGSJKSdAnMztRhk16F mWP9cFKDlnkVEgk2OQ7Ng5USL6b4LIYrXVc+2ij1cVpWodYkvj985LHd5XzShIVPURsLdpQbUrm 4qTmtFid3mqu1ZmAEeuYlQfuTpn9EEaUGTSVRKej4pdc5FAC42cPdZphkXAiyf36X+g6iyCj6jd Z3Hh5Nh+2RA9n9kskH84QB38zUyIzH27LXlBsOOz/khyLJubZlBPqI0mpk+svuGJZDhcRHiiKwE HikEK6DnjyAvruZ7okM6Ib6QDvfWaV7+GeUKg8ecn57JWIH7IH4+DoJ3e5z8h2+f8Djlj94310N j9J+52wD3sAPBvV4zGg== X-Authority-Analysis: v=2.4 cv=S/ZMU4sP c=1 sm=1 tr=0 ts=6b0fe1bd cx=c_pps a=SvEPeNj+VMjHSW//kvnxuw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=K7EYZ_02sBeUhtAYeKQA:9 a=QEXdDO2ut3YA:10 a=Kq8ClHjjuc5pcCNDwlU0:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDAzNiBTYWx0ZWRfX0e1/kuwI35tR CC6swHuJX15SgDwGgC7C0OeLyqmfW9RfUU5Pmvd+GNlah2cN/9jqcnxQljnDJc2oOR4pbg8EbB8 L0Bi1PD+NOxl2yTSdkyo2F4gXmFAm+0= X-Proofpoint-ORIG-GUID: Uu6XTj58wQt90BYhWnGptK8fTdabnDsH X-Proofpoint-GUID: Uu6XTj58wQt90BYhWnGptK8fTdabnDsH 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 priorityscore=1501 impostorscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 malwarescore=0 phishscore=0 clxscore=1015 adultscore=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 > >