* [dborkman:pr/bpf-tracing 2/2] kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_unspec' not handled in switch
@ 2019-10-21 13:04 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-21 13:04 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4261 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git pr/bpf-tracing
head: 7cd06ff47d15b389e9202feb7fcfe8328791659f
commit: 7cd06ff47d15b389e9202feb7fcfe8328791659f [2/2] bpf: add probe_read_{user,kernel} and probe_read_str_{user,kernel} helpers
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout 7cd06ff47d15b389e9202feb7fcfe8328791659f
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
kernel/trace/bpf_trace.c: In function 'tracing_func_check_warn':
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_unspec' not handled in switch [-Wswitch]
switch (func_id) {
^~~~~~
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_map_lookup_elem' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_map_update_elem' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_map_delete_elem' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_ktime_get_ns' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_trace_printk' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_get_prandom_u32' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_get_smp_processor_id' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_skb_store_bytes' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_l3_csum_replace' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_l4_csum_replace' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_tail_call' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_clone_redirect' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_get_current_pid_tgid' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_get_current_uid_gid' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_get_current_comm' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_get_cgroup_classid' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_skb_vlan_push' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_skb_vlan_pop' not handled in switch [-Wswitch]
>> kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_skb_get_tunnel_key' not handled in switch [-Wswitch]
vim +/BPF_FUNC_unspec +719 kernel/trace/bpf_trace.c
716
717 static void tracing_func_check_warn(enum bpf_func_id func_id)
718 {
> 719 switch (func_id) {
720 case BPF_FUNC_probe_write_user:
721 pr_warn_ratelimited("%s[%d] is installing a program with %s() helper that may corrupt user memory!",
722 current->comm, task_pid_nr(current),
723 bpf_func_id_str[func_id]);
724 break;
725 case BPF_FUNC_probe_read:
726 case BPF_FUNC_probe_read_str:
727 pr_warn_ratelimited("%s[%d] is installing a program with %s() helper which is deprecated. Use %s_user() or %s_kernel() instead!",
728 current->comm, task_pid_nr(current),
729 bpf_func_id_str[func_id],
730 bpf_func_id_str[func_id],
731 bpf_func_id_str[func_id]);
732 break;
733 }
734 }
735
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28622 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-21 13:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-21 13:04 [dborkman:pr/bpf-tracing 2/2] kernel/trace/bpf_trace.c:719:2: warning: enumeration value 'BPF_FUNC_unspec' not handled in switch kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.