Port to newer kernel
Please, it this usable for 5.4?
Background: I have a real serious problem and no ideas:
A couple of identical hosts "freeze" after reaching an local kernel uptime of exact one week. This is derived from the last pulled data of your monitoring system. The different hosts are using real identical images. They are booted last time in groups at different days and now, they "die" in exact that order.
This hosts are diskless and using NFS for the rootfs. The systems "freeze" because the filesystem layer stop working. Everything that don't need file-I/O will continue to work, but any process that use file-I/O will freeze. Therefore, one may ping the system, but not able to log in even at console: You may type in the user but there's no password question because "PAM" will access to /etc/passwd or such first.
Yes, I did some modifications "recently" in the last week. E.g. I changed the kernel 5.4.55 < 5.4.38. And I also did some userland updates. And I tested this -- as expected by this minor update without any observations -- a couple of days, but unfortunately not a whole week!
Now, it's not feasible to wait a week after any change back to check the effect! Some important host are expected to freeze next Thursday. Up to now I'll be forced to do a controlled reboot "just before". But to perform reasonable investigations, I need to produce a "test case" without waiting a real week for any step!
It compiles for me for 5.4.48. For 5.7 there needs to be some changes made because the procfs filesystem api has changed. However if your problem is in the kernel itself and its because of NFS, this module won't help you because it only changes the userland uptime but not the time the kernel itself.