]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - scripts/kallsyms.c
iio:adc:max1118 Fix alignment of timestamp and data leak issues
[people/arne_f/kernel.git] / scripts / kallsyms.c
index 9ee9bf7fd1a2113bfb869cf53b6d26d2f0852455..b43531899648aa31e87f3973c068c6069039ffeb 100644 (file)
@@ -160,6 +160,9 @@ static int read_symbol(FILE *in, struct sym_entry *s)
        /* exclude debugging symbols */
        else if (stype == 'N' || stype == 'n')
                return -1;
+       /* exclude s390 kasan local symbols */
+       else if (!strncmp(sym, ".LASANPC", 8))
+               return -1;
 
        /* include the type field in the symbol name, so that it gets
         * compressed together */
@@ -221,6 +224,7 @@ static int symbol_valid(struct sym_entry *s)
 
        static char *special_prefixes[] = {
                "__crc_",               /* modversions */
+               "__efistub_",           /* arm64 EFI stub namespace */
                NULL };
 
        static char *special_suffixes[] = {
@@ -506,6 +510,8 @@ static void build_initial_tok_table(void)
                                table[pos] = table[i];
                        learn_symbol(table[pos].sym, table[pos].len);
                        pos++;
+               } else {
+                       free(table[i].sym);
                }
        }
        table_cnt = pos;