From: syzbot <syzbot+68e901d044baaea1f60c@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Forwarded: [PATCH] media: mc: Remove spurious WARN_ON in __media_pipeline_start
Date: Thu, 20 Aug 2026 11:21:27 -0700 [thread overview]
Message-ID: <6a8745a7.ae6ddae5.3da009.001d.GAE@google.com> (raw)
In-Reply-To: <6a73ceda.5aeeccc9.207e63.0007.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [PATCH] media: mc: Remove spurious WARN_ON in __media_pipeline_start
Author: niharikakhare2101@gmail.com
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3eb40771c00a8488fa6ed2cc1fe203477908bf38
Reported-by: syzbot+68e901d044baaea1f60c@syzkaller.appspotmail.com
Signed-off-by: Niharika Khare <niharikakhare2101@gmail.com>
---
drivers/media/mc/mc-entity.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/drivers/media/mc/mc-entity.c b/drivers/media/mc/mc-entity.c
index 3fa0bc687851..8e4e941381d9 100644
--- a/drivers/media/mc/mc-entity.c
+++ b/drivers/media/mc/mc-entity.c
@@ -779,11 +779,17 @@ __must_check int __media_pipeline_start(struct media_pad *origin,
lockdep_assert_held(&mdev->graph_mutex);
/*
- * If the pad is already part of a pipeline, that pipeline must be the
- * same as the pipe given to media_pipeline_start().
+ * If the pad is attached to a different pipeline than the one passed on
+ * to media_pipeline_start(), the pad must wait for the ongoing session
+ * on this previous pipeline to complete before it starts a new session.
+ * The request for starting the pipeline, although valid, cannot be
+ * served until the ongoing request finishes.
*/
- if (WARN_ON(origin->pipe && origin->pipe != pipe))
- return -EINVAL;
+ if (origin->pipe && origin->pipe != pipe) {
+ dev_dbg(mdev->dev, "Failed to start pipeline: pad '%s':%u busy\n",
+ origin->entity->name, origin->index);
+ return -EBUSY;
+ }
/*
* If the pipeline has already been started, it is guaranteed to be
--
2.53.0
prev parent reply other threads:[~2026-08-20 18:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 0:01 [syzbot] [media?] WARNING " syzbot
2026-08-20 18:21 ` syzbot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6a8745a7.ae6ddae5.3da009.001d.GAE@google.com \
--to=syzbot+68e901d044baaea1f60c@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®