[Slackbuilds-users] Huge 4.4.x Kernel + SBo hwinfo = Kernel Oops on scsi_tape
Konrad J Hambrick
kjhambrick at gmail.com
Sun Aug 14 14:23:45 UTC 2016
All --
I am running Slackware64 + Multilib with the Huge 4.4.17 Kernel from
Slackware64 Current.
I installed libx86emu-1.4 and hwinfo-20.1 from the 14.2 SBo Repository and
tried out hwinfo.
When hwinfo tries to load the "st" module, I get the attached Kernel Oops.
I checked the hwinfo man page and I don't see where I can blacklist or
exclude modules from hwinfo but it may be I simply don't understand what I
am reading.
But IMO, a userland program shouldn't cause a Kernel Oops :)
I also tried Kernels Huge 4.4.15 ( from Current ) and Huge 4.4.14 ( from
14.2 ) and I still see the same Oops in /var/log/syslog.
I am not sure where to report this and I don't know whether it's a Kernel
Bug or a bug in hwinfo or if it's because I am running the huge kernel, but
I did find a 'work-around': Don't invoke load_module(hd_data, "st") in
src/hd/block.c
Attached is a patch for hwinfo.SlackBuild and an ugly patch for
src/hd/block.c
Maybe Y'All know the REAL cause of the bug ?
Thanks for all the good work you're doing for Slackware !
-- kjh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20160814/63a03ab2/attachment-0001.html>
-------------- next part --------------
Aug 14 05:43:35 kjhlt6 kernel: [161792.006542] ------------[ cut here ]------------
Aug 14 05:43:35 kjhlt6 kernel: [161792.006546] WARNING: CPU: 4 PID: 21349 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x62/0x80()
Aug 14 05:43:35 kjhlt6 kernel: [161792.006547] sysfs: cannot create duplicate filename '/class/scsi_tape'
Aug 14 05:43:35 kjhlt6 kernel: [161792.006548] Modules linked in: st(+) lp parport_pc sg rfcomm i2c_dev vmnet(O) ppdev parport vmw_vsock_vmci_transport vsock vmw_vmci vmmon(O) xt_nat xt_limit xt_pkttype xt_tcpudp xt_conntrack nf_log_ipv4 nf_log_common xt_LOG iptable_mangle iptable_nat nf_nat_ipv4 iptable_filter appletalk ax25 ipx p8023 p8022 psnap llc ipv6 nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ip_tables x_tables cmac bnep fuse snd_hda_codec_realtek snd_hda_codec_generic uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core i915 btusb v4l2_common btrtl videodev joydev mxm_wmi coretemp hwmon intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul crc32c_intel snd_hda_codec_hdmi evdev psmouse serio_raw nvidia_drm(PO) nvidia_modeset(PO) nvidia(PO) ath10k_pci ath10k_core drm_kms_helper ath drm intel_gtt mac80211 i2c_algo_bit agpgart fb_sys_fops snd_hda_intel syscopyarea sysfillrect
Aug 14 05:43:35 kjhlt6 kernel: [161792.006591] CPU: 4 PID: 21349 Comm: modprobe Tainted: P W O 4.4.17 #2
Aug 14 05:43:35 kjhlt6 kernel: [161792.006593] Hardware name: Notebook P7xxDM(-G) /P7xxDM(-G) , BIOS 1.05.03LS1 09/23/2015
Aug 14 05:43:35 kjhlt6 kernel: [161792.006594] 0000000000000000 ffff880f22b67b10 ffffffff8160dda8 ffff880f22b67b58
Aug 14 05:43:35 kjhlt6 kernel: [161792.006596] ffffffff8215771a ffff880f22b67b48 ffffffff8108d6e2 ffff880ad3cea000
Aug 14 05:43:35 kjhlt6 kernel: [161792.006597] ffff88107e5c4e40 ffff8810c6115618 ffffffffc0100000 0000000000000001
Aug 14 05:43:35 kjhlt6 kernel: [161792.006599] Call Trace:
Aug 14 05:43:35 kjhlt6 kernel: [161792.006603] [<ffffffff8160dda8>] dump_stack+0x4d/0x65
Aug 14 05:43:35 kjhlt6 kernel: [161792.006606] [<ffffffff8108d6e2>] warn_slowpath_common+0x82/0xc0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006608] [<ffffffffc0100000>] ? 0xffffffffc0100000
Aug 14 05:43:35 kjhlt6 kernel: [161792.006609] [<ffffffff8108d76c>] warn_slowpath_fmt+0x4c/0x50
Aug 14 05:43:35 kjhlt6 kernel: [161792.006611] [<ffffffff81238248>] ? kernfs_path+0x48/0x60
Aug 14 05:43:35 kjhlt6 kernel: [161792.006614] [<ffffffff8123b692>] sysfs_warn_dup+0x62/0x80
Aug 14 05:43:35 kjhlt6 kernel: [161792.006616] [<ffffffff8123b777>] sysfs_create_dir_ns+0x77/0x90
Aug 14 05:43:35 kjhlt6 kernel: [161792.006619] [<ffffffff8161022e>] kobject_add_internal+0x9e/0x2d0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006621] [<ffffffff8161083e>] ? kobject_set_name+0x3e/0x40
Aug 14 05:43:35 kjhlt6 kernel: [161792.006622] [<ffffffffc0100000>] ? 0xffffffffc0100000
Aug 14 05:43:35 kjhlt6 kernel: [161792.006624] [<ffffffff816104a6>] kset_register+0x46/0x70
Aug 14 05:43:35 kjhlt6 kernel: [161792.006628] [<ffffffff817254be>] __class_register+0xce/0x1f0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006629] [<ffffffffc0100000>] ? 0xffffffffc0100000
Aug 14 05:43:35 kjhlt6 kernel: [161792.006633] [<ffffffffc0100084>] init_st+0x84/0xfd [st]
Aug 14 05:43:35 kjhlt6 kernel: [161792.006636] [<ffffffff810003c9>] do_one_initcall+0x99/0x1e0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006639] [<ffffffff8119d10d>] ? free_vmap_area_noflush+0x3d/0x80
Aug 14 05:43:35 kjhlt6 kernel: [161792.006641] [<ffffffff811ab5cb>] ? kmem_cache_alloc_trace+0x18b/0x1f0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006645] [<ffffffff81162aae>] do_init_module+0x5f/0x1c3
Aug 14 05:43:35 kjhlt6 kernel: [161792.006648] [<ffffffff81107be5>] load_module+0x1c95/0x2270
Aug 14 05:43:35 kjhlt6 kernel: [161792.006650] [<ffffffff81104a10>] ? __symbol_put+0x50/0x50
Aug 14 05:43:35 kjhlt6 kernel: [161792.006653] [<ffffffff811c6be1>] ? kernel_read+0x41/0x60
Aug 14 05:43:35 kjhlt6 kernel: [161792.006656] [<ffffffff8110837f>] SYSC_finit_module+0x8f/0xa0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006659] [<ffffffff811083ae>] SyS_finit_module+0xe/0x10
Aug 14 05:43:35 kjhlt6 kernel: [161792.006661] [<ffffffff81c6fd1b>] entry_SYSCALL_64_fastpath+0x16/0x6a
Aug 14 05:43:35 kjhlt6 kernel: [161792.006663] ---[ end trace c6f0df8827b5a76b ]---
Aug 14 05:43:35 kjhlt6 kernel: [161792.006665] ------------[ cut here ]------------
Aug 14 05:43:35 kjhlt6 kernel: [161792.006668] WARNING: CPU: 4 PID: 21349 at lib/kobject.c:240 kobject_add_internal+0x266/0x2d0()
Aug 14 05:43:35 kjhlt6 kernel: [161792.006669] kobject_add_internal failed for scsi_tape with -EEXIST, don't try to register things with the same name in the same directory.
Aug 14 05:43:35 kjhlt6 kernel: [161792.006670] Modules linked in: st(+) lp parport_pc sg rfcomm i2c_dev vmnet(O) ppdev parport vmw_vsock_vmci_transport vsock vmw_vmci vmmon(O) xt_nat xt_limit xt_pkttype xt_tcpudp xt_conntrack nf_log_ipv4 nf_log_common xt_LOG iptable_mangle iptable_nat nf_nat_ipv4 iptable_filter appletalk ax25 ipx p8023 p8022 psnap llc ipv6 nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ip_tables x_tables cmac bnep fuse snd_hda_codec_realtek snd_hda_codec_generic uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core i915 btusb v4l2_common btrtl videodev joydev mxm_wmi coretemp hwmon intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul crc32c_intel snd_hda_codec_hdmi evdev psmouse serio_raw nvidia_drm(PO) nvidia_modeset(PO) nvidia(PO) ath10k_pci ath10k_core drm_kms_helper ath drm intel_gtt mac80211 i2c_algo_bit agpgart fb_sys_fops snd_hda_intel syscopyarea sysfillrect
Aug 14 05:43:35 kjhlt6 kernel: [161792.006720] CPU: 4 PID: 21349 Comm: modprobe Tainted: P W O 4.4.17 #2
Aug 14 05:43:35 kjhlt6 kernel: [161792.006721] Hardware name: Notebook P7xxDM(-G) /P7xxDM(-G) , BIOS 1.05.03LS1 09/23/2015
Aug 14 05:43:35 kjhlt6 kernel: [161792.006722] 0000000000000000 ffff880f22b67b60 ffffffff8160dda8 ffff880f22b67ba8
Aug 14 05:43:35 kjhlt6 kernel: [161792.006724] ffffffff82169d08 ffff880f22b67b98 ffffffff8108d6e2 ffff880f22843c18
Aug 14 05:43:35 kjhlt6 kernel: [161792.006725] 00000000ffffffef ffff8810c6038a38 ffffffffc0100000 0000000000000001
Aug 14 05:43:35 kjhlt6 kernel: [161792.006727] Call Trace:
Aug 14 05:43:35 kjhlt6 kernel: [161792.006729] [<ffffffff8160dda8>] dump_stack+0x4d/0x65
Aug 14 05:43:35 kjhlt6 kernel: [161792.006732] [<ffffffff8108d6e2>] warn_slowpath_common+0x82/0xc0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006733] [<ffffffffc0100000>] ? 0xffffffffc0100000
Aug 14 05:43:35 kjhlt6 kernel: [161792.006735] [<ffffffff8108d76c>] warn_slowpath_fmt+0x4c/0x50
Aug 14 05:43:35 kjhlt6 kernel: [161792.006737] [<ffffffff8123b69a>] ? sysfs_warn_dup+0x6a/0x80
Aug 14 05:43:35 kjhlt6 kernel: [161792.006738] [<ffffffff816103f6>] kobject_add_internal+0x266/0x2d0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006740] [<ffffffff8161083e>] ? kobject_set_name+0x3e/0x40
Aug 14 05:43:35 kjhlt6 kernel: [161792.006741] [<ffffffffc0100000>] ? 0xffffffffc0100000
Aug 14 05:43:35 kjhlt6 kernel: [161792.006742] [<ffffffff816104a6>] kset_register+0x46/0x70
Aug 14 05:43:35 kjhlt6 kernel: [161792.006744] [<ffffffff817254be>] __class_register+0xce/0x1f0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006745] [<ffffffffc0100000>] ? 0xffffffffc0100000
Aug 14 05:43:35 kjhlt6 kernel: [161792.006747] [<ffffffffc0100084>] init_st+0x84/0xfd [st]
Aug 14 05:43:35 kjhlt6 kernel: [161792.006749] [<ffffffff810003c9>] do_one_initcall+0x99/0x1e0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006751] [<ffffffff8119d10d>] ? free_vmap_area_noflush+0x3d/0x80
Aug 14 05:43:35 kjhlt6 kernel: [161792.006752] [<ffffffff811ab5cb>] ? kmem_cache_alloc_trace+0x18b/0x1f0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006754] [<ffffffff81162aae>] do_init_module+0x5f/0x1c3
Aug 14 05:43:35 kjhlt6 kernel: [161792.006756] [<ffffffff81107be5>] load_module+0x1c95/0x2270
Aug 14 05:43:35 kjhlt6 kernel: [161792.006757] [<ffffffff81104a10>] ? __symbol_put+0x50/0x50
Aug 14 05:43:35 kjhlt6 kernel: [161792.006759] [<ffffffff811c6be1>] ? kernel_read+0x41/0x60
Aug 14 05:43:35 kjhlt6 kernel: [161792.006761] [<ffffffff8110837f>] SYSC_finit_module+0x8f/0xa0
Aug 14 05:43:35 kjhlt6 kernel: [161792.006762] [<ffffffff811083ae>] SyS_finit_module+0xe/0x10
Aug 14 05:43:35 kjhlt6 kernel: [161792.006764] [<ffffffff81c6fd1b>] entry_SYSCALL_64_fastpath+0x16/0x6a
Aug 14 05:43:35 kjhlt6 kernel: [161792.006765] ---[ end trace c6f0df8827b5a76c ]---
Aug 14 05:43:35 kjhlt6 kernel: [161792.006766] Unable register sysfs class for SCSI tapes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: block.c-module-st-patch
Type: application/octet-stream
Size: 420 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20160814/63a03ab2/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hwinfo.SlackBuild.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20160814/63a03ab2/attachment-0001.bin>
More information about the SlackBuilds-users
mailing list