syzbot


KMSAN: uninit-value in __dequeue_signal

Status: closed as invalid on 2024/08/22 13:18
Subsystems: cgroups mm
[Documentation on labels]
First crash: 203d, last: 203d

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in __memcg_slab_free_hook+0x3cc/0x570 mm/memcontrol.c:3043
 __memcg_slab_free_hook+0x3cc/0x570 mm/memcontrol.c:3043
 memcg_slab_free_hook mm/slub.c:2186 [inline]
 slab_free mm/slub.c:4470 [inline]
 kmem_cache_free+0x67f/0xbb0 mm/slub.c:4548
 __sigqueue_free kernel/signal.c:451 [inline]
 collect_signal kernel/signal.c:594 [inline]
 __dequeue_signal+0xa58/0xad0 kernel/signal.c:616
 dequeue_signal+0x14b/0xb20 kernel/signal.c:639
 get_signal+0xb46/0x2d00 kernel/signal.c:2796
 arch_do_signal_or_restart+0x53/0xcb0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x5d/0x170 kernel/entry/common.c:218
 do_int80_emulation+0xfc/0x190 arch/x86/entry/common.c:256
 asm_int80_emulation+0x1f/0x30 arch/x86/include/asm/idtentry.h:626

Uninit was created at:
 __alloc_pages_noprof+0x9d6/0xe70 mm/page_alloc.c:4723
 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline]
 alloc_pages_node_noprof include/linux/gfp.h:296 [inline]
 alloc_slab_page mm/slub.c:2321 [inline]
 allocate_slab+0x203/0x1220 mm/slub.c:2484
 new_slab mm/slub.c:2537 [inline]
 ___slab_alloc+0x12ef/0x35e0 mm/slub.c:3723
 __slab_alloc mm/slub.c:3813 [inline]
 __slab_alloc_node mm/slub.c:3866 [inline]
 slab_alloc_node mm/slub.c:4025 [inline]
 __kmalloc_cache_noprof+0x5db/0xb00 mm/slub.c:4184
 kmalloc_noprof include/linux/slab.h:681 [inline]
 kzalloc_noprof include/linux/slab.h:807 [inline]
 inetdev_init+0x111/0x8a0 net/ipv4/devinet.c:274
 inetdev_event+0xbf9/0x1f60 net/ipv4/devinet.c:1565
 notifier_call_chain kernel/notifier.c:93 [inline]
 raw_notifier_call_chain+0xe8/0x440 kernel/notifier.c:461
 call_netdevice_notifiers_info+0x1be/0x2b0 net/core/dev.c:1994
 call_netdevice_notifiers_extack net/core/dev.c:2032 [inline]
 call_netdevice_notifiers net/core/dev.c:2046 [inline]
 register_netdevice+0x2107/0x22d0 net/core/dev.c:10468
 veth_newlink+0x9f6/0x1750 drivers/net/veth.c:1829
 rtnl_newlink_create net/core/rtnetlink.c:3510 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3730 [inline]
 rtnl_newlink+0x2e8f/0x41f0 net/core/rtnetlink.c:3743
 rtnetlink_rcv_msg+0x12fc/0x1410 net/core/rtnetlink.c:6647
 netlink_rcv_skb+0x375/0x650 net/netlink/af_netlink.c:2550
 rtnetlink_rcv+0x34/0x40 net/core/rtnetlink.c:6665
 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline]
 netlink_unicast+0xf52/0x1260 net/netlink/af_netlink.c:1357
 netlink_sendmsg+0x10da/0x11e0 net/netlink/af_netlink.c:1901
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x30f/0x380 net/socket.c:745
 __sys_sendto+0x685/0x830 net/socket.c:2204
 __do_compat_sys_socketcall net/compat.c:475 [inline]
 __se_compat_sys_socketcall+0xceb/0x1a20 net/compat.c:423
 __ia32_compat_sys_socketcall+0x6b/0xa0 net/compat.c:423
 ia32_sys_call+0x3710/0x40d0 arch/x86/include/generated/asm/syscalls_32.h:103
 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
 __do_fast_syscall_32+0xb0/0x110 arch/x86/entry/common.c:386
 do_fast_syscall_32+0x38/0x80 arch/x86/entry/common.c:411
 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:449
 entry_SYSENTER_compat_after_hwframe+0x84/0x8e

CPU: 1 UID: 0 PID: 6271 Comm: syz.4.298 Not tainted 6.11.0-rc1-syzkaller-00004-gdc1c8034e31b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
=====================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/29 19:08 upstream dc1c8034e31b 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in __dequeue_signal
* Struck through repros no longer work on HEAD.