Skip to contentSkip to conversation

debugfs: make debugfs_create_str() read-only

PATCH Sergey Lebedev 2 participants 2 messages Nov 19 Stable branch

lore
Share & tools
lore
#0 lore raw

Hi Greg,

This is 3/3 of a series, and the two before it are not queued:

493daf5bf2b9 ("interconnect: debugfs: replace writable string helper") 98421ba5925f ("soundwire: debugfs: replace writable string helper")

Without them, drivers/soundwire/debugfs.c and drivers/interconnect/debugfs-client.c still pass write permission to debugfs_create_str(), so the new check warns and the files are not created. On a Surface Pro 11 (Lunar Lake, SoundWire), 7.3.6-rc1 warns twice at boot:

debugfs_create_str() does not support writable files

  WARNING: fs/debugfs/file.c:1078 at debugfs_create_str+0x57/0x80
   sdw_slave_debugfs_init+0x18a/0x1d0 [soundwire_bus]

6.18.65-rc1 (0934/2151) and 6.12.119-rc1 (0740/1756) queue the same patch, and both trees have the same two callers. 6.6.163-rc1 (2497/3318) queues it too; there only the interconnect callers remain. Please take the conversions first, or drop this one.

Sergey

maintainer
#1 lore raw
Quoted 4 lines

This is 3/3 of a series, and the two before it are not queued:

493daf5bf2b9 ("interconnect: debugfs: replace writable string helper") 98421ba5925f ("soundwire: debugfs: replace writable string helper")

Queued the soundwire conversion for 7.3 and 6.18.

493daf5bf2b9 ("interconnect: debugfs: replace writable string helper") is not
needed: drivers/interconnect/debugfs-client.c is compiled out (#undef INTERCONNECT_ALLOW_WRITE_DEBUGFS) on 7.3, 6.18, 6.12 and 6.6, so it does not warn there.

Signature · 2 lines
Thanks,
Sasha