techpack: datarmnet-ext: shs: fix CFI failure on module init with newer Clang versions

<4>[    1.660990] [6:           init:    1]  ------------[ cut here ]------------
<4>[    1.661004] [6:           init:    1]  CFI failure (target: DATARMNET163e93649e+0x0/0xfb8 [rmnet_shs]):
<4>[    1.661018] [6:           init:    1]  WARNING: CPU: 6 PID: 1 at kernel/cfi.c:30 __ubsan_handle_cfi_check_fail+0x4c/0x54
<4>[    1.661020] [6:           init:    1]  Modules linked in: rmnet_shs(+) rmnet_offload rmnet_core rmnet_ctl camera hdmi_dlkm stub_dlkm swr_dmic_dlkm rx_macro_dlkm tx_macro_dlkm va_macro_dlkm wcd938x_slave_dlkm adsp_loader_dlkm native_dlkm platform_dlkm machine_dlkm tas256x_dlkm wcd938x_dlkm mbhc_dlkm wcd9xxx_dlkm wcd_core_dlkm bolero_cdc_dlkm swr_ctrl_dlkm swr_dlkm pinctrl_lpi_dlkm q6_dlkm apr_dlkm q6_notifier_dlkm q6_pdr_dlkm snd_event_dlkm pinctrl_wcd_dlkm sec_audio_sysfs slimbus_ngd stm_ts sec_cmd sec_tsp_dumpkey sec_common_fn sec_secure_touch sec_tclm_v2 sec_tsp_log kperfmon wlan(C) hid_aksys bt_fm_slim slimbus btpower tda18250 m88rs6000t qm1d1b0004 qm1d1c0042 mxl301rf r820t it913x fc0013 fc0012 fc0011 si2157 tua9001 fc2580 e4000 tda18212 tda18218 max2165 mc44s803 mxl5007t mxl5005s mt2131 qt1010 mt2266 mt2063 mt2060 msi001 xc4000 xc5000 tda9887 tea5761 tea5767 mt20xx tuner_simple tuner_types tuner_xc2028 aqc111 cdc_ncm cdc_eem rtl8150 nfc_sec rdbg llcc_perfmon ssg_iosched blk_sec_stats
<4>[    1.661052] [6:           init:    1]  CPU: 6 PID: 1 Comm: init Tainted: G S      WC        5.4.302-qgki-52214-g542c168ade6d-dirty #1
<4>[    1.661055] [6:           init:    1]  Hardware name: Samsung A52SXQ PROJECT (board-id,02) (DT)
<4>[    1.661058] [6:           init:    1]  pstate: 60400005 (nZCv daif +PAN -UAO)
<4>[    1.661061] [6:           init:    1]  pc : __ubsan_handle_cfi_check_fail+0x4c/0x54
<4>[    1.661063] [6:           init:    1]  lr : __ubsan_handle_cfi_check_fail+0x4c/0x54
<4>[    1.661065] [6:           init:    1]  sp : ffffffc010063a40
<4>[    1.661067] [6:           init:    1]  x29: ffffffc010063a40 x28: 0000000000000379
<4>[    1.661070] [6:           init:    1]  x27: 00000000000037e7 x26: ffffff8045f72f40
<4>[    1.661073] [6:           init:    1]  x25: 0000000000000000 x24: ffffffc00b66e000
<4>[    1.661075] [6:           init:    1]  x23: ffffff8045f72f40 x22: 0000000000000001
<4>[    1.661077] [6:           init:    1]  x21: 02b3a43e29242445 x20: ffffffc012b4a000
<4>[    1.661079] [6:           init:    1]  x19: ffffffc00b691048 x18: ffffffc010059048
<4>[    1.661081] [6:           init:    1]  x17: ffffffc012eb9000 x16: 0000000000000010
<4>[    1.661084] [6:           init:    1]  x15: ffffffc01188446c x14: 3a295d7368735f74
<4>[    1.661086] [6:           init:    1]  x13: 0000000000000330 x12: 0000000000000018
<4>[    1.661088] [6:           init:    1]  x11: 000000000000000a x10: 00000000ffffffff
<4>[    1.661091] [6:           init:    1]  x9 : 102999c091cf4200 x8 : 102999c091cf4200
<4>[    1.661093] [6:           init:    1]  x7 : 6c69616620494643 x6 : ffffffc012eb8aab
<4>[    1.661095] [6:           init:    1]  x5 : 0000000000000001 x4 : 0000000000000000
<4>[    1.661097] [6:           init:    1]  x3 : 0000000000002020 x2 : 0000000000000001
<4>[    1.661099] [6:           init:    1]  x1 : 0000000000000000 x0 : 0000000000000040
<4>[    1.661102] [6:           init:    1]  Call trace:
<4>[    1.661105] [6:           init:    1]   __ubsan_handle_cfi_check_fail+0x4c/0x54
<4>[    1.661113] [6:           init:    1]   __cfi_check_fail+0x3c/0x8c [rmnet_shs]
<4>[    1.661120] [6:           init:    1]   __cfi_check+0x3a8/0x3b0 [rmnet_shs]
<4>[    1.661123] [6:           init:    1]   __cfi_slowpath_diag+0x10c/0x164
<4>[    1.661127] [6:           init:    1]   do_one_initcall+0x2c0/0x478
<4>[    1.661130] [6:           init:    1]   do_init_module+0x4c/0x204
<4>[    1.661133] [6:           init:    1]   load_module+0x16f8/0x18d4
<4>[    1.661136] [6:           init:    1]   __arm64_sys_finit_module+0xb4/0xf0
<4>[    1.661139] [6:           init:    1]   el0_svc_common+0xc0/0x1b0
<4>[    1.661142] [6:           init:    1]   el0_svc_handler+0x24/0x84
<4>[    1.661145] [6:           init:    1]   el0_svc+0x8/0x140
<4>[    1.661147] [6:           init:    1]  ---[ end trace 91166a70db25a0a4 ]---

