On FreeBSD 9, if an update ever touches the kernel, it gets shipped with /boot/kernel/linker.hints freebsd-update installs that file, and then notices something changed in /boot/kernel, run kldxref, overwrites the file it just installed. The next time it runs, it thinks that the file has been missed by the update and updates it, overwrites it, and it can go on forever. Fix: The only fix I have found is to remove the file altogether, it stops freebsd-update from trying to reinstall it and overwrite it. How-To-Repeat: # freebsd-update fetch Looking up freebsd-update.absolight.net mirrors... 1 mirrors found. Fetching public key from 1.freebsd-update.absolight.net... done. Fetching metadata signature for 9.1-RELEASE from 1.freebsd-update.absolight.net... done. Fetching metadata index... done. Fetching 2 metadata files... done. Inspecting system... done. Preparing to download files... done. Fetching 1 files... done. The following files will be updated as part of updating to 9.1-RELEASE-p10: /boot/kernel/linker.hints # freebsd-update install Installing updates... done. # freebsd-update fetch Looking up freebsd-update.absolight.net mirrors... 1 mirrors found. Fetching metadata signature for 9.1-RELEASE from 1.freebsd-update.absolight.net... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. The following files will be updated as part of updating to 9.1-RELEASE-p10: /boot/kernel/linker.hints # freebsd-update install Installing updates... done. # freebsd-update fetch Looking up freebsd-update.absolight.net mirrors... 1 mirrors found. Fetching metadata signature for 9.1-RELEASE from 1.freebsd-update.absolight.net... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. The following files will be updated as part of updating to 9.1-RELEASE-p10: /boot/kernel/linker.hints
Responsible Changed From-To: freebsd-bugs->cperciva To maintainer.
In PR bin/186273, you wrote: > On FreeBSD 9, if an update ever touches the kernel, it gets shipped > with /boot/kernel/linker.hints freebsd-update installs that file, and > then notices something changed in /boot/kernel, run kldxref, > overwrites the file it just installed. The next time it runs, it > thinks that the file has been missed by the update and updates it, > overwrites it, and it can go on forever. I think this is fixed by SVN r256060. The first release with this fix is 10.0. I MFC'ed it to stable/9, so a future 9.3 should not have this issue. The issue was previously reported in PR bin/182098. A fix for 9.1-RELEASE would need an errata notice. I'm not sure that's worth the trouble. -- Jilles Tjoelker
Responsible Changed From-To: cperciva->cperciva fix synopsis.
seems it's going to be solved by the affected FreeBSD versions not being supported any more.