Re: [PATCH v2] media: rc: fix use-after-free of rc_map.name on register error path

From: YuanZhe Liu

Date: Fri Oct 30 2026 - 02:02:55 EST


Hi Mauro,

I am copying this address for visibility.

[PATCH v2] media: rc: fix use-after-free of rc_map.name on register
error path

The remaining issue is a uevent racing with keymap cleanup while
registered is still true. The proposed approach is to clear registered
before freeing the keymap.

The follow-up linked below describes the remaining issue and the changes
needed for the current tree. I'd appreciate your feedback on the
proposed approach.

Discussion:
https://lore.kernel.org/r/20261027021718.14264-1-25031212351@xxxxxxxxxxxxxxxxx

Original submission:
https://lore.kernel.org/r/20261027014144.9144-1-25031212351@xxxxxxxxxxxxxxxxx

Thanks,
YuanZhe