From patchwork Thu May 2 11:38:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 13651636 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B3FE442044 for ; Thu, 2 May 2024 11:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714650006; cv=none; b=Wy1Tdp4zoZ7Uq/YWKJWPS/ENfhMRW5Jf+QQRtjp9eUKt5xWo7ywfQuWmmpjebI1Id4YwSD7EOXFADf4SMwbTIr2Lsh2/HuTKQEyqu0VsGw5rE8xWis6ovaOaOQEJPMRMqjrI9ZKzjfwHhTrHb5J4h1HCgubGwr2HH/J+MMUT2UU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714650006; c=relaxed/simple; bh=iYCeeKLYCKGh/77HiqdOjMFIqxLocw6S1IqnlLsB2Y8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c4rK5OTcaNmr0hvvb7SUPVlp4OmEntGLbYjtYbJIjIeitCVd2OySRI4X2I5O/f+LbTjW2RMSiKI60z/Ze67yyB3U5y1T24O6g9VcrJHqO0rJYxXmIxltjvPt5bIONaPUz+LVR0fthVQu9frn7xrBBTL+o7vf6+dVUoion+mwpbw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E98DC113CC; Thu, 2 May 2024 11:40:05 +0000 (UTC) From: Hans Verkuil To: linux-media@vger.kernel.org Cc: Yang, Chenyuan , Takashi Iwai Subject: [PATCH for v6.10 0/4] media: cec: syzkaller fixes Date: Thu, 2 May 2024 13:38:40 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Chenyuan Yang found a bunch of syzkall issues: https://lore.kernel.org/linux-media/PH7PR11MB57688E64ADE4FE82E658D86DA09EA@PH7PR11MB5768.namprd11.prod.outlook.com/ The patches in this series fix the various issues, and with these in place, it passed the syzkaller tests. Many thanks to Chenyuan for reporting this and doing all the testing, since I had a hard timing reproducing them. It took a few months to track it all down because of that. Regards, Hans Hans Verkuil (4): media: cec: cec-adap: always cancel work in cec_transmit_msg_fh media: cec: cec-api: add locking in cec_release() media: cec: core: avoid recursive cec_claim_log_addrs media: cec: core: avoid confusing "transmit timed out" message drivers/media/cec/core/cec-adap.c | 24 ++++++++++++++++++++---- drivers/media/cec/core/cec-api.c | 5 ++++- include/media/cec.h | 1 + 3 files changed, 25 insertions(+), 5 deletions(-)