[vbox-dev] Fixes for Kernel 5.3 wanted

Larry Finger Larry.Finger at lwfinger.net
Mon Aug 5 15:50:47 UTC 2019


On 8/5/19 7:45 AM, Cyrax wrote:
> On 04/08/2019 15:04, Sérgio Basto wrote:
>> On Sat, 2019-08-03 at 10:04 +0300, Cyrax wrote:
>>> On 24/07/2019 01:33, Sérgio Basto wrote:
>>>> Hello,
>>>>
>>>> https://forums.virtualbox.org/viewtopic.php?f=3&t=93944
>>>>
>>>> have someone the solution ?
>>>>
>>>> Thanks,
>>>>
>>>
>>> Here is another patch attached. The MIT-license apply.
>>
>> Hi,
>> I already applied Larry patch to RPMFusion packages , thanks Larry .
>> Your patch is more than a compile fix, isn't it ? and what is fixed ?
>>
>> Thanks,
>>
> It is a compile fix so host modules can be built succesfully under 5.3.x series 
> kernel. If it isn't applied then these errors will appear in the vbox host 
> kernel module build log.
> 
> ----
> 
> /tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxSkBufToSG’:
> /tmp/vbox.0/linux/VBoxNetFlt-linux.c:927:36: error: ‘skb_frag_t’ {aka ‘struct 
> bio_vec’} has no member named ‘size’
>    927 |         pSG->aSegs[iSeg].cb = pFrag->size;
>        |                                    ^~
> /tmp/vbox.0/linux/VBoxNetFlt-linux.c:928:66: error: ‘skb_frag_t’ {aka ‘struct 
> bio_vec’} has no member named ‘page_offset’; did you mean ‘bv_offset’?
>    928 |         pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + 
> pFrag->page_offset;
>        |  ^~~~~~~~~~~
>        |  bv_offset
> /tmp/vbox.0/linux/VBoxNetFlt-linux.c:943:40: error: ‘skb_frag_t’ {aka ‘struct 
> bio_vec’} has no member named ‘size’
>    943 |             pSG->aSegs[iSeg].cb = pFrag->size;
>        |                                        ^~
> /tmp/vbox.0/linux/VBoxNetFlt-linux.c:944:70: error: ‘skb_frag_t’ {aka ‘struct 
> bio_vec’} has no member named ‘page_offset’; did you mean ‘bv_offset’?
>    944 |             pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + 
> pFrag->page_offset;
>        |      ^~~~~~~~~~~
>        |      bv_offset
> make[2]: *** [scripts/Makefile.build:273: /tmp/vbox.0/linux/VBoxNetFlt-linux.o] 
> Error 1
> make[1]: *** [Makefile:1621: _module_/tmp/vbox.0] Error 2
> make: *** [/tmp/vbox.0/Makefile-footer.gmk:111: vboxnetflt] Error 2

I do not see these errors when building the kernel modules with kernel 
5.3.0-rc3. The patch I posted is sufficient for me. Note I am using an 
unmodified kernel from mainline. A kernel obtained from a disto might have other 
modifications.

Larry




More information about the vbox-dev mailing list