On 7/29/22 7:29 AM, Nicolas wrote:
Hello,
I recently used the multiprocessor kernel on my OpenBSD 7.1 computer,
using this command :
cp bsd bsd.sp && cp bsd.mp bsd
Since then, I have this message in /var/log/messages :
Jul 25 20:17:05 server reorder_kernel: failed -- see
/usr/share/relink/kernel/GENERIC.MP/relink.log
Here is the contents of the relink.log file :
(SHA256) /bsd: OK
LD="ld" sh makegap.sh 0xcccccccc gapdummy.o
ld -T ld.script -X --warn-common -nopie -o newbsd ${SYSTEM_HEAD} vers.o
${OBJS}
ld: error: duplicate symbol: i915_get_bridge_dev
>>> defined at i915_drv.c:106
(/usr/src/sys/dev/pci/drm/i915/i915_drv.c:106)
>>> i915_drv.o:(i915_get_bridge_dev)
>>> defined at i915_dma.c:206
(/usr/src/sys/dev/pci/drm/i915/i915_dma.c:206)
>>> i915_dma.o:(.text+0x0)
*** Error 1 in /usr/share/relink/kernel/GENERIC.MP (Makefile:999
'newbsd': @echo ld -T ld.script -X --warn-common -nopie -o newbsd
'${SYSTEM...)
I did a :
sha256 -h /var/db/kernel.SHA256 /bsd
That did not change anything.
Here is what I have in / :
-rwx------ 2 root wheel 22977229 Jul 20 20:10 bsd
-rwx------ 1 root wheel 15629818 Sep 19 2019 bsd.backup
-rwx------ 2 root wheel 22977229 Jul 20 20:10 bsd.booted
-rw-r--r-- 1 root wheel 22977229 Apr 22 13:40 bsd.mp
-rw------- 1 root wheel 4606368 Apr 22 13:40 bsd.rd
-rw------- 1 root wheel 22863908 Jul 20 20:09 bsd.sp
The computer seems to run fine. I don't know if that error message is
important.
The message is important in that the kernel re-link process is a
really cool bit of OpenBSD security, which isn't working for you
right now. Which leave you still in the position of being much
more secure than Linux, but still worth fixing. :)
Without this feature working, you are running the exact same kernel
every time you boot. Like most other OSs...
What's you opinion, could you help me with that message ?
Well, I'm not really sure what is going on, but I'm guessing you
have done something odd in the past that left the kernel rebuild
process in a strange state. Which is a lot of words for saying,
"I don't know, but I'm blaming you" :)
I'm thinking booting off bsd.rd and "upgrading" the system to the
same version you are running now would probably fix the problem
by bringing everything back in sync (I'm assuming you are running
7.1-release, if you are running a snapshot, just run "sysupgrade"
and move to a new snapshot).
Nick.