Re: [PATCH] gpio: sloppy-logic-analyzer: fix use-after-free via debugfs trigger on unbind

Wolfram Sang <[email protected]> Wed, 29 Jul 2026 01:38:36 +0200
Newsgroups org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel
Message-ID <amk9fLBRR0B-uNpP@shikoro>
> Switching them to debugfs_create_file() would just add a second
> get/put around the one they already do, so I would leave them. 
> 
> Happy to send a follow-up if you'd prefer them consistent.

I would prefer them to be consistent. The overhead is negligible IMO.

If you prefer to leave them, ok, too. Then, I'd just ask you to add a
comment why this one file is different than the others. Because it
stands out and it is not directly obvious why.

Thank you for looking into this!
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmppPXwACgkQFA3kzBSg
KbYXNA//Y81xDC/IQQKjp2KbsJDQvq61ePONWJ2f51pnivO5u+udvXRpGDVFLrKz
gY4iU4tkUmOLSpIj4TqBD9RruRDG44lzNvU4f/HTx/RfAj79tjfrHJmI6T4LXFai
lOr/dUiIlLQa1rKPf7UNW4X6KRD48ZR8Z15jHNVZCYrYXQSKLKhjIQ6m3nfGeOqT
hArZV6gX+dXIYZbYgy6KPVx6+N2g/1PdQYblBNPWBNVZ3snMrPb4wSEYsVeyHOiT
O4MB/FgpTL3Y7Dffu6JEmSezJrRyDLlfg9i7WiSlqzUDMKssDR76gmbWeK4vz0b3
m32fYVCOTb44iWV135+MIFKMjJegJAIjFewshXoG3NT65HyubQButJf2qAwqqBRw
wQLjZj55Q2k/ob7bhL096ob6efDSPU07cGUZ3G4+PCGWzfLcJ2WtmQYkD4EZSOxK
TTVkPOPmrLYoWUdPM38a+Ntiyjkno16FB2JoOgndgN8ypkEGsP7ecYuMMKo/R1nH
og3WBOtrzXLTjU6UryFxnD1MjVLeC4oFl0Wfsp9v6nwMzbhuvYzKcvN7KaxW98xA
ey2xCmHJAEhbO+rzH8isXADxk3vycXmUNWOgGTdkwPjlumiIK1C4lTvkl03pOKjp
odh+AiZuGexU/G+lmQHOcCJp0/WHIImZz3/a1K7VXrCpdfQAh8c=
=tJA2
-----END PGP SIGNATURE-----