syzbot


KMSAN: uninit-value in bpf_prog_run_generic_xdp

Status: upstream: reported on 2022/11/18 11:39
Reported-by: syzbot+0e6ddb1ef80986bdfe64@syzkaller.appspotmail.com
First crash: 357d, last: 13d
similar bugs (14):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in skb_release_data (3) C 10 132d 811d 0/24 auto-obsoleted due to no activity on 2022/11/17 07:20
upstream KMSAN: uninit-value in ipv6_find_tlv C 93 2d01h 1203d 0/24 upstream: reported C repro on 2019/08/13 14:48
upstream KMSAN: uninit-value in ax25cmp (2) C 51 69d 329d 0/24 closed as invalid on 2022/11/18 11:50
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) C 60369 now 265d 23/24 internal: reported C repro on 2022/03/09 07:32
upstream KMSAN: uninit-value in can_send C 630 7d22h 25d 23/24 upstream: reported C repro on 2022/11/03 16:22
upstream KMSAN: uninit-value in inet_frag_find (2) 2 321d 329d 0/24 auto-closed as invalid on 2022/04/11 17:13
upstream KMSAN: kernel-infoleak in _copy_to_iter (6) C 748 265d 354d 22/24 fixed on 2022/03/08 16:11
upstream KMSAN: uninit-value in eth_type_trans (2) C 2994 1h54m 1041d 0/24 upstream: reported C repro on 2020/01/22 16:47
upstream KMSAN: uninit-value in hsr_fill_frame_info (2) C 63 61d 47d 0/24 upstream: reported C repro on 2022/10/12 19:10
upstream KMSAN: uninit-value in __skb_checksum_complete (5) C 551 5h33m 836d 0/24 upstream: reported C repro on 2020/08/14 15:09
upstream KMSAN: uninit-value in erspan_build_header 38 5d06h 47d 0/24 upstream: reported on 2022/10/12 16:59
upstream KMSAN: uninit-value in ip_tunnel_xmit (3) C 1516 53d 741d 0/24 closed as invalid on 2022/10/12 18:48
upstream KMSAN: uninit-value in br_dev_xmit C 536 87d 1009d 0/24 upstream: reported C repro on 2020/02/24 08:38
upstream KMSAN: uninit-value in batadv_get_vid C 1943 2h01m 1009d 0/24 upstream: reported C repro on 2020/02/24 08:38

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in bpf_prog_run_generic_xdp+0x13ff/0x1a30 net/core/dev.c:4782
 bpf_prog_run_generic_xdp+0x13ff/0x1a30 net/core/dev.c:4782
 netif_receive_generic_xdp+0x639/0x910 net/core/dev.c:4845
 do_xdp_generic net/core/dev.c:4904 [inline]
 __netif_receive_skb_core+0x290f/0x6360 net/core/dev.c:5310
 __netif_receive_skb_one_core net/core/dev.c:5487 [inline]
 __netif_receive_skb+0xc8/0x5d0 net/core/dev.c:5603
 process_backlog+0x45a/0x890 net/core/dev.c:5931
 __napi_poll+0xe6/0x920 net/core/dev.c:6498
 napi_poll net/core/dev.c:6565 [inline]
 net_rx_action+0x9e8/0x1a20 net/core/dev.c:6676
 __do_softirq+0x1c5/0x7b9 kernel/softirq.c:571
 invoke_softirq+0x8f/0x100 kernel/softirq.c:445
 __irq_exit_rcu+0x5a/0x110 kernel/softirq.c:650
 irq_exit_rcu+0xe/0x10 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x9a/0xc0 arch/x86/kernel/apic/apic.c:1107
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649
 kmsan_get_shadow_origin_ptr+0x34/0xa0 mm/kmsan/shadow.c:97
 get_shadow_origin_ptr mm/kmsan/instrumentation.c:36 [inline]
 __msan_metadata_ptr_for_load_8+0x20/0x30 mm/kmsan/instrumentation.c:78
 unwind_get_return_address_ptr+0x97/0xc0 arch/x86/kernel/unwind_frame.c:28
 update_stack_state+0x177/0x1e0 arch/x86/kernel/unwind_frame.c:251
 unwind_next_frame+0x119/0x360 arch/x86/kernel/unwind_frame.c:315
 arch_stack_walk+0x1b9/0x280 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0xb2/0x100 kernel/stacktrace.c:122
 kmsan_save_stack_with_flags mm/kmsan/core.c:75 [inline]
 kmsan_internal_poison_memory+0x45/0x90 mm/kmsan/core.c:60
 kmsan_slab_free+0xcd/0x130 mm/kmsan/hooks.c:90
 slab_free_hook mm/slub.c:1694 [inline]
 slab_free_freelist_hook mm/slub.c:1750 [inline]
 slab_free mm/slub.c:3661 [inline]
 kmem_cache_free+0x365/0xdb0 mm/slub.c:3683
 security_file_free+0x15d/0x1a0 security/security.c:1548
 file_free fs/file_table.c:56 [inline]
 __fput+0xbed/0xea0 fs/file_table.c:333
 ____fput+0x1a/0x20 fs/file_table.c:348
 task_work_run+0x229/0x2c0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x2a9/0x320 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x16e/0x220 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x23/0x40 kernel/entry/common.c:296
 __do_fast_syscall_32+0xb1/0x100 arch/x86/entry/common.c:181
 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:246
 entry_SYSENTER_compat_after_hwframe+0x70/0x82

