Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp417041lqb; Sat, 16 Mar 2024 09:19:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUIHhd3xvUSgSkyysjAW9uKsMXqsCWKUTKinJjxYFMYmbVuEgRU4Y3kk+iOUdh/zDKTAueYrHcmRYPeddYGQ8oUMuWQkRO2CVn46jDCQ== X-Google-Smtp-Source: AGHT+IGkKjq70WGgAMNe1evhI5qvcanDHMo+xCpani3IEAAL9uBd9o2REaLLfrfcignaTLfCEBMF X-Received: by 2002:a05:6808:140b:b0:3c2:57fb:b3ff with SMTP id w11-20020a056808140b00b003c257fbb3ffmr9791626oiv.1.1710605982070; Sat, 16 Mar 2024 09:19:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710605982; cv=pass; d=google.com; s=arc-20160816; b=D3FR5v2Wvng3U7yVy/FeUqVsLav4fnY3UTqK4yINSz3F3TYf8+BryHLtqxjif/Rpq+ l0QMouB2Vy2n3IFkofjuVhZYvx5DfsjyKQC5rG9cElt8jvdiv3NVoqLxB2ay+pFkLkAf ypmZwpvKNyYc+L6nti/i5ag3oocW2YnHhDp3yArof1QyBLU9Xn8RHzIo0L8SRjgDAnCf DfAIyGU+aHK4f66p9oAndxsnFdrRv3vDh4DL+JKw8MLgz4sWCHPeTh/7QVTuDGWIcvEs WHvQQz7ilvjRx2ivSnVgqTE9y8WPRD4kqFgk6+tturpqLt4iwsJA6kwxC71cWp4OPYIc XEfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=Uf6W3Zg2dvW4+JRL0J6TTi5aicDL8OJz3V+JIREMUJw=; fh=pClbxXDaM5yQl5oOUVsvzZrnbttdLTOGRFG4+Ukx9Ck=; b=Mce5kjUc+rrw4Gfn7+A4LD5QAv2xX31uHcYzf8yrhSup6h6eo06czd1xAWjzliOCM+ 7bzen/mBuXd4KDXvYi9YR2V8ERfqmvZUI6wfB33j7RTjKSUvyon1UKpvQ9eyHDFAtjpu Omy8u1QJEJ+sB47uhL9LqJ/HNPCsgcJXzuOtmS8969lMuXfJPpVnNwHMHzynSZnnxH3f x/dl5EA9iLzxN7RYsO2akcHsS/cQa/xeP1WnhIoZ/cePnyrEZWzpe1ldhBOrhjVvm/7q 2uCBifMnes9al2YjW26HtugrkQX0RI1BTHWtMju3+Jf2qs5xccC5CqM9UL4UTHTVWvGq SoaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-105225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105225-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a5-20020a05622a02c500b0042eddd8fa1bsi5806520qtx.698.2024.03.16.09.19.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 09:19:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-105225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105225-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A2FF11C20CD0 for ; Sat, 16 Mar 2024 16:19:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EEB71BDCE; Sat, 16 Mar 2024 16:19:27 +0000 (UTC) Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0F711B977 for ; Sat, 16 Mar 2024 16:19:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710605966; cv=none; b=M1Yb4GuweE1Ki0VmTTNooBuxNC4HTBl5MUWJrquE4HegfFD6gZL5saMlmhDmH5Azd2nKJP5Va4vqma1zOxo+GANcuwr8VEHRuJsGML5Y8VC8HiVWCogP6kM3IdLN3o+uDG9wCc7JgetXvvf7lSXj72C+eKG/jxRUiCoFb9hc8zU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710605966; c=relaxed/simple; bh=+FhPLa0Rk5KaNidia6MCMfaPjXpKlOVaJgiPKSVbdE0=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=AI42VOhG3DsuXZX1uQTxKPLDXsVROFMsMGMRkWIsYHSaSfpD/0nkdfX4Z0PD+QiUwrb1Hb4nBx0rm2lJgjRw92VigPPF2McOG9RP6zzOD80euQY2r/9oxyK6zzh/GVmjZ9BU/R5GgNuRKPJNKTbaM0rAXb8gQKg51hqhuLIDbeg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f71.google.com with SMTP id ca18e2360f4ac-7c8a960bd9eso252558639f.0 for ; Sat, 16 Mar 2024 09:19:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710605964; x=1711210764; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Uf6W3Zg2dvW4+JRL0J6TTi5aicDL8OJz3V+JIREMUJw=; b=mP5pGpHRi6iDtotuCzjhL666Ch7t6wPCfIwaYZRWBnnuxjVmy+ct4eLTMERt8RyhPb 8LKuMQ73igyZ62DxbthUCu7rYWNURILU3wKTSUMPAWoCdEehfGTeZbSPXxbPjeyB/sUo QIfDx5hZrGTJ5azumHmB9Qt/wgg4M6k5CmQ+4meywlv8X53EUnTdBN/FxZmfMEWVf/+F mqVGPAd4DMv+IVmSuUdDWWHpPavgKXZ+ShmdxhdUfMok09uk81b1Tkq7A6OYABapLCat 8kFKSR0XdJAahMYg0YJWn41cfqbNcZNvdzWzb3MW4N1Mqngz1n224lUz+SkejSPsFmGS 4BRw== X-Forwarded-Encrypted: i=1; AJvYcCUrnwy8hto0dNd2X7Yva6p7fYfVydb9bDnCbRPfF4ggzPCFaUz65hhIESm3SfHm0/afxG5UxIQ477+3/8NA3OUR645Geo/7KAwUAxNd X-Gm-Message-State: AOJu0Yz51nQz7RSusvxhAUqJo13iyPz/U01hfVj0Y/6z+gplMTtHLnKZ XDmC3IMrj38ghJjPZRHuEa0rXEXdlOy8RNQo23GZEanvx0lduGS+6+/p72eGzjVUzGGqt5XdPcC NeTw7BtZQhZuyOdG4cWT4uAbDyLpSnlbLUFgvl5klMNs0jmQN1qJQBs0= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6638:62a7:b0:476:f043:d34b with SMTP id fh39-20020a05663862a700b00476f043d34bmr237781jab.0.1710605963997; Sat, 16 Mar 2024 09:19:23 -0700 (PDT) Date: Sat, 16 Mar 2024 09:19:23 -0700 In-Reply-To: <00000000000067f65105edbd295d@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000d5c35b0613c97c85@google.com> Subject: Re: [syzbot] [can?] [bpf?] KMSAN: uninit-value in bpf_prog_run_generic_xdp From: syzbot To: andrii@kernel.org, ast@kernel.org, ben-linux@fluff.org, bp@alien8.de, bpf@vger.kernel.org, daniel.sneddon@linux.intel.com, daniel@iogearbox.net, dave.hansen@linux.intel.com, glider@google.com, hpa@zytor.com, linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, mkl@pengutronix.de, netdev@vger.kernel.org, pbonzini@redhat.com, sathyanarayanan.kuppuswamy@linux.intel.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, x86@kernel.org, xrivendell7@gmail.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 66a27abac311 Merge tag 'powerpc-6.9-1' of git://git.kernel.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=14285ac9180000 kernel config: https://syzkaller.appspot.com/x/.config?x=48bb382b96e7eda7 dashboard link: https://syzkaller.appspot.com/bug?extid=0e6ddb1ef80986bdfe64 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17ab51c9180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=127d21f1180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/37968fa0451e/disk-66a27aba.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/5b288c5c3088/vmlinux-66a27aba.xz kernel image: https://storage.googleapis.com/syzbot-assets/792ddbf8146d/bzImage-66a27aba.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+0e6ddb1ef80986bdfe64@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in bpf_prog_run_generic_xdp+0x13a0/0x1ee0 net/core/dev.c:4876 bpf_prog_run_generic_xdp+0x13a0/0x1ee0 net/core/dev.c:4876 netif_receive_generic_xdp net/core/dev.c:4958 [inline] do_xdp_generic+0xb68/0x1440 net/core/dev.c:5017 __netif_receive_skb_core+0x2533/0x6190 net/core/dev.c:5358 __netif_receive_skb_one_core net/core/dev.c:5536 [inline] __netif_receive_skb+0xca/0xa00 net/core/dev.c:5652 process_backlog+0x480/0x8b0 net/core/dev.c:5981 __napi_poll+0xe7/0x980 net/core/dev.c:6632 napi_poll net/core/dev.c:6701 [inline] net_rx_action+0x89d/0x1820 net/core/dev.c:6813 __do_softirq+0x1c0/0x7d7 kernel/softirq.c:554 invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:633 [inline] irq_exit_rcu+0x6a/0x130 kernel/softirq.c:645 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x83/0x90 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702 __preempt_count_dec_and_test arch/x86/include/asm/preempt.h:94 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x33/0x60 kernel/locking/spinlock.c:194 unlock_hrtimer_base kernel/time/hrtimer.c:1021 [inline] hrtimer_start_range_ns+0x112c/0x11a0 kernel/time/hrtimer.c:1308 hrtimer_start include/linux/hrtimer.h:275 [inline] j1939_tp_schedule_txtimer+0xc2/0x100 net/can/j1939/transport.c:702 j1939_sk_send_loop net/can/j1939/socket.c:1164 [inline] j1939_sk_sendmsg+0x1a0e/0x2730 net/can/j1939/socket.c:1277 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x30f/0x380 net/socket.c:745 ____sys_sendmsg+0x877/0xb60 net/socket.c:2584 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2638 __sys_sendmsg net/socket.c:2667 [inline] __do_sys_sendmsg net/socket.c:2676 [inline] __se_sys_sendmsg net/socket.c:2674 [inline] __x64_sys_sendmsg+0x307/0x4a0 net/socket.c:2674 do_syscall_64+0xd5/0x1f0 entry_SYSCALL_64_after_hwframe+0x6d/0x75 Uninit was stored to memory at: pskb_expand_head+0x30f/0x19d0 net/core/skbuff.c:2253 netif_skb_check_for_xdp net/core/dev.c:4921 [inline] netif_receive_generic_xdp net/core/dev.c:4952 [inline] do_xdp_generic+0x931/0x1440 net/core/dev.c:5017 __netif_receive_skb_core+0x2533/0x6190 net/core/dev.c:5358 __netif_receive_skb_one_core net/core/dev.c:5536 [inline] __netif_receive_skb+0xca/0xa00 net/core/dev.c:5652 process_backlog+0x480/0x8b0 net/core/dev.c:5981 __napi_poll+0xe7/0x980 net/core/dev.c:6632 napi_poll net/core/dev.c:6701 [inline] net_rx_action+0x89d/0x1820 net/core/dev.c:6813 __do_softirq+0x1c0/0x7d7 kernel/softirq.c:554 Uninit was created at: slab_post_alloc_hook mm/slub.c:3804 [inline] slab_alloc_node mm/slub.c:3845 [inline] kmem_cache_alloc_node+0x613/0xc50 mm/slub.c:3888 kmalloc_reserve+0x13d/0x4a0 net/core/skbuff.c:577 __alloc_skb+0x35b/0x7a0 net/core/skbuff.c:668 alloc_skb include/linux/skbuff.h:1318 [inline] alloc_skb_with_frags+0xc8/0xbf0 net/core/skbuff.c:6504 sock_alloc_send_pskb+0xa81/0xbf0 net/core/sock.c:2795 sock_alloc_send_skb include/net/sock.h:1835 [inline] j1939_sk_alloc_skb net/can/j1939/socket.c:878 [inline] j1939_sk_send_loop net/can/j1939/socket.c:1142 [inline] j1939_sk_sendmsg+0xc0a/0x2730 net/can/j1939/socket.c:1277 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x30f/0x380 net/socket.c:745 ____sys_sendmsg+0x877/0xb60 net/socket.c:2584 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2638 __sys_sendmsg net/socket.c:2667 [inline] __do_sys_sendmsg net/socket.c:2676 [inline] __se_sys_sendmsg net/socket.c:2674 [inline] __x64_sys_sendmsg+0x307/0x4a0 net/socket.c:2674 do_syscall_64+0xd5/0x1f0 entry_SYSCALL_64_after_hwframe+0x6d/0x75 CPU: 0 PID: 5044 Comm: syz-executor640 Not tainted 6.8.0-syzkaller-11136-g66a27abac311 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 ===================================================== --- If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing.