Re: [PATCH] watchdog: core: assign parent with devm registration
From: Linus Walleij
Date: Wed May 27 2026 - 12:25:44 EST
On Sun, May 24, 2026 at 5:22 PM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> I understand that you consider it to be garbage, but in my opinion Sashiko has a
> point. If the watchdog device data structure is static, wdd->parent will be retained
> over multiple remove/reinsert instantiations of the driver, which in turn would result
> in subsequent UAF. That means I can not accept your patch.
Hm! I wonder if that is a problem for my patch as well. We do have
GPIO dongles that can be plugged in/out repeatedly....
Yours,
Linus Walleij