Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1864234lqp; Mon, 15 Apr 2024 23:01:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVwhA06rNOOplciLvigVgU9XkJZe3UDHzQI2/qmkSA4pOj4FxGwZhFaoo0K9ar8DXF4KPUGYRFJp/wFKRhas0R6w2fB+sItUGXvv2yL8Q== X-Google-Smtp-Source: AGHT+IFidMxxZtF1V4rJ2k3MEENjD8Le5Vz3xmhUvKvUItBxWlWCRlgT/2C5k/Ik6W+aWBSrVfMX X-Received: by 2002:a05:6102:a50:b0:47a:516d:9d36 with SMTP id i16-20020a0561020a5000b0047a516d9d36mr12355452vss.14.1713247280524; Mon, 15 Apr 2024 23:01:20 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p17-20020a0cfd91000000b0069b69c9e9absi6390567qvr.414.2024.04.15.23.01.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 23:01:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@chromium.org header.s=google header.b=SvuusmyL; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-146311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2989F1C21539 for ; Tue, 16 Apr 2024 06:01:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F3FA44C81; Tue, 16 Apr 2024 06:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="SvuusmyL" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 076973B7A8 for ; Tue, 16 Apr 2024 06:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713247247; cv=none; b=rhYstp2ayRAGGs9Wm8IsPGZZPSTKnEl+522K3d8RzbyfB/U6fO65hC2sJlwtix3qMhDIRk8qwUNAOLGfLfuvKyoqHTMK9P2qx7JqHJzZ09LCwfO5VI0Ab7saHHW2q7Wxsb8WymDZD+Jb1mhlgohgKGDXNqrDLFgBk94HNuVybHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713247247; c=relaxed/simple; bh=6Q4Mc4UUTY+XifprZ9RBogRi1h4HC0xjt7twoObP0/s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=cjstA4nN2qL7A4T57Cv70vYKi4Q6ULy3hxSIaiyBW+QpkO+i8zW8Z+Sq9G9/HOI5OsCpwqARkmXdu0VRF8LXKLqBKAz9WASCaSgV2ltH8bifnfYkRHBJAmUJn2/GWJAe34s7Yc1WxB97mwQbLVhkRfudZ4k/CZFQjiNhcr6VBq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=SvuusmyL; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-516d2600569so5036052e87.0 for ; Mon, 15 Apr 2024 23:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713247240; x=1713852040; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AWmw02HrhtTxxSIbZqDzniTkSV4RbVhyH4qzSQfjqLg=; b=SvuusmyLwQpCm9wLdTDez6QOcZn6RN34CP9l4f4cu7yn33d5TWDbXVNac5jpqMVg/A ExstYLvo1Y1KqJkXHPd+lmU//fgrJtJb/bV/d8D3PBaOCh2soqc7rdloKHt66g+eyErf enL5GdCkly2HSBCYBPBM/zaJuifGEOut6xwrQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713247240; x=1713852040; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AWmw02HrhtTxxSIbZqDzniTkSV4RbVhyH4qzSQfjqLg=; b=bptGKsb8PfA5IYkl4PsQGU90Kbz/AX9X9k6IkEqPrNVZEJFzA4AjpC4S1YHa0mbqVz gCyyoaODLxeI5hmLtRn57/z65fHIBGjezmTC59FCo4WVNTjBaoOC6Xda46T5GXlVO9JQ +UeWgNMAc5J0IPUc0Tsnobxdpl2XoQPDSSZY1s/EvFOgepvwZYIkudPbD4yGcZGcoiya CLD/4O0r1kk59m2QUHrXtQVBTgXkEmneEweDkxtHfK+bXf4nImPrLnNV+jtrXBz46Nh0 7NkjPkwCzsk9V6ev3abyq6fw59k/PArDUVyEnj0+WsaEpT9iW/A8UK53kVCC30lc16vx +ymA== X-Gm-Message-State: AOJu0Yy6bba5Razz4prnRLl2sR18ajlV93VELd+KJGb2xZKScR0FvjQa 37pcZry93cXuA7hBxTV1IgpvoVpm6uZdUDYirMJzpXkNy/aVjnnvoTmWjP8RcQPr+fnCYOil7m3 JnQ== X-Received: by 2002:a05:6512:3281:b0:518:b4a3:dee1 with SMTP id p1-20020a056512328100b00518b4a3dee1mr6249783lfe.66.1713247240037; Mon, 15 Apr 2024 23:00:40 -0700 (PDT) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com. [209.85.221.44]) by smtp.gmail.com with ESMTPSA id r6-20020aa7cb86000000b0056e3707323bsm5636332edt.97.2024.04.15.23.00.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Apr 2024 23:00:39 -0700 (PDT) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-347e635b1fcso1045523f8f.1 for ; Mon, 15 Apr 2024 23:00:39 -0700 (PDT) X-Received: by 2002:a5d:6049:0:b0:347:5386:e051 with SMTP id j9-20020a5d6049000000b003475386e051mr4992831wrt.35.1713247238064; Mon, 15 Apr 2024 23:00:38 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <0000000000008cabee0614a97e81@google.com> In-Reply-To: <0000000000008cabee0614a97e81@google.com> From: Tomasz Figa Date: Tue, 16 Apr 2024 15:00:21 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [syzbot] [media?] WARNING in call_s_stream To: syzbot , Shuah Khan , Kieran Bingham Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@kernel.org, syzkaller-bugs@googlegroups.com, Laurent Pinchart , Sakari Ailus , Hans Verkuil Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 28, 2024 at 4:34=E2=80=AFAM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: 480e035fc4c7 Merge tag 'drm-next-2024-03-13' of https://g= i.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=3D141370b118000= 0 > kernel config: https://syzkaller.appspot.com/x/.config?x=3D1e5b814e91787= 669 > dashboard link: https://syzkaller.appspot.com/bug?extid=3D5bcd7c809d365e1= 4c4df > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Deb= ian) 2.40 > > Unfortunately, I don't have any reproducer for this issue yet. > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/5f73b6ef963d/dis= k-480e035f.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/46c949396aad/vmlinu= x-480e035f.xz > kernel image: https://storage.googleapis.com/syzbot-assets/e3b4d0f5a5f8/b= zImage-480e035f.xz > > IMPORTANT: if you fix the issue, please add the following tag to the comm= it: > Reported-by: syzbot+5bcd7c809d365e14c4df@syzkaller.appspotmail.com > > vimc vimc.0: subdev_call error Scaler > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 7323 at drivers/media/v4l2-core/v4l2-subdev.c:412 ca= ll_s_stream+0x1f5/0x220 drivers/media/v4l2-core/v4l2-subdev.c:412 Looks like vimc is trying to stop an already stopped subdev and a warning was added by commit 009905ec50433 ("media: v4l2-subdev: Document and enforce .s_stream() requirements") to catch it. Shuah, Kieran, could you help with this? Also CC Laurent, Sakari and Hans who added the warning. Best regards, Tomasz > > Modules linked in: > CPU: 1 PID: 7323 Comm: syz-executor.4 Not tainted 6.8.0-syzkaller-08073-g= 480e035fc4c7 #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS G= oogle 02/29/2024 > RIP: 0010:call_s_stream+0x1f5/0x220 drivers/media/v4l2-core/v4l2-subdev.c= :412 > Code: c1 e8 03 80 3c 28 00 74 08 4c 89 ff e8 a4 79 4c fa 49 8b 3f 48 c7 c= 6 a0 5a 64 8c 89 da e8 03 d0 c7 03 eb 9e e8 6c 2a e9 f9 90 <0f> 0b 90 eb b0= 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c ca fe ff ff > RSP: 0018:ffffc9000939f880 EFLAGS: 00010293 > RAX: ffffffff87abcae4 RBX: 0000000000000000 RCX: ffff88801ee13c00 > RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 > RBP: 0000000000000001 R08: ffffffff87abc951 R09: 1ffff92001273e78 > R10: dffffc0000000000 R11: ffffffff87abc8f0 R12: ffff888024a6c190 > R13: 0000000000000000 R14: 1ffff1100494d832 R15: ffff888024a6c020 > FS: 00007ff8da9646c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000= 000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007f3e3ed79198 CR3: 0000000049c48000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > vimc_streamer_pipeline_terminate+0x219/0x360 drivers/media/test-drivers/= vimc/vimc-streamer.c:62 > vimc_streamer_s_stream+0x69f/0x800 drivers/media/test-drivers/vimc/vimc-= streamer.c:203 > vimc_capture_start_streaming+0x230/0x440 drivers/media/test-drivers/vimc= /vimc-capture.c:255 > vb2_start_streaming+0x12e/0x510 drivers/media/common/videobuf2/videobuf2= -core.c:1676 > vb2_core_qbuf+0x87d/0x13b0 drivers/media/common/videobuf2/videobuf2-core= c:1850 > vb2_qbuf+0x31b/0x3b0 drivers/media/common/videobuf2/videobuf2-v4l2.c:827 > __video_do_ioctl+0xc26/0xde0 drivers/media/v4l2-core/v4l2-ioctl.c:3049 > video_usercopy+0x899/0x1180 drivers/media/v4l2-core/v4l2-ioctl.c:3390 > v4l2_ioctl+0x18c/0x1e0 drivers/media/v4l2-core/v4l2-dev.c:364 > vfs_ioctl fs/ioctl.c:51 [inline] > __do_sys_ioctl fs/ioctl.c:904 [inline] > __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:890 > do_syscall_64+0xfb/0x240 > entry_SYSCALL_64_after_hwframe+0x6d/0x75 > RIP: 0033:0x7ff8d9c7dda9 > Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f= 7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff= ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007ff8da9640c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 > RAX: ffffffffffffffda RBX: 00007ff8d9dac050 RCX: 00007ff8d9c7dda9 > RDX: 00000000200000c0 RSI: 00000000c058560f RDI: 0000000000000003 > RBP: 00007ff8d9cca47a R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 > R13: 000000000000006e R14: 00007ff8d9dac050 R15: 00007ff8d9ecfa48 > > > > --- > 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 syzkaller@googlegroups.com. > > 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 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 >