Next: Kernel rewrites itself. Film at 11.
Next: Kernel rewrites itself. Film at 11.
Posted Feb 9, 2026 19:31 UTC (Mon) by adobriyan (subscriber, #30858)In reply to: Next: Kernel rewrites itself. Film at 11. by smurf
Parent article: An in-kernel machine-learning library
Also,
* get_random_bytes() is under mutex when it doesn't needs to be,
* dmesg spam on every read/write/ioctl is bad idea,
* copy_from_user/copy_to_user is used instead of put_user/get_user for simple stuff (int).
* missing READ_ONCE annotations, KCSAN should've noticed them (?)
* stuff is both in /proc and /sys (please, leave /proc alone)
* useless debugging stats (who cares how many times device has been opened),
* should probably use devm_() like interfaces or at least investigate,
* /proc, /sys stuff should be removed first before destroying the internals (this one is probably oopsable)
In general, teardown is done from stuff at the userspace boundary towards the center/internal data structures/instances.
* an of course, useless "increment i by 1" comments.
