@@ -210,10 +210,10 @@ static int klp_resolve_symbols(Elf64_Shdr *sechdrs, const char *strtab,
210
210
* and KSYM_NAME_LEN have the values we expect them to have.
211
211
*
212
212
* Because the value of MODULE_NAME_LEN can differ among architectures,
213
- * we use the smallest/strictest upper bound possible (248 , based on
213
+ * we use the smallest/strictest upper bound possible (56 , based on
214
214
* the current definition of MODULE_NAME_LEN) to prevent overflows.
215
215
*/
216
- BUILD_BUG_ON (MODULE_NAME_LEN < 248 || KSYM_NAME_LEN != 512 );
216
+ BUILD_BUG_ON (MODULE_NAME_LEN < 56 || KSYM_NAME_LEN != 512 );
217
217
218
218
relas = (Elf_Rela * ) relasec -> sh_addr ;
219
219
/* For each rela in this klp relocation section */
@@ -227,7 +227,7 @@ static int klp_resolve_symbols(Elf64_Shdr *sechdrs, const char *strtab,
227
227
228
228
/* Format: .klp.sym.sym_objname.sym_name,sympos */
229
229
cnt = sscanf (strtab + sym -> st_name ,
230
- ".klp.sym.%247 [^.].%511[^,],%lu" ,
230
+ ".klp.sym.%55 [^.].%511[^,],%lu" ,
231
231
sym_objname , sym_name , & sympos );
232
232
if (cnt != 3 ) {
233
233
pr_err ("symbol %s has an incorrectly formatted name\n" ,
0 commit comments