Change-Id: Ie89f1489dfb834836df13a30a0a03cb7eb0bf500
This commit is contained in:
Salvo Giangreco 2026-08-08 16:40:24 +02:00
commit e70533ab68
No known key found for this signature in database
GPG key ID: D211EC8F0F1F5BD7
2 changed files with 3 additions and 4 deletions

View file

@ -61,14 +61,14 @@ DATARMNET5fc54f7a13 __read_mostly={.notifier_call=DATARMNETe9173bbe0e,.priority=
"\x49\x32\x36\x33\x33\x36\x37\x39\x61\x65\x36\x34\x37\x61\x30\x36\x36\x62\x32\x38\x36\x32\x66\x39\x31\x33\x30\x31\x31\x64\x33\x33\x65\x33\x38\x32\x36\x63\x61\x32\x35"
,
"\x49\x36\x36\x39\x35\x65\x39\x38\x30\x63\x35\x65\x37\x62\x62\x32\x39\x33\x36\x35\x63\x34\x37\x65\x31\x35\x33\x36\x64\x63\x31\x34\x65\x66\x61\x31\x63\x30\x30\x34\x33"
};static int DATARMNET2cb9ae589c;int __init DATARMNET163e93649e(void){pr_info(
};static int DATARMNET2cb9ae589c;static int __init DATARMNET163e93649e(void){pr_info(
"\x25\x73\x28\x29\x3a\x20\x53\x74\x61\x72\x74\x69\x6e\x67\x20\x72\x6d\x6e\x65\x74\x20\x53\x48\x53\x20\x6d\x6f\x64\x75\x6c\x65\x20\x25\x73\x20" "\n"
,__func__,DATARMNETbc8418e817[(0xd2d+202-0xdf7)]);trace_rmnet_shs_high(
DATARMNET1790979ccf,DATARMNET72cb00fdc0,(0x16e8+787-0xc0c),(0x16e8+787-0xc0c),
(0x16e8+787-0xc0c),(0x16e8+787-0xc0c),NULL,NULL);if(DATARMNET0dbc627e8f()){
rm_err("\x25\x73",
"\x53\x48\x53\x5f\x47\x4e\x4c\x3a\x20\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x69\x6e\x69\x74\x20\x67\x65\x6e\x65\x72\x69\x63\x20\x6e\x65\x74\x6c\x69\x6e\x6b"
);}return register_netdevice_notifier(&DATARMNET5fc54f7a13);}void __exit
);}return register_netdevice_notifier(&DATARMNET5fc54f7a13);}static void __exit
DATARMNETf3298dab6f(void){trace_rmnet_shs_high(DATARMNET1790979ccf,
DATARMNET89958f9b63,(0x16e8+787-0xc0c),(0x16e8+787-0xc0c),(0x16e8+787-0xc0c),
(0x16e8+787-0xc0c),NULL,NULL);unregister_netdevice_notifier(&DATARMNET5fc54f7a13

View file

@ -20,7 +20,6 @@
#define DATARMNET8120d41372 (0xd1f+216-0xdf5)
#define DATARMNET47c2367f93 (0xd18+223-0xdf4)
extern struct DATARMNETa6b20d7e8b DATARMNETecc0627c70;extern int
rmnet_is_real_dev_registered(const struct net_device*real_dev);int __init
DATARMNET163e93649e(void);void __exit DATARMNETf3298dab6f(void);
rmnet_is_real_dev_registered(const struct net_device*real_dev);
#endif