LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-14-2016, 06:27 PM   #1
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Slackware64 14.2 + Multilib + hwinfo = Kernel Oops


All --

Another Post: Has anyone any experience with the new Intel z170 chipset? made me wonder which ChipSet I have in my I7 6700K Laptop.

I installed libx86emu and hwinfo from SBo and took hwinfo for a spin.

I get output from hwinfo ( but not the chipset for my MoBo that I was looking for ).

However, there is a kernel Error in /var/log/syslog ( and dmesg ) each time I run hwinfo ( one example is appended below ).

I've tried hwinfo with huge-4.4.14, huge-4.4.15 and huge-4.4.17 and all produce the same Error.

I googled the error but found nothing useful there ( one hit was here in the Slackware LQ Forum but it was coincidental ).

I was able to eliminate the Error by skipping the code in hwinfo that loads the "st" kernel module but there is something amiss here ( patches for the hwinfo.SlackBuild are attached ).

I posted more-or-less the same patches to the SlackBuild mailing list and copied the maintainer but this is either a hwinfo error or perhaps a kernel error or maybe it's because I am ( still ) running huge kernels ???

Does anyone have any ideas ?

Thanks.

-- kjh
Code:
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
Attached Files
File Type: txt block.c-module-st-patch.txt (420 Bytes, 10 views)
File Type: txt hwinfo.SlackBuild.patch.txt (539 Bytes, 7 views)
 
Old 08-15-2016, 05:40 AM   #2
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
All --

After an afternoon of RTFM sessions and messing with hwinfo on my System running the Huge Kernel, I've concluded that there is a bug in the "st" kernel code.

At least it behaves differently than other modules when you run `modprobe` where the module is already loaded or if it is compiled-in as with the Huge Kernel.

The workaround I finally applied to hwinfo involved creating /etc/modprobe.d/disable_scsi_tape.conf ( attached ) and then applying a slight change to the hwinfo source code and patching the hwinfo.SlackBuild to apply the patch.

What I actually changed was the modprobe command in the hwinfo src/hd/block.c source code so that it passes the modprobe -b flag.

See attached files.

Do Not Install /etc/modprobe.d/disable_scsi_tape.conf if you DO have a SCSI Tape Drive !

You can demonstrate the change I made to the hwinfo block.c source with the Huge Kernel where you've got no SCSI Tape Drive like so:

Code:
# NOTE:  do not install disable_scsi_tape.conf if you DO have a SCSI Tape Drive !
#
# Otherwise, install /etc/modprobe.d/disable_scsi_tape.conf as root
#
# save the attached modprobe.d/disable_scsi_tape.conf.txt someplace handy ( /path/to/saved/ below ).

su -              # or sudo to log in as root

man modprobe      # note the -b flag

# install the "st" blacklist file like this:

cp -p /path/to/saved/disable_scsi_tape.conf.txt /etc/modprobe.d/disable_scsi_tape.conf
chown root:root /etc/modprobe.d/disable_scsi_tape.conf
chmod 644       /etc/modprobe.d/disable_scsi_tape.conf

# The "st" Kernel is now blacklisted.  Remember that in case you go Generic and you install a SCSI Tape !

# this command will result in a Kernel Bug Dump in /etc/syslog if you're running Huge

modprobe st                             
       
# this command does NOT result in a Kernel Bug Dump, even if you're running Huge

modprobe -b st
Thanks to all who posted here ( in other threads ) and on the SlackBuilds Mailing List.

I don't really like what I've done. This seems like a Kernel Bug to me but at least hwinfo will work now without making a mess in the syslog.

-- kjh
Attached Files
File Type: txt disable_scsi_tape.conf.txt (358 Bytes, 12 views)
File Type: txt src-block.c-patch-for-st-bug.txt (357 Bytes, 9 views)
File Type: txt hwinfo.SlackBuild.patch.txt (549 Bytes, 8 views)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] mk-slack64-multilib : A tool to create slackware64+multilib tree/iso phenixia2003 Slackware 5 12-28-2012 05:42 AM
[SOLVED] Slackware64 13.37 Multilib VisionIncision Slackware 8 07-23-2012 12:59 PM
[SOLVED] Cross-compile a kernel for Slackware from Slackware64 multilib piratesmack Slackware 3 07-03-2011 07:18 AM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
[SOLVED] Custom kernel breaks Skype on Slackware64 multilib? Hangdog42 Slackware 2 10-17-2009 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration