Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp71990lqh; Wed, 27 Mar 2024 15:18:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWy3ribW1VW4j9tu7sJbz+SKZ8Vdp47/bGUdg83IWbCQ3BKu0A2atSpB29zEoS5hAqOHmkZTTjr1qofJD75ZyR64CVI4iUHW4/TRQ8p7A== X-Google-Smtp-Source: AGHT+IGgjGFcFjcOc8wL6YjFWzeAxCm8lACf/YaFsHDuzg9jysFVay8kdQDXTGP7bL22zwPMennB X-Received: by 2002:a81:8397:0:b0:611:1eee:3af3 with SMTP id t145-20020a818397000000b006111eee3af3mr1127258ywf.7.1711577933531; Wed, 27 Mar 2024 15:18:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711577933; cv=pass; d=google.com; s=arc-20160816; b=ejiqN3Ku3Dvd1f1QYbmPQSrM9oTuS/WqkkYOsft7W953qLfvGZT2NRaKXRr2IYmOUn Lp3PhTmHQbCtaScikl8O2bCAuYA16PbOiBTap3iDnh6xO2ZO7HXpDLf0+JTc+H9r7DhM I8JU+gjZDBV569m/lU+6muvEb/rG84j4H2l/K6Il4DTMOHk8RwSin/GmkHEO0qps+/X1 WKS1i4YL/R99VhKWcj2XanEtOse+RavmnCV/ppcGo+e0mDKi7rg3REE3sDA0TDNR+DFP PGRKEevOnCs3pBY16E36n8tOPwuZLcRubPEwLdi6SUcmybn/5Cf4/lfIVZRZZ06G9JzG Bi+w== 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=BXJswU0jfXaplFI+x0DV+weneotNUeY/bMnz2lIVJHY=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=imwod+xDZem+IKDrwja+5KapcD8pT4MW00WogeuN868ImwygifSfaPZEQVO2ZxhPcX jyH8XCwvcS3ZqJxVE0bn6YxX1ZDQiMjPu6mMA6ltPgJK/GWlrAtxFfgryrD8gM4qT1v1 tgWizKa6BUAhO5PPDXOlbVdqH9aufMmEvCBujq6oEesNAVewi2vDjKYUU810FugxPzaC Fsnpc02ZyMWgw2L/rOKsAePCOEBnBClNKcX9zX/+9LqiGYH0jJCFfRW107/o4zRWJJpJ 9HQXgVxSCQLodcx41kyp0+sB2VAo0L4LAt9UVIYFKOcI3Crj4lX7PtKlmrwG8DigXiS+ djBQ==; 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-122084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122084-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i9-20020ac85c09000000b00431472bcab9si95500qti.357.2024.03.27.15.18.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 15:18:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-122084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122084-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 145D71C2C26D for ; Wed, 27 Mar 2024 22:18:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD6EC153805; Wed, 27 Mar 2024 22:18:46 +0000 (UTC) Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (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 9CDE5152E03 for ; Wed, 27 Mar 2024 22:18:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711577926; cv=none; b=PxgZEd32wVSIjLjCEB8izSY37XKDY5blDoIQCOQ2fpgZGjgZZFj0EjoSp8zWLQWfUzr/ttO/sU3B09e1HeAIKFpE3euJqoGXDZMo3CxJFhEzzAjE6RqhCXrZBOwp42DN1OyYE1TFp/xIKWawLO85K94oyf3a3CjgVoe8316haek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711577926; c=relaxed/simple; bh=GEVd/ZHs22Oo1fsjgBg0d3C+YaEbF9o9uCOPozoSIpw=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=b4L7WrlQlxYT8pUVUj6MayaHgvjTImCP0+68RcbRI7ZiccWGazYe+OzFB/n1GgBgWS+SETVA2jD9+yIYV98VDDMKyfcYPC94bss5s2C5OKhPiLa5z1tbmFl30QtJUYyUpzCI5qUptkAfhB20Y1REEUlzkUnB2sxdyNraxnSmdVo= 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.69 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-f69.google.com with SMTP id ca18e2360f4ac-7cbef888187so25902939f.2 for ; Wed, 27 Mar 2024 15:18:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711577924; x=1712182724; 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=BXJswU0jfXaplFI+x0DV+weneotNUeY/bMnz2lIVJHY=; b=BqBK9aeQXTt9ZO7+nCxp6K5hDAXbNQ3xXiD15Wf3jWsye8hnJpOHhY/R9POU7vLp4x k4Ymx/yrkLGZadaWfHLWokoCJKlgF/oDgpPga4n44TymxhXXY2B1iK7kEXRofaWQc1Wf adWXEzubLQa3DJTeudEgKyqxRJr1hdTeha0g5OFmM3YoUGdIMRIZfuVPQOmJ3LPWvDfr gzLhp0rEh2eLaBwySb6aJJa3HBqBC1JwOP5jPwkAd6LWppzo/VuvVokFWx1U4T+3V0m2 vDfjl4TNVD7tBNO5T/xWZh7DMxUBXGDZ8fvo95rKCAQ6/9vzKo1/vgpxN31YvfyJXQYF uxhg== X-Gm-Message-State: AOJu0YwdThLl+rAWmaICdqg13orFve22M/fyIpvo0X4Q4xB263D3fWl0 JfByEVTl/EwoRJ63tQlyL94DrVJ9R4vXmd4pX8FLqzjqSfJoEMnr3pb+e/SWkZ82U6XWMcqGvHW dsWD1IVQsygHZQlaB/UO0hOfxdgmFIT6uz7Y0u9MMBBXlxsWtEs+GqdRnFw== 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:12ca:b0:47c:14bd:41aa with SMTP id v10-20020a05663812ca00b0047c14bd41aamr34400jas.0.1711577923889; Wed, 27 Mar 2024 15:18:43 -0700 (PDT) Date: Wed, 27 Mar 2024 15:18:43 -0700 In-Reply-To: <0000000000006f876b061478e878@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000028c0be0614abcafb@google.com> Subject: Re: [syzbot] Re: [syzbot] [bpf?] [net?] KMSAN: uninit-value in dev_map_lookup_elem From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: Re: [syzbot] [bpf?] [net?] KMSAN: uninit-value in dev_map_lookup_elem Author: martin.lau@linux.dev On 3/25/24 2:36 AM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 5e74df2f8f15 Merge tag 'x86-urgent-2024-03-24' of git://gi.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=148872a5180000 > kernel config: https://syzkaller.appspot.com/x/.config?x=e6bd769cb793b98a > dashboard link: https://syzkaller.appspot.com/bug?extid=1a3cf6f08d68868f9db3 > 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=15921a6e180000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12e081f1180000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/1a82880723a7/disk-5e74df2f.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/fd3046ac43b9/vmlinux-5e74df2f.xz > kernel image: https://storage.googleapis.com/syzbot-assets/2097be59cbc1/bzImage-5e74df2f.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+1a3cf6f08d68868f9db3@syzkaller.appspotmail.com > > ===================================================== > BUG: KMSAN: uninit-value in __dev_map_lookup_elem kernel/bpf/devmap.c:441 [inline] > BUG: KMSAN: uninit-value in dev_map_lookup_elem+0xf3/0x170 kernel/bpf/devmap.c:796 > __dev_map_lookup_elem kernel/bpf/devmap.c:441 [inline] > dev_map_lookup_elem+0xf3/0x170 kernel/bpf/devmap.c:796 > ____bpf_map_lookup_elem kernel/bpf/helpers.c:42 [inline] > bpf_map_lookup_elem+0x5c/0x80 kernel/bpf/helpers.c:38 > ___bpf_prog_run+0x13fe/0xe0f0 kernel/bpf/core.c:1997 > __bpf_prog_run256+0xb5/0xe0 kernel/bpf/core.c:2237 > bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline] > __bpf_prog_run include/linux/filter.h:657 [inline] > bpf_prog_run include/linux/filter.h:664 [inline] > __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline] > bpf_trace_run5+0x16f/0x350 kernel/trace/bpf_trace.c:2423 > __bpf_trace_ext4_remove_blocks+0x45/0x60 include/trace/events/ext4.h:1984 > __traceiter_ext4_remove_blocks+0xb5/0x170 include/trace/events/ext4.h:1984 > trace_ext4_remove_blocks include/trace/events/ext4.h:1984 [inline] > ext4_remove_blocks fs/ext4/extents.c:2463 [inline] > ext4_ext_rm_leaf fs/ext4/extents.c:2686 [inline] > ext4_ext_remove_space+0x4e30/0x7e00 fs/ext4/extents.c:2934 > ext4_ext_truncate+0x1e3/0x390 fs/ext4/extents.c:4440 > ext4_truncate+0x14c6/0x1e10 fs/ext4/inode.c:4146 > ext4_evict_inode+0x1886/0x24d0 fs/ext4/inode.c:258 > evict+0x3ae/0xa60 fs/inode.c:667 > iput_final fs/inode.c:1741 [inline] > iput+0x9ca/0xe10 fs/inode.c:1767 > d_delete_notify include/linux/fsnotify.h:307 [inline] > vfs_rmdir+0x53c/0x790 fs/namei.c:4222 > do_rmdir+0x630/0x8b0 fs/namei.c:4268 > __do_sys_rmdir fs/namei.c:4287 [inline] > __se_sys_rmdir fs/namei.c:4285 [inline] > __x64_sys_rmdir+0x78/0xb0 fs/namei.c:4285 > do_syscall_64+0xd5/0x1f0 > entry_SYSCALL_64_after_hwframe+0x6d/0x75 > > Local variable stack created at: > __bpf_prog_run256+0x45/0xe0 kernel/bpf/core.c:2237 > bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline] > __bpf_prog_run include/linux/filter.h:657 [inline] > bpf_prog_run include/linux/filter.h:664 [inline] > __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline] > bpf_trace_run5+0x16f/0x350 kernel/trace/bpf_trace.c:2423 > > CPU: 0 PID: 5017 Comm: syz-executor365 Not tainted 6.8.0-syzkaller-13236-g5e74df2f8f15 #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 > ===================================================== > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > If the report is already addressed, let syzbot know by replying with: > #syz fix: exact-commit-title > > 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. > > If you want to overwrite report's subsystems, reply with: > #syz set subsystems: new-subsystem > (See the list of subsystem names on the web dashboard) > > If the report is a duplicate of another one, reply with: > #syz dup: exact-subject-of-another-report > > If you want to undo deduplication, reply with: > #syz undup > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/martin.lau/bpf-next.git interpreter.kmsan