Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] What do these kernel messages in dmesg mean?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 41

PostPosted: Sun Apr 27, 2025 5:04 pm    Post subject: [SOLVED] What do these kernel messages in dmesg mean? Reply with quote

Hi everyone. I am using Gentoo with a manually configured kernel. I get these errors at boot, they don't seem to impact usage of the system. But what do these messages mean and how can I get rid of them? Perhaps a kernel option that needs to be turned on?

I searched for these messages on the internet and found a few forum posts on the Arch Linux and Ubuntu forums but they don't explain what they mean.

Code:

[    2.336745] BPF: [135464] ENUM e
[    2.336747] BPF: size=4 vlen=13
[    2.336748] BPF: 
[    2.336749] BPF: Invalid name
[    2.336749] BPF:
[    2.555873] BPF:     0 type_id=107 bits_offset=1536
[    2.556344] BPF: 
[    2.556774] BPF: Invalid name
[    2.557243] BPF:
[    2.558152] BPF: [135475] FUNC 1_avx_finup
[    2.558592] BPF: type_id=135472
[    2.558980] BPF: 
[    2.558982] BPF: Invalid name
[    2.558983] BPF:
[    2.700690] BPF: [135475] FUNC 1_avx_finup
[    2.701069] BPF: type_id=135472
[    2.701438] BPF: 
[    2.701802] BPF: Invalid name
[    2.702095] BPF:
[    2.788862] BPF: [135475] FUNC 1_avx_finup
[    2.789170] BPF: type_id=135472
[    2.789473] BPF: 
[    2.789773] BPF: Invalid name
[    2.790077] BPF:
[    2.862115] BPF: [135475] FUNC 1_avx_finup
[    2.862419] BPF: type_id=135472
[    2.862715] BPF: 
[    2.863005] BPF: Invalid name
[    2.863292] BPF:
[    2.928970] BPF: [135467] FUNC 
[    2.929260] BPF: type_id=850
[    2.929542] BPF: 
[    2.929822] BPF: Invalid name
[    2.930098] BPF:
[    3.018932] BPF: [135467] FUNC 
[    3.019210] BPF: type_id=850
[    3.019482] BPF: 
[    3.019754] BPF: Invalid name
[    3.020014] BPF:
[    3.082271] BPF: [135467] FUNC 
[    3.082517] BPF: type_id=850
[    3.082760] BPF: 
[    3.082998] BPF: Invalid name
[    3.083243] BPF:
[    3.142259] BPF: [135467] FUNC 
[    3.142506] BPF: type_id=850
[    3.142744] BPF: 
[    3.142983] BPF: Invalid name
[    3.143218] BPF:
[    3.202309] BPF: [135472] FUNC 512_avx_update
[    3.202545] BPF: type_id=71446
[    3.202774] BPF: 
[    3.202999] BPF: Invalid name
[    3.203234] BPF:
[    3.268822] BPF: [135472] FUNC 512_avx_update
[    3.269065] BPF: type_id=71446
[    3.269302] BPF: 
[    3.269537] BPF: Invalid name
[    3.269762] BPF:
[    3.328857] BPF: [135472] FUNC 512_avx_update
[    3.329099] BPF: type_id=71446
[    3.329336] BPF: 
[    3.329571] BPF: Invalid name
[    3.329798] BPF:
[    3.398709] BPF: [135479] FUNC 
[    3.398943] BPF: type_id=121
[    3.399174] BPF: 
[    3.399402] BPF: Invalid name
[    3.399628] BPF:
[    3.495404] BPF: [135472] FUNC 
[    3.495634] BPF: type_id=123
[    3.495860] BPF: 
[    3.496079] BPF: Invalid name
[    3.496307] BPF:


Thanks


Last edited by yaslam on Mon Apr 28, 2025 8:21 am; edited 1 time in total
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 502

PostPosted: Mon Apr 28, 2025 4:28 am    Post subject: Reply with quote

Do you have these enabled?
Code:
Symbol: DEBUG_INFO_BTF [=n]                                                                           
  Type  : bool                                                                                         
  Defined at lib/Kconfig.debug:377                                                                     
    Prompt: Generate BTF type information                                                             
    Depends on: DEBUG_INFO [=y] && !DEBUG_INFO_SPLIT [=n] && !DEBUG_INFO_REDUCED [=n] && (!GCC_PLUGIN │ 
    Location:                                                                                           
      -> Kernel hacking                                                                               
        -> Compile-time checks and compiler options                                                   
  (1)     -> Generate BTF type information (DEBUG_INFO_BTF [=n])                                       
                                                                                                       
                                                                                                       
  Symbol: DEBUG_INFO_BTF_MODULES [=n]                                                                   
  Type  : bool                                                                                         
  Defined at lib/Kconfig.debug:412                                                                     
    Prompt: Generate BTF type information for kernel modules                                           
    Depends on: DEBUG_INFO [=y] && DEBUG_INFO_BTF [=n] && MODULES [=y] && PAHOLE_HAS_SPLIT_BTF [=y]   │ 
    Location:                                                                                           
      -> Kernel hacking                                                                                 
  (2)   -> Compile-time checks and compiler options                                                     
          -> Generate BTF type information for kernel modules (DEBUG_INFO_BTF_MODULES [=n])             
 

Unless you intentionally enabled this, are experimenting with bpf files, eBPF programs or need BTF enabled, you can likely disable this and then rebuild the kernel and modules.
See also:
https://forums.gentoo.org/viewtopic-p-8811286.html

You are not likely to see these types of errors in most other Linux distros, especially the pre-built binary ones like Ubuntu because they likely do not have it enabled in their stock kernels:
Code:
CO-RE requires to have BTF information describing the types of the kernel in order to perform the relocations. This is usually provided by the kernel itself when it's configured with CONFIG_DEBUG_INFO_BTF. However, this configuration is not enabled in all the distributions and it is not available on older kernels.

It's possible to use CO-RE in kernels without CONFIG_DEBUG_INFO_BTF support by providing the BTF information from an external source. BTFHUB contains BTF files to each released kernel not supporting BTF, for the most popular distributions.

https://github.com/aquasecurity/btfhub/blob/main/docs/btfgen-internals.md
https://github.com/aquasecurity/btfhub/

If you like the boring technicals:

https://www.kernel.org/doc/html/v6.1/bpf/verifier.html
https://docs.kernel.org/bpf/btf.html
https://docs.kernel.org/bpf/libbpf/libbpf_overview.html

Removed 'sid' from an URL.Chiitoo
Back to top
View user's profile Send private message
yaslam
n00b
n00b


Joined: 08 May 2024
Posts: 41

PostPosted: Mon Apr 28, 2025 8:08 am    Post subject: Reply with quote

rab0171610 wrote:
Do you have these enabled?
Code:
Symbol: DEBUG_INFO_BTF [=n]                                                                           
  Type  : bool                                                                                         
  Defined at lib/Kconfig.debug:377                                                                     
    Prompt: Generate BTF type information                                                             
    Depends on: DEBUG_INFO [=y] && !DEBUG_INFO_SPLIT [=n] && !DEBUG_INFO_REDUCED [=n] && (!GCC_PLUGIN │ 
    Location:                                                                                           
      -> Kernel hacking                                                                               
        -> Compile-time checks and compiler options                                                   
  (1)     -> Generate BTF type information (DEBUG_INFO_BTF [=n])                                       
                                                                                                       
                                                                                                       
  Symbol: DEBUG_INFO_BTF_MODULES [=n]                                                                   
  Type  : bool                                                                                         
  Defined at lib/Kconfig.debug:412                                                                     
    Prompt: Generate BTF type information for kernel modules                                           
    Depends on: DEBUG_INFO [=y] && DEBUG_INFO_BTF [=n] && MODULES [=y] && PAHOLE_HAS_SPLIT_BTF [=y]   │ 
    Location:                                                                                           
      -> Kernel hacking                                                                                 
  (2)   -> Compile-time checks and compiler options                                                     
          -> Generate BTF type information for kernel modules (DEBUG_INFO_BTF_MODULES [=n])             
 

Unless you intentionally enabled this, are experimenting with bpf files, eBPF programs or need BTF enabled, you can likely disable this and then rebuild the kernel and modules.
See also:
https://forums.gentoo.org/viewtopic-p-8811286.html


Indeed! I had both of those options enabled. Disabling them got rid of the messages. Thanks!

rab0171610 wrote:

You are not likely to see these types of errors in most other Linux distros, especially the pre-built binary ones like Ubuntu because they likely do not have it enabled in their stock kernels:
Code:
CO-RE requires to have BTF information describing the types of the kernel in order to perform the relocations. This is usually provided by the kernel itself when it's configured with CONFIG_DEBUG_INFO_BTF. However, this configuration is not enabled in all the distributions and it is not available on older kernels.

It's possible to use CO-RE in kernels without CONFIG_DEBUG_INFO_BTF support by providing the BTF information from an external source. BTFHUB contains BTF files to each released kernel not supporting BTF, for the most popular distributions.

https://github.com/aquasecurity/btfhub/blob/main/docs/btfgen-internals.md
https://github.com/aquasecurity/btfhub/

If you like the boring technicals:

https://www.kernel.org/doc/html/v6.1/bpf/verifier.html
https://docs.kernel.org/bpf/btf.html
https://docs.kernel.org/bpf/libbpf/libbpf_overview.html

Removed 'sid' from an URL.Chiitoo


Thank you! That is very helpful.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum