Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have a problem with "debian_kernel-develop" modules building #13

Closed
MeKeCNC opened this issue May 22, 2018 · 1 comment
Closed

I have a problem with "debian_kernel-develop" modules building #13

MeKeCNC opened this issue May 22, 2018 · 1 comment

Comments

@MeKeCNC
Copy link

MeKeCNC commented May 22, 2018

Hi
when I'd like to compile the kernel I get modules compiling error. I would appreciate if someone help me.
my PC is Ubuntu on Vm virtualbox and compiling error is below.

sudo make ARCH=arm miniarm-rk3288_defconfig
sudo make zImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j 16

# zImage compiling is OK

...... .....
AS arch/arm/boot/compressed/piggy.gzip.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready

mk@ubuntu:~/debian_kernel-develop$ sudo make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j 16
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC [M] sound/drivers/dummy.o
CC [M] sound/drivers/aloop.o
CC [M] drivers/i2c/i2c-stub.o
CC [M] crypto/echainiv.o
CC [M] net/netfilter/xt_conntrack.o
LD [M] sound/drivers/snd-dummy.o
CC [M] fs/nfs/flexfilelayout/flexfilelayout.o
CC [M] fs/nfs/flexfilelayout/flexfilelayoutdev.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_cmd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_cmd.o
LD [M] sound/drivers/snd-aloop.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_security.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_cmd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_security.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_debug.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_debug.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_io.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_ioctl_query.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_ioctl_set.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_security.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_debug.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_io.o
CC [M] drivers/rtc/rtc-ds1307.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_ieee80211.o
LD [M] fs/nfs/flexfilelayout/nfs_layout_flexfiles.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_io.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_mlme.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_mlme_ext.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_wlan_util.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_vht.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_pwrctrl.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_rf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_ioctl_query.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_ioctl_query.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_recv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_sta_mgt.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_ioctl_set.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_ap.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_ieee80211.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mlme.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mlme_ext.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_wlan_util.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_vht.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_ioctl_set.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_pwrctrl.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_ieee80211.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_mlme.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_xmit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_p2p.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_tdls.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_rf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_recv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_mlme_ext.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_mi.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_wlan_util.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_vht.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_pwrctrl.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_br_ext.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_sta_mgt.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_ap.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_rf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_xmit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_recv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_sta_mgt.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_iol.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_sreset.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_btcoex.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_ap.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_p2p.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_xmit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_p2p.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_tdls.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_beamforming.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_br_ext.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_iol.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_sreset.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_btcoex.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_tdls.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_odm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_beamforming.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/efuse/rtw_efuse.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/osdep_service.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_br_ext.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_odm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/efuse/rtw_efuse.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/osdep_service.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_iol.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_sreset.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_btcoex_wifionly.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/usb_intf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/os_intfs.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_btcoex.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_beamforming.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/usb_intf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/usb_ops_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_odm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/xmit_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/mlme_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/recv_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/efuse/rtw_efuse.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_sdio.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/osdep_service.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/usb_ops_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/os_intfs.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/sdio_intf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/ioctl_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/xmit_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/sdio_ops_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/ioctl_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/mlme_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/recv_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/rtw_cfgvendor.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/ioctl_cfg80211.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/xmit_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/rtw_cfgvendor.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/wifi_regd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/mlme_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/wifi_regd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/recv_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/ioctl_cfg80211.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/rtw_cfgvendor.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/rtw_android.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/wifi_regd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/rtw_android.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/rtw_android.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/os_dep/linux/ioctl_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/rtw_proc.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/os_dep/linux/rtw_proc.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/hal_intf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/hal_com.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/hal_com_phycfg.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/hal_phy.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/hal_intf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/hal_dm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/hal_com.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/ioctl_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/hal_btcoex.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/hal_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/custom_gpio_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/hal_com_phycfg.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/hal_phy.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/hal_hci/hal_usb.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_intf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/hal_dm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/hal_btcoex.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/hal_hci/hal_usb.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/led/hal_usb_led.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_com.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/led/hal_usb_led.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/HalPwrSeqCmd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_com_phycfg.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/HalPwrSeqCmd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/Hal8814PwrSeq.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/rtl8814a_xmit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/Hal8812PwrSeq.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/Hal8821APwrSeq.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/rtl8814a_sreset.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_phy.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_dm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_btcoex_wifionly.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_btcoex.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/rtl8812a_xmit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/rtl8812a_sreset.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/rtl8812a_hal_init.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/rtl8814a_hal_init.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/rtl8812a_phycfg.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/rtl8814a_phycfg.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mcc.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/rtl8814a_rf6052.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_hci/hal_sdio.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/led/hal_sdio_led.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/rtl8812a_rf6052.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/rtl8814a_dm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/rtl8814a_rxdesc.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/rtl8814a_cmd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/HalPwrSeqCmd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/usb/usb_halinit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/rtl8812a_dm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/usb/rtl8814au_led.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/Hal8723BPwrSeq.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/usb/rtl8814au_xmit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/rtl8723b_sreset.o
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.c: In function ‘mpt_SetRFPath_8723B’:
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.c:1076:6: warning: statement will never be executed [-Wswitch-unreachable]
error, forbidden warning: hal_mp.c:1076
scripts/Makefile.build:266: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.o' failed
make[5]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/usb/rtl8814au_recv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/rtl8812a_rxdesc.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/rtl8814a/usb/usb_ops_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/efuse/rtl8814a/HalEfuseMask8814A_USB.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_debug.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_antdiv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_antdect.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_interface.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/rtl8812a_cmd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/usb/usb_halinit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/usb/rtl8812au_led.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/usb/rtl8812au_xmit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/usb/rtl8812au_recv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_hwconfig.o
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs' failed
make[4]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs] Error 2
make[4]: *** Waiting for unfinished jobs....
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/usb/usb_ops_linux.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/rtl8812a/rtl8812a_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/halphyrf_ce.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_edcaturbocheck.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/efuse/rtl8812a/HalEfuseMask8812A_USB.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_dig.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_pathdiv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_rainfo.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/efuse/rtl8812a/HalEfuseMask8821A_USB.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_dynamicbbpowersaving.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_powertracking_ce.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_dynamictxpower.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_adaptivity.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_debug.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_AntDiv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_cfotracking.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_noisemonitor.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_acs.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_AntDect.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_interface.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/phydm_beamforming.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/txbf/halcomtxbf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_HWConfig.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/HalPhyRf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/txbf/haltxbfinterface.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/rtl8814a/halhwimg8814a_bb.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_EdcaTurboCheck.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_DIG.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_PathDiv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/rtl8814a/halhwimg8814a_mac.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_RaInfo.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_DynamicBBPowerSaving.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/rtl8814a/halhwimg8814a_rf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_PowerTracking.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_DynamicTxPower.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/rtl8814a/halhwimg8814a_fw.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/PhyDM_Adaptivity.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_CfoTracking.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_NoiseMonitor.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/phydm_ACS.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/rtl8814a/phydm_iqk_8814a.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8812a/HalHWImg8812A_FW.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/rtl8814a/phydm_regconfig8814a.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/rtl8814a/halphyrf_8814a_ce.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/rtl8814a/phydm_rtl8814a.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/hal/phydm/txbf/haltxbf8814a.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8814au/core/rtw_mp_ioctl.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8812a/HalHWImg8812A_MAC.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8812a/HalHWImg8812A_BB.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8812a/HalHWImg8812A_RF.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8812a/HalPhyRf_8812A.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8812a/phydm_RegConfig8812A.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8812a/phydm_RTL8812A.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8821a/HalHWImg8821A_FW.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8821a/HalHWImg8821A_MAC.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8821a/HalHWImg8821A_BB.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8821a/HalHWImg8821A_RF.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8821a/HalPhyRf_8821A.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8821a/phydm_RegConfig8821A.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8821a/phydm_RTL8821A.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/hal/OUTSRC/rtl8821a/PhyDM_IQK_8821A.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/platform/platform_ops.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mp_ioctl.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_bt_mp.o
LD [M] drivers/net/wireless/rockchip_wlan/rtl8814au/rtl8814au.o
LD [M] drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/rtl8812au.o
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan' failed
make[3]: *** [drivers/net/wireless/rockchip_wlan] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless' failed
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
Makefile:1000: recipe for target 'drivers' failed
make: *** [drivers] Error 2

mk@ubuntu:~/debian_kernel-develop$ sudo make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j 16

CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK scripts/mod/devicetable-offsets.h
make[1]: 'include/generated/mach-types.h' is up to date.
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/rtl8723b_hal_init.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/rtl8723b_phycfg.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/rtl8723b_rf6052.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/rtl8723b_dm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/rtl8723b_rxdesc.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/rtl8723b_cmd.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/hal8723b_fw.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/sdio/sdio_halinit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/sdio/rtl8723bs_led.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/sdio/rtl8723bs_xmit.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/sdio/rtl8723bs_recv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/rtl8723b/sdio/sdio_ops.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_debug.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_antdiv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_antdect.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_interface.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_hwconfig.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/halphyrf_ce.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_edcaturbocheck.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_dig.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_pathdiv.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_rainfo.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_dynamicbbpowersaving.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_powertracking_ce.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_dynamictxpower.o
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.c: In function ‘mpt_SetRFPath_8723B’:
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.c:1076:6: warning: statement will never be executed [-Wswitch-unreachable]
error, forbidden warning: hal_mp.c:1076
scripts/Makefile.build:266: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.o' failed
make[5]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs' failed
make[4]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan' failed
make[3]: *** [drivers/net/wireless/rockchip_wlan] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless' failed
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
Makefile:1000: recipe for target 'drivers' failed
make: *** [drivers] Error 2

