[Regression] debugfs warnings when resuming from suspend on 6.7-rc5

From: Mateusz Jończyk
Date: Thu Dec 14 2023 - 16:53:17 EST


Hello,

Since upgrading to 6.7-rc kernels, I have been getting the following error
message in dmesg
while resuming from suspend:

[   83.302944] debugfs: Directory 'iwlmvm' with parent 'netdev:wlp2s0' already
present!
[   83.302963] iwlwifi 0000:02:00.0: Failed to create debugfs directory under
netdev:wlp2s0

I have placed a dump_stack() in a respective debugfs function and obtained a
stack trace (see below).

This may be connected with recent commits by Miri and Johannes:

commit c36235acb34fb ("wifi: iwlwifi: mvm: rework debugfs handling")

commit e9dd25550770a ("wifi: iwlwifi: mvm: add a per-link debugfs")

I am ready to test any patches and to investigate further.

Hardware:

02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a]
(rev 61)
        Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5010]

Old AMD AM2+ motherboard (MSI KA780G) from around 2010.

Greetings,

Mateusz

--------------------------------------------

[   48.624560] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[   48.702116] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[   48.704281] iwlwifi 0000:02:00.0: FW already configured (0) - re-configuring
[   48.706863] ACPI: \: failed to evaluate _DSM
bf0212f2-788f-c64d-a5b3-1f738e285ade (0x1001)
[   48.706872] ACPI: \: failed to evaluate _DSM
bf0212f2-788f-c64d-a5b3-1f738e285ade (0x1001)
[   48.706876] ACPI: \: failed to evaluate _DSM
bf0212f2-788f-c64d-a5b3-1f738e285ade (0x1001)
[   48.706879] ACPI: \: failed to evaluate _DSM
bf0212f2-788f-c64d-a5b3-1f738e285ade (0x1001)
[   48.706882] ACPI: \: failed to evaluate _DSM
bf0212f2-788f-c64d-a5b3-1f738e285ade (0x1001)
[   48.706884] ACPI: \: failed to evaluate _DSM
bf0212f2-788f-c64d-a5b3-1f738e285ade (0x1001)
[   48.706887] ACPI: \: failed to evaluate _DSM
bf0212f2-788f-c64d-a5b3-1f738e285ade (0x1001)
[   48.708274] debugfs: Directory 'iwlmvm' with parent 'netdev:wlp2s0' already
present!
[   48.708283] CPU: 1 PID: 1331 Comm: NetworkManager Not tainted
6.7.0-rc5unif32-gf3e457d6f075 #430
[   48.708287] Hardware name: MICRO-STAR INTERNATIONAL CO.,LTD MS-7551/KA780G
(MS-7551), BIOS V16.7 08/05/2010
[   48.708290] Call Trace:
[   48.708293]  <TASK>
[   48.708297]  dump_stack_lvl+0x37/0x50
[   48.708305]  dump_stack+0x10/0x20
[   48.708308]  start_creating+0xfa/0x1a0
[   48.708317]  debugfs_create_dir+0x1b/0x170
[   48.708323]  iwl_mvm_vif_add_debugfs+0x2b/0x220 [iwlmvm]
[   48.708388]  drv_add_interface+0x240/0x270 [mac80211]
[   48.708533]  ieee80211_do_open+0x4d6/0x710 [mac80211]
[   48.708633]  ? ieee80211_check_concurrent_iface+0x180/0x230 [mac80211]
[   48.708732]  ieee80211_open+0x69/0x90 [mac80211]
[   48.708832]  __dev_open+0xf0/0x1a0
[   48.708839]  __dev_change_flags+0x190/0x200
[   48.708842]  ? skb_queue_tail+0x48/0x60
[   48.708847]  dev_change_flags+0x26/0x70
[   48.708850]  do_setlink+0x867/0x11e0
[   48.708854]  ? rtnl_getlink+0x390/0x420
[   48.708857]  ? __nla_validate_parse+0x5d/0xf90
[   48.708865]  __rtnl_newlink+0x523/0xaa0
[   48.708869]  ? rtnl_newlink+0x30/0x70
[   48.708873]  rtnl_newlink+0x49/0x70
[   48.708876]  rtnetlink_rcv_msg+0x16f/0x440
[   48.708879]  ? _raw_write_unlock_bh+0x1a/0x20
[   48.708884]  ? fib6_walker_unlink+0x49/0x60
[   48.708889]  ? fib6_walk+0x8b/0xa0
[   48.708893]  ? __pfx_rtnetlink_rcv_msg+0x10/0x10
[   48.708896]  netlink_rcv_skb+0x5b/0x110
[   48.708901]  rtnetlink_rcv+0x15/0x20
[   48.708906]  netlink_unicast+0x1b5/0x260
[   48.708909]  netlink_sendmsg+0x250/0x4d0
[   48.708913]  __sock_sendmsg+0xba/0xc0
[   48.708918]  ____sys_sendmsg+0x236/0x340
[   48.708923]  ___sys_sendmsg+0x81/0xc0
[   48.708927]  ? _copy_from_iter+0xb7/0x5d0
[   48.708932]  ? kfree+0x76/0x110
[   48.708936]  ? proc_sys_call_handler+0xb8/0x250
[   48.708942]  ? __fget_light+0xd1/0x130
[   48.708947]  __sys_sendmsg+0x65/0xc0
[   48.708951]  __x64_sys_sendmsg+0x1f/0x30
[   48.708954]  do_syscall_64+0x41/0xf0
[   48.708959]  entry_SYSCALL_64_after_hwframe+0x56/0x5e
[   48.708965] RIP: 0033:0x7feceb7cb18d
[   48.708970] Code: 28 89 54 24 1c 48 89 74 24 10 89 7c 24 08 e8 ca ee ff ff 8b
54 24 1c 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 2e 00 00 00 0f 05 <48> 3d 00 f0
ff ff 77 2f 44 89 c7 48 89 44 24 08 e8 fe ee ff ff 48
[   48.708974] RSP: 002b:00007ffecdd37c60 EFLAGS: 00000293 ORIG_RAX:
000000000000002e
[   48.708978] RAX: ffffffffffffffda RBX: 00005638fb6c1c00 RCX: 00007feceb7cb18d
[   48.708981] RDX: 0000000000000000 RSI: 00007ffecdd37cb0 RDI: 000000000000000c
[   48.708983] RBP: 00007ffecdd37cb0 R08: 0000000000000000 R09: 0000000000000000
[   48.708985] R10: 0000000000000001 R11: 0000000000000293 R12: 00005638fb6c1c00
[   48.708987] R13: 00007ffecdd37e68 R14: 00007ffecdd37e5c R15: 0000000000000000
[   48.708991]  </TASK>
[   48.709032] iwlwifi 0000:02:00.0: Failed to create debugfs directory under
netdev:wlp2s0
[   52.403523] wlp2s0: authenticate with 50:c7:bf:2c:a9:31 (local
address=b8:9a:2a:5a:b8:56)
[   52.404492] wlp2s0: send auth to 50:c7:bf:2c:a9:31 (try 1/3)
[   52.406824] wlp2s0: authenticated
[   52.408269] wlp2s0: associate with 50:c7:bf:2c:a9:31 (try 1/3)
[   52.410136] wlp2s0: RX AssocResp from 50:c7:bf:2c:a9:31 (capab=0x11 status=0
aid=3)
[   52.412299] wlp2s0: associated