From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 0A187530DE5 for ; Wed, 9 Sep 2026 11:10:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788952210; cv=none; b=j+v2L1xWraAWVxtF82JjgEwwWBmuarxIgONCCDkBCIYgVM9Wd4+XYPawsTMHz8eSdUFiTwN+Xaf9ZmZaX9HPbYjM1dsak2TX2/R66XoipbmsX1FwqC5oVaT07YmRRbS2w4/aCkESAG3/gVovB1KkKuk6G+zF2SKDlEu7O9kct70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788952210; c=relaxed/simple; bh=AdYJduwpwylmuhYOhq3LnJyQ9zbXjzg0Egkjrv5lrkA=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Uutu5WpS2gMmehiNk9jnJ/gWk66krKR7V0FK/2JPjdu5FgMnG8Bvr6mMzDIardT0OLN8Mf4m9g5GjvQSJ3EY99Rcvq/komtT2Pd+7yT6piibA/sPcAmLCAuNOhu2DJVKvGbo88d3nyDtDmSJxeIwDGnB3fpBfyX2DU/zLOUBTTU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ckr7ZjZ7; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ckr7ZjZ7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E74E1F00A3A; Wed, 9 Sep 2026 11:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788952208; bh=b+1Pv4u4vQO5aPqzMrkMZeOrMOGUAeRHWiouZ8SOMtM=; h=Subject:To:Cc:From:Date; b=Ckr7ZjZ7mgboJuje/+AalLA70MPAkXl8p9BNalGPwgXg1hjlhYiiFAZlzwoxKOm6v TcLzZod9gr57EDYXRr9qPl/inUEo0q5AIGufhAwERXDTwHddYInAX+RoHy2SZb9gr7 no6v7uNcwGQX5RfLDsGpZ7O7lMpiuSSE4J//s5rY= Subject: FAILED: patch "[PATCH] media: cec: disable delayed work before freeing an" failed to apply to 5.15-stable tree To: birenpandya@gmail.com,hdanton@sina.com,hverkuil+cisco@kernel.org Cc: From: Date: Wed, 09 Sep 2026 12:58:31 +0200 Message-ID: <2026090931-relocate-ranked-438d@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x 0fbd5c2327020858c45b2d1c65775d64cdeca523 # git commit -s git send-email --to '' --in-reply-to '2026090931-relocate-ranked-438d@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 0fbd5c2327020858c45b2d1c65775d64cdeca523 Mon Sep 17 00:00:00 2001 From: Biren Pandya Date: Sun, 21 Jun 2026 10:04:37 +0530 Subject: [PATCH] media: cec: disable delayed work before freeing an interrupted transmit cec_transmit_msg_fh() drops adap->lock to wait for a blocking transmit in wait_for_completion_killable(). If that wait is interrupted by a signal, cancel_delayed_work_sync() can run before the CEC kthread arms the reply timeout via schedule_delayed_work(&data->work) in cec_transmit_done_ts(). The work is then armed after the cancel, and the data is freed with its delayed_work still pending: ODEBUG: free active (active state 0) object: ... hint: cec_wait_timeout Use disable_delayed_work_sync(): it cancels the work and disables it, so the later schedule_delayed_work() becomes a no-op and the work cannot be re-armed. The data is freed right after, so it need not be re-enabled. Fixes: 490d84f6d73c ("media: cec: forgot to cancel delayed work") Reported-by: syzbot+051024d603432b4ab395@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=051024d603432b4ab395 Suggested-by: Hillf Danton Cc: stable@vger.kernel.org Signed-off-by: Biren Pandya Signed-off-by: Hans Verkuil diff --git a/drivers/media/cec/core/cec-adap.c b/drivers/media/cec/core/cec-adap.c index a90cb84a4b4d..829ee4861bf7 100644 --- a/drivers/media/cec/core/cec-adap.c +++ b/drivers/media/cec/core/cec-adap.c @@ -965,7 +965,7 @@ int cec_transmit_msg_fh(struct cec_adapter *adap, struct cec_msg *msg, */ mutex_unlock(&adap->lock); err = wait_for_completion_killable(&data->c); - cancel_delayed_work_sync(&data->work); + disable_delayed_work_sync(&data->work); mutex_lock(&adap->lock); if (err)