Uninit was created at:
 slab_post_alloc_hook mm/slab.h:742 [inline]
 slab_alloc_node mm/slub.c:3398 [inline]
 __kmem_cache_alloc_node+0x6ee/0xc90 mm/slub.c:3437
 __do_kmalloc_node mm/slab_common.c:954 [inline]
 __kmalloc_node_track_caller+0x117/0x3d0 mm/slab_common.c:975
 kmalloc_reserve net/core/skbuff.c:437 [inline]
 pskb_expand_head+0x23d/0x1970 net/core/skbuff.c:1832
 netif_receive_generic_xdp+0x4c6/0x910 net/core/dev.c:4837
 do_xdp_generic net/core/dev.c:4904 [inline]
 __netif_receive_skb_core+0x290f/0x6360 net/core/dev.c:5310
 __netif_receive_skb_one_core net/core/dev.c:5487 [inline]
 __netif_receive_skb+0xc8/0x5d0 net/core/dev.c:5603
 process_backlog+0x45a/0x890 net/core/dev.c:5931
 __napi_poll+0xe6/0x920 net/core/dev.c:6498
 napi_poll net/core/dev.c:6565 [inline]
 net_rx_action+0x9e8/0x1a20 net/core/dev.c:6676
 __do_softirq+0x1c5/0x7b9 kernel/softirq.c:571

CPU: 0 PID: 3506 Comm: syz-executor.2 Tainted: G        W          6.1.0-rc4-syzkaller-62821-gcb231e2f67ec #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
=====================================================

