lwfinger / rtl8723au

Repo for RTL8723AU code before Linux Kernel commit
126 stars 46 forks source link

Make error on 4.13.3 #66

Closed Felhamed closed 7 years ago

Felhamed commented 7 years ago

Linux firas-lp 4.13.3-1-ARCH #1 SMP PREEMPT Thu Sep 21 20:33:16 CEST 2017 x86_64 GNU/Linux

Text:

$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.13.3-1-ARCH/build M=/home/firas/Wifi/rtl8723au  modules
make[1]: Entering directory '/usr/lib/modules/4.13.3-1-ARCH/build'
  CC [M]  /home/firas/Wifi/rtl8723au/core/rtw_wlan_util.o
In file included from ./include/linux/bitmap.h:8:0,
                 from ./include/linux/cpumask.h:11,
                 from ./arch/x86/include/asm/paravirt.h:15,
                 from ./arch/x86/include/asm/irqflags.h:64,
                 from ./include/linux/irqflags.h:15,
                 from ./include/linux/rcupdate.h:39,
                 from ./include/linux/rculist.h:10,
                 from ./include/linux/sched/signal.h:4,
                 from /home/firas/Wifi/rtl8723au/include/osdep_service.h:28,
                 from /home/firas/Wifi/rtl8723au/core/rtw_wlan_util.c:23:
In function ‘memcpy’,
    inlined from ‘update_bmc_sta_support_rate’ at /home/firas/Wifi/rtl8723au/core/rtw_wlan_util.c:2156:3:
./include/linux/string.h:305:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
    __read_overflow2();
    ^~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:303: /home/firas/Wifi/rtl8723au/core/rtw_wlan_util.o] Error 1
make[1]: *** [Makefile:1512: _module_/home/firas/Wifi/rtl8723au] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.13.3-1-ARCH/build'
make: *** [Makefile:516: modules] Error 2

image

lwfinger commented 7 years ago

It took a while to find the problem, but the code was copying 4 bytes from a 3-byte array. Please do a 'git pull' and let me know if it works. My system did not see any problems with the way it was.

Felhamed commented 7 years ago

Thanks, been using this driver for years, appreciate it.