syzbot


KMSAN: uninit-value in skb_release_data (3)

Status: auto-obsoleted due to no activity on 2022/11/17 07:20
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+067cfb341865e4074630@syzkaller.appspotmail.com
First crash: 1287d, last: 607d
Discussions (1)
Title Replies (including bot) Last reply
KMSAN: uninit-value in skb_release_data (3) 0 (1) 2020/09/09 09:58
Similar bugs (21)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in skb_release_data (2) net 1 1869d 1869d 0/26 auto-closed as invalid on 2019/08/03 03:17
upstream KMSAN: uninit-value in skb_release_data net 1 2092d 2092d 0/26 closed as invalid on 2018/09/05 11:10
linux-5.15 KASAN: use-after-free Read in skb_release_data 1 345d 345d 0/3 auto-obsoleted due to no activity on 2023/08/06 13:46
upstream KASAN: use-after-free Write in skb_release_data (2) net C done unreliable 875 921d 1981d 0/26 auto-obsoleted due to no activity on 2023/04/16 03:59
linux-4.19 KASAN: use-after-free Write in skb_release_data (2) 3 1051d 1128d 0/1 auto-closed as invalid on 2021/08/30 12:28
upstream general protection fault in skb_release_data (2) net C done error 521 237d 1286d 0/26 upstream: reported C repro on 2020/09/09 09:58
upstream KMSAN: uninit-value in hid_connect kernel C 176 502d 853d 0/26 closed as invalid on 2022/11/03 08:52
upstream KMSAN: uninit-value in hsr_register_frame_in net C 197 240d 1862d 0/26 auto-obsoleted due to no activity on 2024/02/18 18:09
upstream KMSAN: kernel-infoleak in copyout (2) net C 6723 284d 1453d 22/26 fixed on 2023/06/08 14:41
upstream KMSAN: uninit-value in ipv6_find_tlv net C 271 325d 1679d 22/26 fixed on 2023/06/08 14:41
upstream KMSAN: uninit-value in bpf_prog_run_generic_xdp can bpf C 184 2d10h 486d 0/26 upstream: reported C repro on 2022/11/18 11:39
upstream KMSAN: uninit-value in ax25cmp (2) hams C 51 544d 805d 0/26 closed as invalid on 2022/11/18 11:50
upstream KMSAN: uninit-value in virtqueue_add (3) virtualization 13 501d 793d 0/26 auto-obsoleted due to no activity on 2023/02/12 03:53
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) net C 138977 388d 740d 22/26 fixed on 2023/02/24 13:50
upstream KMSAN: kernel-infoleak in __skb_datagram_iter net 68 174d 279d 23/26 fixed on 2023/09/28 17:51
upstream KMSAN: uninit-value in can_send can C 630 483d 501d 22/26 fixed on 2023/02/24 13:50
upstream KMSAN: uninit-value in IP6_ECN_decapsulate net C 981 90d 2006d 25/26 fixed on 2023/12/21 03:45
upstream KMSAN: uninit-value in inet_frag_find (2) net 2 797d 805d 0/26 auto-closed as invalid on 2022/04/11 17:13
upstream KMSAN: kernel-infoleak in _copy_to_iter (6) net C 748 741d 830d 20/26 fixed on 2022/03/08 16:11
upstream KMSAN: uninit-value in eth_type_trans (2) net C 4229 23h35m 1517d 0/26 upstream: reported C repro on 2020/01/22 16:47
upstream KMSAN: uninit-value in hsr_fill_frame_info (2) net C 65 240d 523d 0/26 auto-obsoleted due to no activity on 2023/10/30 13:38
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/10/28 07:30 20m retest repro https://github.com/google/kmsan.git master OK log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in compound_head include/linux/page-flags.h:182 [inline]
BUG: KMSAN: uninit-value in put_page include/linux/mm.h:1154 [inline]
BUG: KMSAN: uninit-value in __skb_frag_unref include/linux/skbuff.h:2999 [inline]
BUG: KMSAN: uninit-value in skb_release_data+0x4b4/0xde0 net/core/skbuff.c:604
CPU: 1 PID: 8773 Comm: syz-executor104 Not tainted 5.8.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x21c/0x280 lib/dump_stack.c:118
 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:121
 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215
 compound_head include/linux/page-flags.h:182 [inline]
 put_page include/linux/mm.h:1154 [inline]
 __skb_frag_unref include/linux/skbuff.h:2999 [inline]
 skb_release_data+0x4b4/0xde0 net/core/skbuff.c:604
 skb_release_all net/core/skbuff.c:664 [inline]
 __kfree_skb+0x9e/0x320 net/core/skbuff.c:678
 kfree_skb+0x323/0x390 net/core/skbuff.c:696
 validate_xmit_skb+0x1386/0x1aa0 net/core/dev.c:3659
 __dev_queue_xmit+0x2aa5/0x4470 net/core/dev.c:4123
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4164
 mrp_queue_xmit net/802/mrp.c:351 [inline]
 mrp_join_timer+0x1fc/0x380 net/802/mrp.c:595
 call_timer_fn+0x226/0x550 kernel/time/timer.c:1404
 expire_timers+0x4fc/0x780 kernel/time/timer.c:1449
 __run_timers+0xaf4/0xd30 kernel/time/timer.c:1773
 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786
 __do_softirq+0x2ea/0x7f5 kernel/softirq.c:293
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:23 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:50 [inline]
 do_softirq_own_stack+0x7c/0xa0 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:390 [inline]
 __irq_exit_rcu+0x226/0x270 kernel/softirq.c:420
 irq_exit_rcu+0xe/0x10 kernel/softirq.c:432
 sysvec_apic_timer_interrupt+0x107/0x130 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:593
RIP: 0010:console_unlock+0x195c/0x1e10 kernel/printk/printk.c:2503
Code: c8 00 00 00 48 8b 9c 24 c0 00 00 00 e8 5d d3 00 00 48 85 db 0f 85 89 00 00 00 4c 89 bc 24 28 01 00 00 ff b4 24 28 01 00 00 9d <44> 89 f0 34 01 22 44 24 3f 44 89 f3 0a 5c 24 2a 3c 01 74 76 f6 c3
RSP: 0018:ffff8880b7c8a830 EFLAGS: 00000282
RAX: 00007ffffffff000 RBX: 0000000000000000 RCX: ffff88811a098000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 000000000001b9a0
RBP: ffff8880b7c8a9b8 R08: ffffea000000000f R09: ffff88812fffa000
R10: 0000000000000000 R11: 00000000ffffffff R12: ffffffff925cad60
R13: ffff88811a0989d8 R14: 0000000000000000 R15: 0000000000000282
 vprintk_emit+0x48f/0x990 kernel/printk/printk.c:2028
 vprintk_default+0x90/0xa0 kernel/printk/printk.c:2046
 vprintk_func+0x2f7/0x300 kernel/printk/printk_safe.c:393
 printk+0x18b/0x1d3 kernel/printk/printk.c:2077
 addrconf_notify+0x2f35/0x6400 net/ipv6/addrconf.c:3542
 notifier_call_chain kernel/notifier.c:83 [inline]
 __raw_notifier_call_chain kernel/notifier.c:361 [inline]
 raw_notifier_call_chain+0x123/0x290 kernel/notifier.c:368
 call_netdevice_notifiers_info net/core/dev.c:2027 [inline]
 __dev_notify_flags+0x90e/0xb90 net/core/dev.c:8330
 rtnl_configure_link+0x492/0x4e0 net/core/rtnetlink.c:3028
 __rtnl_newlink net/core/rtnetlink.c:3357 [inline]
 rtnl_newlink+0x2f10/0x3ed0 net/core/rtnetlink.c:3397
 rtnetlink_rcv_msg+0x142b/0x18c0 net/core/rtnetlink.c:5460
 netlink_rcv_skb+0x6d7/0x7e0 net/netlink/af_netlink.c:2469
 rtnetlink_rcv+0x50/0x60 net/core/rtnetlink.c:5478
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x11c8/0x1490 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x173a/0x1840 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 ____sys_sendmsg+0xc82/0x1240 net/socket.c:2352
 ___sys_sendmsg net/socket.c:2406 [inline]
 __sys_sendmsg+0x6d1/0x840 net/socket.c:2439
 __do_sys_sendmsg net/socket.c:2448 [inline]
 __se_sys_sendmsg+0x97/0xb0 net/socket.c:2446
 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2446
 do_syscall_64+0xad/0x160 arch/x86/entry/common.c:386
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x441929
Code: Bad RIP value.
RSP: 002b:00007ffca7a67de8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441929
RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000005
RBP: 00007ffca7a67df0 R08: 0000000100000000 R09: 0000000100000000
R10: 0000000100000000 R11: 0000000000000246 R12: 00000000000244e3
R13: 0000000000402800 R14: 0000000000000000 R15: 0000000000000000

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:127
 kmsan_slab_alloc+0x8a/0xe0 mm/kmsan/kmsan_hooks.c:80
 slab_alloc_node mm/slub.c:2839 [inline]
 __kmalloc_node_track_caller+0xeab/0x12e0 mm/slub.c:4478
 __kmalloc_reserve net/core/skbuff.c:142 [inline]
 __alloc_skb+0x35f/0xb30 net/core/skbuff.c:210
 alloc_skb include/linux/skbuff.h:1083 [inline]
 mrp_pdu_init net/802/mrp.c:300 [inline]
 mrp_pdu_append_vecattr_event+0x4ad/0x2310 net/802/mrp.c:399
 mrp_attr_event+0x2a1/0x4e0 net/802/mrp.c:494
 mrp_mad_event net/802/mrp.c:574 [inline]
 mrp_join_timer+0x10e/0x380 net/802/mrp.c:591
 call_timer_fn+0x226/0x550 kernel/time/timer.c:1404
 expire_timers+0x4fc/0x780 kernel/time/timer.c:1449
 __run_timers+0xaf4/0xd30 kernel/time/timer.c:1773
 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786
 __do_softirq+0x2ea/0x7f5 kernel/softirq.c:293
=====================================================

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/08 14:01 https://github.com/google/kmsan.git master 3b3ea6028136 abf9ba4f .config console log report syz C ci-upstream-kmsan-gce
2022/07/14 21:26 https://github.com/google/kmsan.git master 97117d69c353 5d921b08 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in skb_release_data
2022/04/13 16:40 https://github.com/google/kmsan.git master 33d9269ef6e0 faabdb86 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in skb_release_data
2022/07/20 07:20 https://github.com/google/kmsan.git master 97117d69c353 775344bc .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in skb_release_data
2022/07/20 00:29 https://github.com/google/kmsan.git master 97117d69c353 775344bc .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in skb_release_data
2022/07/19 18:49 https://github.com/google/kmsan.git master 97117d69c353 72a3cc0c .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in skb_release_data
2022/07/19 17:03 https://github.com/google/kmsan.git master 97117d69c353 72a3cc0c .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in skb_release_data
2022/07/18 22:08 https://github.com/google/kmsan.git master 97117d69c353 ff988920 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in skb_release_data
2021/05/18 01:50 https://github.com/google/kmsan.git master bdefec9ab855 a343ba6b .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in skb_release_data
2021/05/11 13:42 https://github.com/google/kmsan.git master 4ebaab5fb428 ca873091 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in skb_release_data
* Struck through repros no longer work on HEAD.