mk@ubuntu:~/debian_kernel-develop$ sudo make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j 16
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK scripts/mod/devicetable-offsets.h
make[1]: 'include/generated/mach-types.h' is up to date.
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8822b1ant.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8822b2ant.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8821c1ant.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8821c2ant.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/rtl8723b/halhwimg8723b_bb.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/rtl8723b/halhwimg8723b_mac.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/rtl8723b/halhwimg8723b_rf.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/rtl8723b/phydm_regconfig8723b.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/rtl8723b/halhwimg8723b_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/rtl8723b/halphyrf_8723b_ce.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/rtl8723b/phydm_rtl8723b.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/platform/platform_ops.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_mp.o
CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_bt_mp.o
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.c: In function ‘mpt_SetRFPath_8723B’:
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.c:1076:6: warning: statement will never be executed [-Wswitch-unreachable]
error, forbidden warning: hal_mp.c:1076
scripts/Makefile.build:266: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.o' failed
make[5]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs' failed
make[4]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan' failed
make[3]: *** [drivers/net/wireless/rockchip_wlan] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless' failed
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
Makefile:1000: recipe for target 'drivers' failed
make: *** [drivers] Error 2
mk@ubuntu:~/debian_kernel-develop$

@MeKeCNC MeKeCNC changed the title I have a problem with "debian_kernel-develop" build I have a problem with "debian_kernel-develop" modules building May 22, 2018
@MeKeCNC
Copy link
Author

MeKeCNC commented Jun 1, 2018

It is solved
in drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/hal_mp.c:1076
u8 p = 0, i = 0; changed to u8 p, i;
MeKeCNC@2801948

@MeKeCNC MeKeCNC closed this as completed Jun 1, 2018
jamess-huang pushed a commit that referenced this issue Jun 19, 2018
old->tv_state pointer is not safe, its reference on connector state,
maybe free.

So save active_tv_state on vop is safe.

==================================================================
BUG: KASAN: use-after-free in vop_crtc_atomic_flush+0xd4/0x3c18 at addr ffffffc08cc6a3a0
Read of size 48 by task surfaceflinger/230
=============================================================================
BUG kmalloc-128 (Not tainted): kasan: bad access detected
-----------------------------------------------------------------------------

Disabling lock debugging due to kernel taint
INFO: Allocated in binder_alloc_new_buf_locked+0x388/0x5f0 age=34 cpu=5 pid=660
INFO: Freed in binder_delete_free_buffer+0x204/0x21c age=34 cpu=2 pid=986
CPU: 1 PID: 230 Comm: surfaceflinger Tainted: G    B           4.4.93 #13
Hardware name: Rockchip RK3399 Evaluation Board v3 (Android) (DT)
Call trace:
[<ffffff900808bfe4>] dump_backtrace+0x0/0x228
[<ffffff900808c220>] show_stack+0x14/0x1c
[<ffffff9008505e3c>] dump_stack+0xa4/0xcc
[<ffffff900823d608>] print_trailer+0x188/0x198
[<ffffff900823d77c>] object_err+0x3c/0x4c
[<ffffff9008243874>] kasan_report+0x320/0x4d4
[<ffffff9008242a64>] __asan_loadN+0x24/0x150
[<ffffff90086c7294>] vop_crtc_atomic_flush+0xd4/0x3c18
[<ffffff90086717e0>] drm_atomic_helper_commit_planes+0x2bc/0x308
[<ffffff90086beabc>] rockchip_atomic_commit_complete+0x6c/0xb4
[<ffffff90086bed48>] rockchip_drm_atomic_commit+0x244/0x264
[<ffffff90086a5974>] drm_atomic_commit+0x88/0x98
[<ffffff90086a7854>] drm_mode_atomic_ioctl+0x710/0x850
[<ffffff900867e398>] drm_ioctl+0x370/0x540
[<ffffff9008266574>] do_vfs_ioctl+0x86c/0x9d8
[<ffffff9008266740>] SyS_ioctl+0x60/0x88
[<ffffff9008083130>] el0_svc_naked+0x24/0x28

Change-Id: I619560f5c5d6beb0a7cfa3a6daf925ccfcfb7f8b
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Bauuuuu pushed a commit to Bauuuuu/debian_kernel that referenced this issue Dec 5, 2018
[ Upstream commit 2bbea6e117357d17842114c65e9a9cf2d13ae8a3 ]

when mounting an ISO filesystem sometimes (very rarely)
the system hangs because of a race condition between two tasks.

PID: 6766   TASK: ffff88007b2a6dd0  CPU: 0   COMMAND: "mount"
 #0 [ffff880078447ae0] __schedule at ffffffff8168d605
 TinkerBoard#1 [ffff880078447b48] schedule_preempt_disabled at ffffffff8168ed49
 TinkerBoard#2 [ffff880078447b58] __mutex_lock_slowpath at ffffffff8168c995
 TinkerBoard#3 [ffff880078447bb8] mutex_lock at ffffffff8168bdef
 TinkerBoard#4 [ffff880078447bd0] sr_block_ioctl at ffffffffa00b6818 [sr_mod]
 TinkerBoard#5 [ffff880078447c10] blkdev_ioctl at ffffffff812fea50
 TinkerBoard#6 [ffff880078447c70] ioctl_by_bdev at ffffffff8123a8b3
 TinkerBoard#7 [ffff880078447c90] isofs_fill_super at ffffffffa04fb1e1 [isofs]
 TinkerBoard#8 [ffff880078447da8] mount_bdev at ffffffff81202570
 TinkerBoard#9 [ffff880078447e18] isofs_mount at ffffffffa04f9828 [isofs]
