On Thu, Apr 21, 2022 at 12:02 PM Sérgio Basto <sergio@xxxxxxxxxx> wrote: > > On Thu, 2022-04-21 at 11:50 -0500, Justin Forbes wrote: > > On Thu, Apr 21, 2022 at 8:58 AM Sérgio Basto <sergio@xxxxxxxxxx> wrote: > > > > > > Hi, > > > > > > to test Virtualbox host kmods on new kernel (x86_64 only), I install > > > fedora-rawhide-kernel-nodebug [1] > > > > > > but last two update I see with ack SLS [2] but SLS is strict arm > > > thing > > > , this is a bug ? or I'm missing something ? > > > > SLS is not a strict arm thing, and upstream commit e463a09af2f06 > > brought in the Straight Line Speculation mitigations for x86. Those > > are also enabled in 5.17 kernels as well. > > > > I assume you are running the rawhide-nodebug kernel on rawhide? If so, > > it should work, but it is entirely possible that the virtualbox > > drivers just do not build against the 5.18 development kernels yet. > > It would be best to ask them for support. If you are trying to build > > against the rawhide-nodebug kernel on a stable Fedora release, that > > will not work. You would need to rebuild the kernel first.. > > I'm using Fedora 34 , so you are saying that we need a higher gcc > version isn't it ? Actually, a newer compiler is not necessary. It would get you past this particular error, but you would just hit another error. The real issue is the compilter used to build the kernel must also be the compiler used to build the module. If you really need to run 5.18 kernels on Fedora 34, and need to build external modules for them, you will have to recompile the kernel yourself on an F34 host. Justin > after install kernel-devel , I need do some magic like: > > cd /usr/src/kernels/5.18.0-0.rc3.27.fc37.x86_64 > vi tools/objtool/Makefile > remove @$(CONFIG_SHELL) ./sync-check.sh from line 55 of > tools/objtool/Makefile > > rm scripts/basic/fixdep > rm scripts/mod/mk_elfconfig > rm tools/bpf/resolve_btfids//fixdep > rm tools/objtool/fixdep > make clean > make tools/objtool > make scripts > rm scripts/mod/modpost > make > > > > Justin > > > > > Thank you > > > > > > [2] > > > .config > > > 347:CONFIG_CC_HAS_SLS=y > > > 348:CONFIG_SLS=y > > > > > > [1] > > > dnf --disablerepo='*' --enablerepo=fedora-rawhide-kernel-nodebug > > > update > > > > > > > > > -- > > > Sérgio M. B. > > > _______________________________________________ > > > kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx > > > To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx > > > Fedora Code of Conduct: > > > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > > > List Guidelines: > > > https://fedoraproject.org/wiki/Mailing_list_guidelines > > > List Archives: > > > https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx > > > Do not reply to spam on the list, report it: > > > https://pagure.io/fedora-infrastructure > > > > -- > Sérgio M. B. > _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure