Bug 1231488 - V4L: /var/log/messages WARNINGs about v4l_querycap+0x41/0x70 [videodev]
Summary: V4L: /var/log/messages WARNINGs about v4l_querycap+0x41/0x70 [videodev]
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 22
Hardware: Unspecified
OS: All
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: first=4.0.4 latest=4.1.3
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-13 21:25 UTC by John Poet
Modified: 2016-07-19 14:48 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 14:48:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Poet 2015-06-13 21:25:36 UTC
Description of problem:

Hauppauge HVR-2250 loads its firmware and then /var/log/messages shows lots of WARNINGs like:

[   23.196137] Hardware name: ASUS All Series/Z87-WS, BIOS 2004 06/05/2014
[   23.196139]  0000000000000000 000000000487260a ffff8807f9a8fc38 ffffffff81783124
[   23.196141]  0000000000000000 0000000000000000 ffff8807f9a8fc78 ffffffff8109c66a
[   23.196142]  ffff8807fa5e49c0 ffff8807f9a8fd90 0000000000000000 ffffffffa0445140
[   23.196143] Call Trace:
[   23.196148]  [<ffffffff81783124>] dump_stack+0x45/0x57
[   23.196151]  [<ffffffff8109c66a>] warn_slowpath_common+0x8a/0xc0
[   23.196153]  [<ffffffff8109c79a>] warn_slowpath_null+0x1a/0x20
[   23.196158]  [<ffffffffa042d341>] v4l_querycap+0x41/0x70 [videodev]
[   23.196162]  [<ffffffffa042dbd8>] __video_do_ioctl+0x2b8/0x340 [videodev]
[   23.196166]  [<ffffffffa042d6be>] video_usercopy+0x34e/0x590 [videodev]
[   23.196170]  [<ffffffffa042d920>] ? video_ioctl2+0x20/0x20 [videodev]
[   23.196175]  [<ffffffffa042d915>] video_ioctl2+0x15/0x20 [videodev]
[   23.196178]  [<ffffffffa0429790>] v4l2_ioctl+0x170/0x180 [videodev]
[   23.196182]  [<ffffffff81232046>] do_vfs_ioctl+0x2c6/0x4d0
[   23.196186]  [<ffffffff811409cc>] ? __audit_syscall_entry+0xac/0x100
[   23.196190]  [<ffffffff810226a5>] ? do_audit_syscall_entry+0x55/0x80
[   23.196193]  [<ffffffff812322d1>] SyS_ioctl+0x81/0xa0
[   23.196197]  [<ffffffff81789988>] ? int_check_syscall_exit_work+0x34/0x3d
[   23.196199]  [<ffffffff81789749>] system_call_fastpath+0x12/0x17
[   23.196201] ---[ end trace b00e17935728ec57 ]---

Version-Release number of selected component (if applicable):
4.0.4-303.fc22.x86_64

How reproducible:
Since kernel 3.19.0, it happens every time I boot with he HVR-2250 in the system.

Steps to Reproduce:
1. Install NXP7164-2010-03-10.1.fw firmware in /usr/lib/firmware
2. Boot with Hauppauge HVR-2250 in system

Actual results:
/var/log/messages has WARNINGs

Expected results:
/var/log/messages does not get flooded with warning.

Additional info:
This may be related to 1204390, but that ticket has been closed.

Comment 1 John Poet 2015-08-11 16:19:00 UTC
Still there with 4.1.3-201.fc22.x86_64

Aug 11 02:34:50 cobalt kernel: WARNING: CPU: 7 PID: 7009 at drivers/media/v4l2-core/v4l2-ioctl.c:1027 v4l_querycap+0x
Aug 11 02:34:50 cobalt kernel: Modules linked in: raid1 dm_crypt fuse nvidia(POE) drm nf_conntrack_netbios_ns nf_conn
Aug 11 02:34:50 cobalt kernel: tveeprom snd_hda_controller dvb_core snd_hda_codec crct10dif_pclmul crc32_pclmul v4l2_
Aug 11 02:34:50 cobalt kernel: CPU: 7 PID: 7009 Comm: plasmashell Tainted: P        W  OE   4.1.3-201.fc22.x86_64 #1
Aug 11 02:34:50 cobalt kernel: Hardware name: ASUS All Series/Z87-WS, BIOS 2004 06/05/2014
Aug 11 02:34:50 kernel: 0000000000000000 00000000d73626a9 ffff8807a9b87c18 ffffffff8179b4bd
Aug 11 02:34:50 kernel: 0000000000000000 0000000000000000 ffff8807a9b87c58 ffffffff810a163a
Aug 11 02:34:50 kernel: ffff8807fa5bd8d0 ffff8807a9b87d70 0000000000000000 ffffffffa02f3140
Aug 11 02:34:50 kernel: Call Trace:
Aug 11 02:34:50 kernel: [<ffffffff8179b4bd>] dump_stack+0x45/0x57
Aug 11 02:34:50 kernel: [<ffffffff810a163a>] warn_slowpath_common+0x8a/0xc0
Aug 11 02:34:50 kernel: [<ffffffff810a176a>] warn_slowpath_null+0x1a/0x20
Aug 11 02:34:50 kernel: [<ffffffffa02dc2d1>] v4l_querycap+0x41/0x70 [videodev]
Aug 11 02:34:50 kernel: [<ffffffffa02dcb68>] __video_do_ioctl+0x2b8/0x340 [videodev]
Aug 11 02:34:50 kernel: [<ffffffffa02dc64e>] video_usercopy+0x34e/0x590 [videodev]
Aug 11 02:34:50 kernel: [<ffffffffa02dc8b0>] ? video_ioctl2+0x20/0x20 [videodev]
Aug 11 02:34:50 kernel: [<ffffffffa02dc8a5>] video_ioctl2+0x15/0x20 [videodev]
Aug 11 02:34:50 kernel: [<ffffffffa02d86f9>] v4l2_ioctl+0xd9/0xe0 [videodev]
Aug 11 02:34:50 kernel: [<ffffffff8123fcb6>] do_vfs_ioctl+0x2c6/0x4d0
Aug 11 02:34:50 kernel: [<ffffffff8123c1df>] ? putname+0x6f/0x80
Aug 11 02:34:50 kernel: [<ffffffff8123ff41>] SyS_ioctl+0x81/0xa0
Aug 11 02:34:50 kernel: [<ffffffff817a1a6e>] system_call_fastpath+0x12/0x71
Aug 11 02:34:50 kernel: ---[ end trace c9e8083f0127a82a ]---