Crashes (102):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce-386 2022/11/15 12:56 https://github.com/google/kmsan.git master cb231e2f67ec 97de9cfc .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/11/09 10:49 https://github.com/google/kmsan.git master b1376a14297d 5fa28208 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/11/04 13:57 https://github.com/google/kmsan.git master 02b1fb26100c 6d752409 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/10/20 18:41 https://github.com/google/kmsan.git master 968c2729e576 a0fd4dab .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/10/13 03:31 https://github.com/google/kmsan.git master 968c2729e576 3f6b40a1 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/10/07 20:05 https://github.com/google/kmsan.git master 968c2729e576 0de35f24 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/10/05 00:30 https://github.com/google/kmsan.git master 968c2729e576 eab8f949 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/29 09:53 https://github.com/google/kmsan.git master 968c2729e576 1d385642 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/27 23:55 https://github.com/google/kmsan.git master 466a27efa4f0 75c78242 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/20 11:36 https://github.com/google/kmsan.git master 523d2ce66d07 7c41a9ba .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/15 02:59 https://github.com/google/kmsan.git master 8f4ae27df775 b884348d .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/15 01:44 https://github.com/google/kmsan.git master 8f4ae27df775 b884348d .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/09 18:17 https://github.com/google/kmsan.git master 4367d178d9eb 356d8217 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/09 14:33 https://github.com/google/kmsan.git master 4367d178d9eb 356d8217 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/07 12:32 https://github.com/google/kmsan.git master 4367d178d9eb c5b7bc57 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/05 13:56 https://github.com/google/kmsan.git master 4367d178d9eb 922294ab .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/03 14:39 https://github.com/google/kmsan.git master ad8e4e812ba8 28811d0a .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/09/02 12:37 https://github.com/google/kmsan.git master 717d319242de a805568e .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/31 13:52 https://github.com/google/kmsan.git master e23a6cc335d5 51e54e30 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/26 13:30 https://github.com/google/kmsan.git master ac3859c02d7f e5a303f1 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/19 18:30 https://github.com/google/kmsan.git master 1b070a5d1a2c 26a13b38 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/18 05:51 https://github.com/google/kmsan.git master 1b070a5d1a2c d58e263f .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/16 06:42 https://github.com/google/kmsan.git master 1b070a5d1a2c 7a7cb304 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/13 08:58 https://github.com/google/kmsan.git master 1b070a5d1a2c 8dfcaa3d .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/11 16:48 https://github.com/google/kmsan.git master 1b070a5d1a2c 787ed7e0 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/10 18:25 https://github.com/google/kmsan.git master 1b070a5d1a2c a6201f11 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/03 09:03 https://github.com/google/kmsan.git master 82224c6104a8 1c9013ac .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/08/01 05:12 https://github.com/google/kmsan.git master 3ea9edba19ef fef302b1 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/07/25 08:20 https://github.com/google/kmsan.git master 97117d69c353 22343af4 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/07/22 07:34 https://github.com/google/kmsan.git master 97117d69c353 5e6028b9 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/07/21 14:40 https://github.com/google/kmsan.git master 97117d69c353 6e67af9d .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/07/20 06:45 https://github.com/google/kmsan.git master 97117d69c353 775344bc .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/07/13 12:29 https://github.com/google/kmsan.git master 97117d69c353 5d921b08 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/07/12 16:59 https://github.com/google/kmsan.git master 97117d69c353 d91dd8ea .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/06/29 17:22 https://github.com/google/kmsan.git master ec1cbf8b060e 1434eec0 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/06/28 15:54 https://github.com/google/kmsan.git master ec1cbf8b060e ef82eb2c .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/06/21 06:42 https://github.com/google/kmsan.git master 7516e1b6d801 0fc5c330 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/06/20 15:22 https://github.com/google/kmsan.git master eb5e8c791e57 8d15e28d .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/06/19 18:18 https://github.com/google/kmsan.git master 74df87f93710 8f633d84 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/06/14 18:51 https://github.com/google/kmsan.git master 2f3064574275 127d1faf .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/05/16 14:55 https://github.com/google/kmsan.git master d6e2c8c7eb40 744a39e2 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/05/08 13:14 https://github.com/google/kmsan.git master d6e2c8c7eb40 e60b1103 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/05/04 07:01 https://github.com/google/kmsan.git master d6e2c8c7eb40 dc9e5259 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2022/01/03 16:49 https://github.com/google/kmsan.git master 81c325bbf94e 4a3f34f2 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
ci-upstream-kmsan-gce-386 2021/12/06 12:45 https://github.com/google/kmsan.git master cdfb223e7e63 579a8754 .config log report info KMSAN: uninit-value in bpf_prog_run_generic_xdp
* Struck through repros no longer work on HEAD.