TinkerBoard#10 [ffff880078447e28] mount_fs at ffffffff81202d09
TinkerBoard#11 [ffff880078447e70] vfs_kern_mount at ffffffff8121ea8f
TinkerBoard#12 [ffff880078447ea8] do_mount at ffffffff81220fee
TinkerBoard#13 [ffff880078447f28] sys_mount at ffffffff812218d6
TinkerBoard#14 [ffff880078447f80] system_call_fastpath at ffffffff81698c49
    RIP: 00007fd9ea914e9a  RSP: 00007ffd5d9bf648  RFLAGS: 00010246
    RAX: 00000000000000a5  RBX: ffffffff81698c49  RCX: 0000000000000010
    RDX: 00007fd9ec2bc210  RSI: 00007fd9ec2bc290  RDI: 00007fd9ec2bcf30
    RBP: 0000000000000000   R8: 0000000000000000   R9: 0000000000000010
    R10: 00000000c0ed0001  R11: 0000000000000206  R12: 00007fd9ec2bc040
    R13: 00007fd9eb6b2380  R14: 00007fd9ec2bc210  R15: 00007fd9ec2bcf30
    ORIG_RAX: 00000000000000a5  CS: 0033  SS: 002b

This task was trying to mount the cdrom.  It allocated and configured a
super_block struct and owned the write-lock for the super_block->s_umount
rwsem. While exclusively owning the s_umount lock, it called
sr_block_ioctl and waited to acquire the global sr_mutex lock.

PID: 6785   TASK: ffff880078720fb0  CPU: 0   COMMAND: "systemd-udevd"
 #0 [ffff880078417898] __schedule at ffffffff8168d605
 TinkerBoard#1 [ffff880078417900] schedule at ffffffff8168dc59
 TinkerBoard#2 [ffff880078417910] rwsem_down_read_failed at ffffffff8168f605
 TinkerBoard#3 [ffff880078417980] call_rwsem_down_read_failed at ffffffff81328838
 TinkerBoard#4 [ffff8800784179d0] down_read at ffffffff8168cde0
 TinkerBoard#5 [ffff8800784179e8] get_super at ffffffff81201cc7
 TinkerBoard#6 [ffff880078417a10] __invalidate_device at ffffffff8123a8de
 TinkerBoard#7 [ffff880078417a40] flush_disk at ffffffff8123a94b
 TinkerBoard#8 [ffff880078417a88] check_disk_change at ffffffff8123ab50
 TinkerBoard#9 [ffff880078417ab0] cdrom_open at ffffffffa00a29e1 [cdrom]
TinkerBoard#10 [ffff880078417b68] sr_block_open at ffffffffa00b6f9b [sr_mod]
TinkerBoard#11 [ffff880078417b98] __blkdev_get at ffffffff8123ba86
TinkerBoard#12 [ffff880078417bf0] blkdev_get at ffffffff8123bd65
TinkerBoard#13 [ffff880078417c78] blkdev_open at ffffffff8123bf9b
TinkerBoard#14 [ffff880078417c90] do_dentry_open at ffffffff811fc7f7
TinkerBoard#15 [ffff880078417cd8] vfs_open at ffffffff811fc9cf
TinkerBoard#16 [ffff880078417d00] do_last at ffffffff8120d53d
TinkerBoard#17 [ffff880078417db0] path_openat at ffffffff8120e6b2
TinkerBoard#18 [ffff880078417e48] do_filp_open at ffffffff8121082b
TinkerBoard#19 [ffff880078417f18] do_sys_open at ffffffff811fdd33
TinkerBoard#20 [ffff880078417f70] sys_open at ffffffff811fde4e
TinkerBoard#21 [ffff880078417f80] system_call_fastpath at ffffffff81698c49
    RIP: 00007f29438b0c20  RSP: 00007ffc76624b78  RFLAGS: 00010246
    RAX: 0000000000000002  RBX: ffffffff81698c49  RCX: 0000000000000000
    RDX: 00007f2944a5fa70  RSI: 00000000000a0800  RDI: 00007f2944a5fa70
    RBP: 00007f2944a5f540   R8: 0000000000000000   R9: 0000000000000020
    R10: 00007f2943614c40  R11: 0000000000000246  R12: ffffffff811fde4e
    R13: ffff880078417f78  R14: 000000000000000c  R15: 00007f2944a4b010
    ORIG_RAX: 0000000000000002  CS: 0033  SS: 002b

