syzbot


KMSAN: uninit-value in __copy_skb_header (3)

Status: auto-obsoleted due to no activity on 2022/09/09 16:00
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+47c1f21c8f16b76ba687@syzkaller.appspotmail.com
First crash: 1600d, last: 1577d
Discussions (1)
Title Replies (including bot) Last reply
KMSAN: uninit-value in __copy_skb_header (3) 0 (1) 2019/11/09 09:34
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in __copy_skb_header (2) net 3 1902d 1902d 0/26 auto-closed as invalid on 2019/07/02 02:46
upstream KMSAN: uninit-value in __copy_skb_header sctp 1 2141d 2141d 0/26 closed as invalid on 2018/06/27 15:08
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/09/09 11:27 21m retest repro https://github.com/google/kmsan.git master OK log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in __skb_dst_copy include/net/dst.h:279 [inline]
BUG: KMSAN: uninit-value in skb_dst_copy include/net/dst.h:285 [inline]
BUG: KMSAN: uninit-value in __copy_skb_header+0x2bf/0x720 net/core/skbuff.c:935
CPU: 0 PID: 11989 Comm: syz-executor450 Not tainted 5.4.0-rc5+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x191/0x1f0 lib/dump_stack.c:113
 kmsan_report+0x128/0x220 mm/kmsan/kmsan_report.c:108
 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:245
 __skb_dst_copy include/net/dst.h:279 [inline]
 skb_dst_copy include/net/dst.h:285 [inline]
 __copy_skb_header+0x2bf/0x720 net/core/skbuff.c:935
 __skb_clone+0xa2/0x970 net/core/skbuff.c:987
 skb_clone+0x402/0x5d0 net/core/skbuff.c:1455
 do_one_broadcast net/netlink/af_netlink.c:1435 [inline]
 netlink_broadcast_filtered+0xbec/0x1c10 net/netlink/af_netlink.c:1510
 netlink_broadcast+0xf6/0x110 net/netlink/af_netlink.c:1534
 uevent_net_broadcast_untagged lib/kobject_uevent.c:330 [inline]
 kobject_uevent_net_broadcast lib/kobject_uevent.c:408 [inline]
 kobject_uevent_env+0x1c4e/0x27c0 lib/kobject_uevent.c:592
 kobject_uevent+0x6f/0x80 lib/kobject_uevent.c:641
 device_add+0x25a3/0x2df0 drivers/base/core.c:2201
 hci_register_dev+0x61a/0xfd0 net/bluetooth/hci_core.c:3308
 hci_uart_register_dev drivers/bluetooth/hci_ldisc.c:682 [inline]
 hci_uart_set_proto drivers/bluetooth/hci_ldisc.c:706 [inline]
 hci_uart_tty_ioctl+0xe61/0x1140 drivers/bluetooth/hci_ldisc.c:760
 tty_ioctl+0x23e2/0x3100 drivers/tty/tty_io.c:2666
 do_vfs_ioctl+0xea8/0x2c50 fs/ioctl.c:46
 ksys_ioctl fs/ioctl.c:713 [inline]
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl+0x1da/0x270 fs/ioctl.c:718
 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:718
 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x4412f9
Code: e8 fc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 9b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd6393cca8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412f9
RDX: 0000000000000001 RSI: 00000000400455c8 RDI: 0000000000000003
RBP: 000000000001cbad R08: 00000009004002c8 R09: 00000009004002c8
R10: 00000009004002c8 R11: 0000000000000246 R12: 0000000000402120
R13: 00000000004021b0 R14: 0000000000000000 R15: 0000000000000000

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:151 [inline]
 kmsan_internal_poison_shadow+0x60/0x120 mm/kmsan/kmsan.c:134
 kmsan_slab_alloc+0xaa/0x120 mm/kmsan/kmsan_hooks.c:88
 slab_alloc_node mm/slub.c:2799 [inline]
 slab_alloc mm/slub.c:2808 [inline]
 kmem_cache_alloc+0x8d9/0xd20 mm/slub.c:2813
 skb_clone+0x326/0x5d0 net/core/skbuff.c:1448
 do_one_broadcast net/netlink/af_netlink.c:1435 [inline]
 netlink_broadcast_filtered+0xbec/0x1c10 net/netlink/af_netlink.c:1510
 netlink_broadcast+0xf6/0x110 net/netlink/af_netlink.c:1534
 uevent_net_broadcast_untagged lib/kobject_uevent.c:330 [inline]
 kobject_uevent_net_broadcast lib/kobject_uevent.c:408 [inline]
 kobject_uevent_env+0x1c4e/0x27c0 lib/kobject_uevent.c:592
 kobject_uevent+0x6f/0x80 lib/kobject_uevent.c:641
 device_add+0x25a3/0x2df0 drivers/base/core.c:2201
 hci_register_dev+0x61a/0xfd0 net/bluetooth/hci_core.c:3308
 hci_uart_register_dev drivers/bluetooth/hci_ldisc.c:682 [inline]
 hci_uart_set_proto drivers/bluetooth/hci_ldisc.c:706 [inline]
 hci_uart_tty_ioctl+0xe61/0x1140 drivers/bluetooth/hci_ldisc.c:760
 tty_ioctl+0x23e2/0x3100 drivers/tty/tty_io.c:2666
 do_vfs_ioctl+0xea8/0x2c50 fs/ioctl.c:46
 ksys_ioctl fs/ioctl.c:713 [inline]
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl+0x1da/0x270 fs/ioctl.c:718
 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:718
 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
=====================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/03 02:29 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report syz C ci-upstream-kmsan-gce
2019/11/24 00:29 https://github.com/google/kmsan.git master 4a1d41e39c62 598ca6c8 .config console log report ci-upstream-kmsan-gce
2019/11/22 04:10 https://github.com/google/kmsan.git master 287021d5afde 8098ea0f .config console log report ci-upstream-kmsan-gce
2019/11/07 07:53 https://github.com/google/kmsan.git master 10459ed9b198 d797d201 .config console log report ci-upstream-kmsan-gce
2019/11/01 00:57 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.