WARNING in __media_pipeline_start
Subsystems (2)
syzbot
syzbotHello,
syzbot found the following issue on:
HEAD commit: 7235a3e71949 Merge branch 'for-next/core' into for-kernelci git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=10c0dbb9580000 kernel config: https://syzkaller.appspot.com/x/.config?x=ccf4bea59f67007 dashboard link: https://syzkaller.appspot.com/bug?extid=68e901d044baaea1f60c compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=163b7649580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13926cc6580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/fd45635beaae/disk-7235a3e7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/d7d2e6507223/vmlinux-7235a3e7.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b5b5d8de4cea/Image-7235a3e7.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
vimc link validate: Sensor A:src:640x480 (0x42474752, 0, 0, 0, 0) Raw Capture 0:snk:640x480 (0x42474752, 8, 0, 0, 0) vimc link validate: Scaler:src:640x480 (0x33424752, 8, 0, 0, 0) RGB/YUV Capture:snk:640x480 (0x33424752, 8, 0, 0, 0)
------------[ cut here ]------------ WARNING: drivers/media/mc/mc-entity.c:785 at __media_pipeline_start+0x13c4/0x17fc drivers/media/mc/mc-entity.c:785, CPU#0: syz.0.17/4920 Modules linked in: CPU: 0 UID: 0 PID: 4920 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : __media_pipeline_start+0x13c4/0x17fc drivers/media/mc/mc-entity.c:785 lr : __media_pipeline_start+0x13c4/0x17fc drivers/media/mc/mc-entity.c:785
sp : ffff800093407710
x29: ffff800093407790 x28: ffff0000cbe68a20 x27: 1fffe000197cd0e6
x26: ffff0000cbe68760 x25: 1fffe000197cd15b x24: ffff0000cbe68ad8
x23: dfff800000000000 x22: ffff0000cbabf010 x21: 0000000000000001
x20: ffff0000cbe68b10 x19: dfff800000000000 x18: 0000000000000000
x17: 0000000000000000 x16: 0000000000000000 x15: 0000000020007200
x14: 00000000ffff8000 x13: 0000000000000001 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000003 x9 : 0000000000000000 x8 : 0000000000000000 x7 : ffff8000839d6934 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000839d4f70 x2 : 0000000000000001 x1 : ffff0000c4551d40 x0 : 0000000000000000
Call trace: __media_pipeline_start+0x13c4/0x17fc drivers/media/mc/mc-entity.c:785 (P) media_pipeline_start+0x58/0x7c drivers/media/mc/mc-entity.c:924 video_device_pipeline_start+0x88/0xb4 drivers/media/v4l2-core/v4l2-dev.c:1159 vimc_capture_start_streaming+0x6c/0xec drivers/media/test-drivers/vimc/vimc-capture.c:248 vb2_start_streaming+0x114/0x4ac drivers/media/common/videobuf2/videobuf2-core.c:1783 vb2_core_streamon+0x288/0x44c drivers/media/common/videobuf2/videobuf2-core.c:2336 vb2_streamon+0x80/0xb4 drivers/media/common/videobuf2/videobuf2-v4l2.c:875 vb2_ioctl_streamon+0xb8/0xd0 drivers/media/common/videobuf2/videobuf2-v4l2.c:1118 v4l_streamon+0x64/0x94 drivers/media/v4l2-core/v4l2-ioctl.c:1965 __video_do_ioctl+0x768/0xaa8 drivers/media/v4l2-core/v4l2-ioctl.c:3133 video_usercopy+0x74c/0xe88 drivers/media/v4l2-core/v4l2-ioctl.c:3475 video_ioctl2+0x3c/0x50 drivers/media/v4l2-core/v4l2-ioctl.c:3532 v4l2_ioctl+0x148/0x18c drivers/media/v4l2-core/v4l2-dev.c:366 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:736 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:755 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:594 irq event stamp: 1910 hardirqs last enabled at (1909): [<ffff800080b9e27c>] kasan_quarantine_put+0xb4/0x1c4 mm/kasan/quarantine.c:234 hardirqs last disabled at (1910): [<ffff8000868e6198>] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:425 softirqs last enabled at (1722): [<ffff800080139980>] local_bh_enable include/linux/bottom_half.h:33 [inline] softirqs last enabled at (1722): [<ffff800080139980>] put_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:251 [inline] softirqs last enabled at (1722): [<ffff800080139980>] do_sve_acc+0x32c/0x4b8 arch/arm64/kernel/fpsimd.c:1349 softirqs last disabled at (1720): [<ffff800080139760>] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last disabled at (1720): [<ffff800080139760>] get_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:234 [inline] softirqs last disabled at (1720): [<ffff800080139760>] do_sve_acc+0x10c/0x4b8 arch/arm64/kernel/fpsimd.c:1325 ---[ end trace 0000000000000000 ]---
---
This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at [email protected].
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
syzbot
syzbotForwarded: [PATCH] media: mc: Remove spurious WARN_ON in __media_pipeline_start
For archival purposes, forwarding an incoming command email to [email protected].
For archival purposes, forwarding an incoming command email to [email protected].
***
Subject: [PATCH] media: mc: Remove spurious WARN_ON in __media_pipeline_start
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3eb40771c00a8488fa6ed2cc1fe203477908bf38
--- drivers/media/mc/mc-entity.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
drivers/media/mc/mc-entity.c +10 -4
@@ -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
Signature · 1 line
2.53.0