Comment 2 Elliott Sales de Andrade 2015-08-13 03:55:48 UTC
Also seeing a similar stack with the cx18 driver:

WARNING: CPU: 0 PID: 3182 at drivers/media/v4l2-core/v4l2-ioctl.c:1027 v4l_querycap+0x41/0x70 [videodev]()
Modules linked in: bnep bluetooth rfkill fuse xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun nf_conntrack_netbios_ns nf_conntrack_broadcast ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw cx18_alsa mxl5005s s5h1409 tuner_simple tuner_types cs5345 tuner intel_rapl iosf_mbi raid1 x86_pkg_temp_thermal coretemp kvm_intel kvm vfat iTCO_wdt fat iTCO_vendor_support snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic cx18 snd_hda_intel crct10dif_pclmul snd_oxygen
 snd_hda_controller videobuf_vmalloc crc32_pclmul tveeprom crc32c_intel snd_oxygen_lib snd_hda_codec snd_mpu401_uart snd_rawmidi snd_hda_core cx2341x snd_hwdep ghash_clmulni_intel videobuf_core dvb_core snd_seq v4l2_common snd_seq_device videodev snd_pcm joydev mei_me lpc_ich media i2c_i801 mfd_core snd_timer mei tpm_infineon snd tpm_tis shpchp soundcore soc_button_array tpm nfsd auth_rpcgss nfs_acl lockd grace sunrpc binfmt_misc hid_logitech ff_memless nouveau i915 mxm_wmi wmi ttm i2c_algo_bit drm_kms_helper serio_raw e1000e drm ptp pps_core video
CPU: 0 PID: 3182 Comm: GoogleTalkPlugi Tainted: G        W       4.1.3-201.fc22.x86_64 #1
Hardware name: Gigabyte Technology Co., Ltd. Z87-D3HP/Z87-D3HP-CF, BIOS F6 01/20/2014
 0000000000000000 00000000695c5b08 ffff88038b06fc18 ffffffff8179b4bd
 0000000000000000 0000000000000000 ffff88038b06fc58 ffffffff810a163a
 ffffffffa063ee40 ffff88038b06fd70 0000000000000000 ffffffffa0535140
Call Trace:
 [<ffffffff8179b4bd>] dump_stack+0x45/0x57
 [<ffffffff810a163a>] warn_slowpath_common+0x8a/0xc0
 [<ffffffff810a176a>] warn_slowpath_null+0x1a/0x20
 [<ffffffffa051e2d1>] v4l_querycap+0x41/0x70 [videodev]
 [<ffffffffa051eb68>] __video_do_ioctl+0x2b8/0x340 [videodev]
 [<ffffffffa051e64e>] video_usercopy+0x34e/0x590 [videodev]
 [<ffffffffa051e8b0>] ? video_ioctl2+0x20/0x20 [videodev]
 [<ffffffffa051e8a5>] video_ioctl2+0x15/0x20 [videodev]
 [<ffffffffa051a6d8>] v4l2_ioctl+0xb8/0xe0 [videodev]
 [<ffffffff8123fcb6>] do_vfs_ioctl+0x2c6/0x4d0
 [<ffffffff8123ff41>] SyS_ioctl+0x81/0xa0
 [<ffffffff810250d7>] ? syscall_trace_leave+0xc7/0x140
 [<ffffffff817a1a6e>] system_call_fastpath+0x12/0x71
---[ end trace d7b144049d3f958c ]---

Comment 3 Jason Tibbitts 2015-08-14 05:55:57 UTC
Could someone include lspci and dmesg output so folks can tell exactly what has been detected?

@John, do you still get this without the proprietary nvidia driver loaded?

@Elliott, that isn't the first warning your kernel has output that boot?  Are you getting repeated identical errors?  If not, what's the first warning your kernel shows?

Comment 4 Elliott Sales de Andrade 2015-08-14 06:07:38 UTC
Yes, it's the same error repeated. The only difference is the first one is triggered by v4l_id instead of GoogleTalkPlugin.

What parts of lspci and dmesg do you need?

Comment 5 John Poet 2015-08-14 19:13:17 UTC
I just installed 4.1.4-200.fc22.x86_64 and it looks like the problem is gone -- at least for my Hauppauge HVR-2250.

Comment 6 Jason Tibbitts 2015-08-15 05:05:31 UTC
Generally its best to send all of lspci and all of dmesg up to and including the WARNING.  I'm just helping with triage so I can't tell you what exact pieces to cut out but a kernel dev might be able to spot something useful if they have the whole thing.

Comment 7 Elliott Sales de Andrade 2015-08-18 00:13:07 UTC
Like John, the upgrade to 4.1.4-200.fc22.x86_64 also fixed the warnings for me.

Comment 8 Fedora End Of Life 2016-07-19 14:48:46 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.