News for hackers. Stuff that matters.
Re:Dumb bugs: the PCI device that wasn't by valleyer on Tuesday April 04, 2023 @07:00PM (#35446992)
Shouldn't bus_register_notifier() take a notifier_fn_t (and int priority) directly and create its own struct notifier_block? Why does it expose its linked-list node through its interface?

I guess maybe that would make un-registration less ergonomic (assuming you have to handle duplicate entries in the list). But the peril of the bug described here seems worse.

Re:Dumb bugs: the PCI device that wasn't by taway-20230404 on Tuesday April 04, 2023 @07:42PM (#35447335)
The use case likely needs statically-allocated memory that kmalloc isn't appropriate for.