electrified / asus-wmi-sensors

Linux HWMON (lmsensors) sensors driver for various ASUS Ryzen and Threadripper motherboards
GNU General Public License v2.0
251 stars 30 forks source link

Duplicate modprobe triggers errors #16

Closed mwiercinski closed 5 years ago

mwiercinski commented 5 years ago

When you run modprobe twice the module spams dmesg with failure traces:

[ 1100.554713] ------------[ cut here ]------------ [ 1100.554716] sysfs: cannot create duplicate filename '/devices/platform/asus-wmi-sensors' [ 1100.554733] WARNING: CPU: 2 PID: 11338 at /build/linux-fkZVDM/linux-4.15.0/fs/sysfs/dir.c:31 sysfs_warn_dup+0x56/0x70 [ 1100.554734] Modules linked in: asus_wmi_sensors(OE+) xt_CHECKSUM iptable_mangle xt_tcpudp xt_comment ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack br_netfilter bridge stp llc aufs vmw_vsock_vmci_transport vsock vmw_vmci pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) cachefiles fscache xfs snd_hda_codec_hdmi nvidia_uvm(POE) nvidia_drm(POE) eeepc_wmi nvidia_modeset(POE) asus_wmi sparse_keymap video intel_wmi_thunderbolt wmi_bmof mxm_wmi nvidia(POE) intel_rapl x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek kvm_intel snd_hda_codec_generic kvm irqbypass snd_hda_intel crct10dif_pclmul snd_usb_audio snd_hda_codec crc32_pclmul [ 1100.554789] snd_hda_core snd_usbmidi_lib snd_hwdep ghash_clmulni_intel snd_pcm pcbc snd_seq_midi snd_seq_midi_event snd_rawmidi drm_kms_helper snd_seq drm snd_seq_device snd_timer aesni_intel ipmi_devintf aes_x86_64 crypto_simd glue_helper ipmi_msghandler cryptd snd fb_sys_fops intel_cstate joydev syscopyarea usb_serial_simple sysfillrect intel_rapl_perf input_leds usbserial sysimgblt soundcore mei_me ioatdma mei dca shpchp mac_hid wmi sch_fq_codel w83l786ng sunrpc hwmon_vid coretemp parport_pc ppdev lp parport binder_linux(OE) ashmem_linux(OE) ip_tables x_tables autofs4 raid10 raid0 multipath linear raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 hid_lenovo hid_logitech_hidpp hid_logitech_dj e1000e ptp pps_core uas usbhid ahci usb_storage hid libahci [ 1100.554860] CPU: 2 PID: 11338 Comm: modprobe Tainted: P W OE 4.15.0-48-generic #51-Ubuntu [ 1100.554862] Hardware name: System manufacturer System Product Name/TUF X299 MARK 2, BIOS 1503 08/03/2018 [ 1100.554865] RIP: 0010:sysfs_warn_dup+0x56/0x70 [ 1100.554867] RSP: 0018:ffffab68866eb9d0 EFLAGS: 00010282 [ 1100.554870] RAX: 0000000000000000 RBX: ffff8f223e093000 RCX: 0000000000000006 [ 1100.554872] RDX: 0000000000000007 RSI: 0000000000000082 RDI: ffff8f22af496490 [ 1100.554873] RBP: ffffab68866eb9e8 R08: 0000000000000001 R09: 0000000000000642 [ 1100.554875] R10: 0000000000000001 R11: 0000000000000000 R12: ffff8f2259de9600 [ 1100.554877] R13: ffff8f22a86a8bb0 R14: ffffffff8879d800 R15: 0000000000000000 [ 1100.554879] FS: 00007f705190d540(0000) GS:ffff8f22af480000(0000) knlGS:0000000000000000 [ 1100.554881] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1100.554883] CR2: 00007fff95af4fb8 CR3: 0000000bfde9c001 CR4: 00000000003606e0 [ 1100.554885] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1100.554887] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1100.554888] Call Trace: [ 1100.554894] sysfs_create_dir_ns+0xb0/0xd0 [ 1100.554901] kobject_add_internal+0xac/0x2b0 [ 1100.554905] kobject_add+0x71/0xd0 [ 1100.554911] ? device_private_init+0x23/0x70 [ 1100.554915] device_add+0x12c/0x640 [ 1100.554919] platform_device_add+0x10d/0x270 [ 1100.554923] platform_create_bundle+0x98/0xc0 [ 1100.554927] ? asus_wmi_hwmon_is_visible+0x30/0x30 [asus_wmi_sensors] [ 1100.554930] ? 0xffffffffc0851000 [ 1100.554935] asus_wmi_init+0x47/0x1000 [asus_wmi_sensors] [ 1100.554941] ? wake_up+0x13/0x20 [ 1100.554947] ? netlink_broadcast_filtered+0x14c/0x3c0 [ 1100.554951] ? vunmap_page_range+0x246/0x3e0 [ 1100.554953] ? 0xffffffffc0851000 [ 1100.554959] do_one_initcall+0x52/0x19f [ 1100.554964] ? _cond_resched+0x19/0x40 [ 1100.554969] ? kmem_cache_alloc_trace+0x14e/0x1b0 [ 1100.554974] ? do_init_module+0x27/0x209 [ 1100.554978] do_init_module+0x5f/0x209 [ 1100.554982] load_module+0x191e/0x1f10 [ 1100.554988] ? ima_post_read_file+0x96/0xa0 [ 1100.554993] SYSC_finit_module+0xfc/0x120 [ 1100.554996] ? SYSC_finit_module+0xfc/0x120 [ 1100.555001] SyS_finit_module+0xe/0x10 [ 1100.555006] do_syscall_64+0x73/0x130 [ 1100.555009] entry_SYSCALL_64_after_hwframe+0x3d/0xa2 [ 1100.555011] RIP: 0033:0x7f7051440839 [ 1100.555013] RSP: 002b:00007fff95af8218 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 1100.555016] RAX: ffffffffffffffda RBX: 0000564a1cbd6e20 RCX: 00007f7051440839 [ 1100.555017] RDX: 0000000000000000 RSI: 0000564a1aa99d2e RDI: 0000000000000003 [ 1100.555019] RBP: 0000564a1aa99d2e R08: 0000000000000000 R09: 0000000000000000 [ 1100.555021] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 [ 1100.555022] R13: 0000564a1cbd6660 R14: 0000000000040000 R15: 0000564a1cbd6e20 [ 1100.555024] Code: 85 c0 48 89 c3 74 12 b9 00 10 00 00 48 89 c2 31 f6 4c 89 ef e8 ec c4 ff ff 4c 89 e2 48 89 de 48 c7 c7 a8 ce 2f 88 e8 5a 5e d8 ff <0f> 0b 48 89 df e8 90 03 f4 ff 5b 41 5c 41 5d 5d c3 66 0f 1f 84 [ 1100.555081] ---[ end trace 435a556a4aa1ecdc ]---

mwiercinski commented 5 years ago

Please disregard, this may be leftover from my attempt to add a motherboard.