This task tried to open the cdrom device, the sr_block_open function
acquired the global sr_mutex lock. The call to check_disk_change()
then saw an event flag indicating a possible media change and tried
to flush any cached data for the device.
As part of the flush, it tried to acquire the super_block->s_umount
lock associated with the cdrom device.
This was the same super_block as created and locked by the previous task.

The first task acquires the s_umount lock and then the sr_mutex_lock;
the second task acquires the sr_mutex_lock and then the s_umount lock.

This patch fixes the issue by moving check_disk_change() out of
cdrom_open() and let the caller take care of it.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bauuuuu pushed a commit to Bauuuuu/debian_kernel that referenced this issue Dec 7, 2018
[ Upstream commit ecd60532e060e45c63c57ecf1c8549b1d656d34d ]

Booting a ColdFire m68k core with MMU enabled causes a "bad page state"
oops since commit 1d40a5ea01d5 ("mm: mark pages in use for page tables"):

 BUG: Bad page state in process sh  pfn:01ce2
 page:004fefc8 count:0 mapcount:-1024 mapping:00000000 index:0x0
 flags: 0x0()
 raw: 00000000 00000000 00000000 fffffbff 00000000 00000100 00000200 00000000
 raw: 039c4000
 page dumped because: nonzero mapcount
 Modules linked in:
 CPU: 0 PID: 22 Comm: sh Not tainted 4.17.0-07461-g1d40a5ea01d5 TinkerBoard#13

Fix by calling pgtable_page_dtor() in our __pte_free_tlb() code path,
so that the PG_table flag is cleared before we free the pte page.

Note that I had to change the type of pte_free() to be static from
extern. Otherwise you get a lot of warnings like this:

./arch/m68k/include/asm/mcf_pgalloc.h:80:2: warning: ‘pgtable_page_dtor’ is static but used in inline function ‘pte_free’ which is not static
  pgtable_page_dtor(page);
  ^

And making it static is consistent with our use of this in the other
m68k pgalloc definitions of pte_free().

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
CC: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bauuuuu pushed a commit to Bauuuuu/debian_kernel that referenced this issue Dec 7, 2018
[ Upstream commit ecd60532e060e45c63c57ecf1c8549b1d656d34d ]

Booting a ColdFire m68k core with MMU enabled causes a "bad page state"
oops since commit 1d40a5ea01d5 ("mm: mark pages in use for page tables"):

 BUG: Bad page state in process sh  pfn:01ce2
 page:004fefc8 count:0 mapcount:-1024 mapping:00000000 index:0x0
 flags: 0x0()
 raw: 00000000 00000000 00000000 fffffbff 00000000 00000100 00000200 00000000
 raw: 039c4000
 page dumped because: nonzero mapcount
 Modules linked in:
 CPU: 0 PID: 22 Comm: sh Not tainted 4.17.0-07461-g1d40a5ea01d5 TinkerBoard#13

Fix by calling pgtable_page_dtor() in our __pte_free_tlb() code path,
so that the PG_table flag is cleared before we free the pte page.

Note that I had to change the type of pte_free() to be static from
extern. Otherwise you get a lot of warnings like this:

./arch/m68k/include/asm/mcf_pgalloc.h:80:2: warning: ‘pgtable_page_dtor’ is static but used in inline function ‘pte_free’ which is not static
  pgtable_page_dtor(page);
  ^

And making it static is consistent with our use of this in the other
m68k pgalloc definitions of pte_free().

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
CC: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant