The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: syzbot <syzbot+2302c5dc59995fbb8089@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Forwarded: Re: [syzbot] [media?] INFO: trying to register non-static key in __vb2_queue_cancel
Date: Thu, 16 Jul 2026 04:24:48 -0700	[thread overview]
Message-ID: <6a58bf80.577457d1.8bd2.001f.GAE@google.com> (raw)
In-Reply-To: <6a56fb92.c90005c7.37d349.003c.GAE@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: Re: [syzbot] [media?] INFO: trying to register non-static key in __vb2_queue_cancel
Author: gautambhadori9@gmail.com

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
cc2b5f627e8ccbae1188ef2d8be3e451d7f933a5
diff --git a/drivers/media/usb/em28xx/em28xx-video.c
b/drivers/media/usb/em28xx/em28xx-video.c
index c418add65b..d93f1b5049 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -1410,6 +1410,9 @@ static int em28xx_vb2_setup(struct em28xx *dev)
  if (rc < 0)
  return rc;

+ if (!em28xx_vbi_supported(dev))
+ return 0;
+
  /* Setup Videobuf2 for VBI capture */
  q = &v4l2->vb_vbiq;
  q->type = V4L2_BUF_TYPE_VBI_CAPTURE;
@@ -2416,7 +2419,7 @@ static int em28xx_v4l2_fini(struct em28xx *dev)
  if (video_is_registered(&v4l2->radio_dev)) {
  dev_info(&dev->intf->dev, "V4L2 device %s deregistered\n",
  video_device_node_name(&v4l2->radio_dev));
- vb2_video_unregister_device(&v4l2->radio_dev);
+ video_unregister_device(&v4l2->radio_dev);
  }
  if (video_is_registered(&v4l2->vbi_dev)) {
  dev_info(&dev->intf->dev, "V4L2 device %s deregistered\n",
@@ -2954,6 +2957,7 @@ static int em28xx_v4l2_init(struct em28xx *dev)
  mutex_init(&v4l2->vb_vbi_queue_lock);
  v4l2->vdev.queue = &v4l2->vb_vidq;
  v4l2->vdev.queue->lock = &v4l2->vb_queue_lock;
+ v4l2->vb_vbiq.lock = &v4l2->vb_vbi_queue_lock;
  v4l2->vdev.device_caps = V4L2_CAP_READWRITE | V4L2_CAP_VIDEO_CAPTURE |
  V4L2_CAP_STREAMING;
  if (dev->int_audio_type != EM28XX_INT_AUDIO_NONE)
@@ -2983,6 +2987,11 @@ static int em28xx_v4l2_init(struct em28xx *dev)
  if (dev->chip_id == CHIP_ID_EM2828X || dev->board.decoder == EM28XX_BUILTIN)
  v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_ENUM_FRAMESIZES);

+ /* Initialize the queues before registering devices that reference them. */
+ ret = em28xx_vb2_setup(dev);
+ if (ret)
+ goto unregister_dev;
+
  /* register v4l2 video video_device */
  ret = video_register_device(&v4l2->vdev, VFL_TYPE_VIDEO,
      video_nr[dev->devno]);
@@ -3068,9 +3077,6 @@ static int em28xx_v4l2_init(struct em28xx *dev)
  /* Save some power by putting tuner to sleep */
  v4l2_device_call_all(&v4l2->v4l2_dev, 0, tuner, standby);

- /* initialize videobuf2 stuff */
- em28xx_vb2_setup(dev);
-
  dev_info(&dev->intf->dev,
  "V4L2 extension successfully initialized\n");

@@ -3082,7 +3088,7 @@ static int em28xx_v4l2_init(struct em28xx *dev)
  dev_info(&dev->intf->dev,
  "V4L2 device %s deregistered\n",
  video_device_node_name(&v4l2->radio_dev));
- vb2_video_unregister_device(&v4l2->radio_dev);
+ video_unregister_device(&v4l2->radio_dev);
  }
  if (video_is_registered(&v4l2->vbi_dev)) {
  dev_info(&dev->intf->dev,

      parent reply	other threads:[~2026-07-16 11:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-15  3:16 [syzbot] [media?] INFO: trying to register non-static key in __vb2_queue_cancel syzbot
2026-07-15  9:15 ` Forwarded: " syzbot
2026-07-15 12:17 ` syzbot
2026-07-15 14:15 ` syzbot
2026-07-15 15:36 ` syzbot
2026-07-16  4:35 ` syzbot
2026-07-16 11:24 ` 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=6a58bf80.577457d1.8bd2.001f.GAE@google.com \
    --to=syzbot+2302c5dc59995fbb8089@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