From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0767A3815E1 for ; Thu, 20 Aug 2026 18:21:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787250089; cv=none; b=YPz7JzaaX1p0V5sVxuh7x7R9UdD0TeaCGje49C4rQBqe/Q4BQMhfH89vmfNVpD3dJwNBAbuLvpbo+tXrvIvBEtm5TilkFNOoA6QpgCabIrq77X5N9RSAxfzAtKO8fT/ikYT0sO75q3UF4Yamn+j0COM+ufXOx/mdYv9xK8XR6AM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787250089; c=relaxed/simple; bh=c0BWdeL09VHzOjyoGdrVoJHobeeD+rJntPjzlLkjRjQ=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=hIk9wM4ouGdE1BZKLuNQqCiNHJCuFgy+If1lrTTM/5Io5nydKz9q8nBtcokz1KhQ3VmQz7z2pVqgki6synRAwdLZUYklQayPaI8X+ahIx8t8+X3VFetu0X4VmpHKxzGAfcBG0JQgpP0gepHONtrQhPYhyw4SPnSpvHBOd3lkSJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.210.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-7ee4eec47bbso234993a34.3 for ; Thu, 20 Aug 2026 11:21:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787250087; x=1787854887; h=content-type:to:from:subject:message-id:in-reply-to:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=5zdzn3yVfp99vZTnZ5akGgkRNQTt+bqbUwEkGaaQ+Tw=; b=ZP8WIvEQBRl4fsr2g7aa93S3Xym4IMwilMpVmSe7oF5ex7gME5ezVngP1aXMJSemey yGP6gENlbpJ2lL3dZKvVWR23seh4PwQ6SzP50w4zxJ3NxP5HsKRH/AVLe8KqV+6HaFOq 1aXsiHr0Zr0y6vDbVbyRnmrHCBrMNlukVjunGDOW5UifsAYK8g2gGk0llPY3lZMhM4sA xPYkTHoNyXUrzoWDIXot3/iyBzDbzTBEwBdfwaV6sCDug5woo+6Amk58IpPnyhKFGK62 rt8b86+5WQf4D89y6frRqlHbS0ny1MzK8cFmJhKkObxD99OTcQXBA+DLMgENTLZHo1dT KLAw== X-Gm-Message-State: AOJu0YxY88hkDNbQmoonN9uBbQVPGCXg1GfD3g9oYYbVYPQ64BmIksg0 WJmldTlu4c7J8z+Iqc4fJ0Gn/+2KE0y+IAC0umB0aETTdTzV9mmG2HPx6QgK8rTnGhTJgfHkp2h 8qdzjdE6jUnLpxcpr3i9qq+L4N1BW/lmKQi6h2DXebzoEW6E4Ca7UlnxjrVw= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:a505:10b0:69e:98c0:4bd6 with SMTP id 006d021491bc7-6b1591cf25amr595912eaf.1.1787250087060; Thu, 20 Aug 2026 11:21:27 -0700 (PDT) Date: Thu, 20 Aug 2026 11:21:27 -0700 In-Reply-To: <6a73ceda.5aeeccc9.207e63.0007.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a8745a7.ae6ddae5.3da009.001d.GAE@google.com> Subject: Forwarded: [PATCH] media: mc: Remove spurious WARN_ON in __media_pipeline_start From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 --- 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