cilynx / rtl88x2bu

rtl88x2bu driver updated for current kernels.
http://www.wolfteck.com/2018/02/22/wsky_1200mbps_wireless_usb_wifi_adapter/
GNU General Public License v2.0
1.61k stars 316 forks source link

Build fails, kernel 5.10.76, hardened #185

Closed onkobu closed 1 year ago

onkobu commented 2 years ago

When I build compilation works until modpost:

MODPOST …/git/rtl88x2bu/Module.symvers
ERROR: modpost: "cfg80211_external_auth_request" […/git/rtl88x2bu/88x2bu.ko] undefined!
ERROR: modpost: "proc_mkdir_data" […/git/rtl88x2bu/88x2bu.ko] undefined!
ERROR: modpost: "find_vpid" […/git/rtl88x2bu/88x2bu.ko] undefined!
ERROR: modpost: "kill_pid" […/git/rtl88x2bu/88x2bu.ko] undefined!
ERROR: modpost: "proc_get_parent_data" […/git/rtl88x2bu/88x2bu.ko] undefined!
ERROR: modpost: "filp_close" […/git/rtl88x2bu/88x2bu.ko] undefined!
ERROR: modpost: "filp_open" […/git/rtl88x2bu/88x2bu.ko] undefined!

Are there symbols missing from the kernel? (That particular system's kernel is hardened and strips symbols.)

onkobu commented 2 years ago

Indeed this is because of hardening options. Enabling CONFIG_TRIM_UNUSED_KSYMS makes them disappear. In addition out-of-tree modules (like this one) taint the kernel which is the opposite of hardening. What keeps your module out of the kernel tree?