Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2699840lqp; Mon, 25 Mar 2024 07:03:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8hOeko9M5P6grX1QcpvSmqYISWPRGRQYnJFI1qRx2Z6dNeVcTWHlLUZEueKHPtV+HmjY9AnpRWQg70tM9tTbhwdepOZDgViJa/DOGcQ== X-Google-Smtp-Source: AGHT+IHLCVXpgUh4cH0fiDO7hVR3Q2QQQ7p4yHvZegpod9/Y6e9CA8A8ChN/FGY6iAnBR/koFcH3 X-Received: by 2002:a6b:4414:0:b0:7d0:23a3:3a68 with SMTP id r20-20020a6b4414000000b007d023a33a68mr7842756ioa.11.1711375385869; Mon, 25 Mar 2024 07:03:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711375385; cv=pass; d=google.com; s=arc-20160816; b=dp30WlEhDQvfaZ4I0aORXl1HjT/s+cXDsmGKSiO20qpTZql8JZvhUppJNmfTuhVh86 LUPdz6h1o3GkdmY1Bb3JpfsQiWLfh0WRk+XBWbY5kwvdUBnocCGqf+hX0yyfE2ZLS3fc /Ys9TdO2zmuysFFXGuX7zgne3BftGN5KKZCYTuPaIJRQciKcc2CRqnvdGeX1YQJNXY7E q89EAx7zy3s63C+YLHpFvD7qmKr6hMia9UuMVSsxa+b06W4M7nCKfrg2w7WRD5+ZdLpZ YlJbacsc5+ddLvSrEbI3fomRdN0WV6lNLNZAOMJlqjVZ77opI3EdDfDrsC96r2V5FHLC 7+9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=TSNIqPkYvxd6e8DwhHfzguzBJvUVKgTbV1cel72QDnY=; fh=HA1F2UsSfPReo9Pt/YtO5gGV8HH0VopWBbMDp8zv2wc=; b=zdI5SQ0U1XMJNvcuecvknvmn8c5G6cJxMY2sB1TYtXxPA6iqGp0ynSG1OydTjhyfcG xtTXiE/CEKNIi0XTZ/4cuR0B8QJbno7Z7fjpoh9pFH2LwnBwjlMLY03ljutoqpLE9eIJ CJ/81bJeKvvgMzrkLQZlfPpLeH+YYZ+GQUCAMSr6VsN6gXM2uM2rFeNmqpmO7fmfmWbi XRMJa0eEsH/K0hnb4hsYbOfVDKvlF/7GR4UvUzwgDFY/wck8YTlz0f4aX60kI2HJyv4o tP4wO3DVdmM7NamQFYgkDMbeUFB6epjzMsCrT5sxBUuncgtc1K1qJrUcADVFAC6ftCo4 CdqQ==; 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-116753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116753-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 19-20020a0566380a5300b004743ab548cfsi2800244jap.146.2024.03.25.07.03.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:03:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::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-116753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116753-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 983172E2D50 for ; Mon, 25 Mar 2024 13:56:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C31F179672; Mon, 25 Mar 2024 10:37:24 +0000 (UTC) Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (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 6748D158A18 for ; Mon, 25 Mar 2024 09:36:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711359391; cv=none; b=R3UrGKCHPljlwVnL5E2qO/bCMtGf62jC8v4p7agdXaKM6dyZfXUqgoNTYc0pLtBqGrQ+iY935NiQdUOLMHy2ZKf/FcMq0BEZ9rVKHwrzlobl5Lpd1veaUWzGOvyYJ8EyNGTZfNohUUOJOuXc9N/9MjgGopkMFfrdUmL4ZfkWVFU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711359391; c=relaxed/simple; bh=/9PRyWcMS3WKQZX2HiQSGZ3VL3BgBc0ZRFWdSaJQ9OE=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=Ywj2aBwFUvYCMQ5eA4hzm3YxdU+TFnaY0tfmETvc15ZNYV7p6eVaH22uVjT9i48IU1B/Touefe4beD2L7/oOzdU1ad8souQ7hQf/QJkC/sKrT3e/66dTs68grWwoniEitND2ICMfiEwxpLYsqOFsupEFYcjF5U6/q8wPK6IZSIk= 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.70 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-f70.google.com with SMTP id ca18e2360f4ac-7d022d0c76aso329063339f.3 for ; Mon, 25 Mar 2024 02:36:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711359388; x=1711964188; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TSNIqPkYvxd6e8DwhHfzguzBJvUVKgTbV1cel72QDnY=; b=eqvHGmjHqQEL3DxnijmKzxV3+lB6/iBSiJFLCKs6bYYwXnZ6zWRRCQYtfgM7LyCpuP rxAehR4ELmPdEkvWsM+KJ6Z/uUgGALX3NLMF610bYjRXuejDhFodRi+Pz5Aqo18sQVkH TdZsfD9588oi9idXh0BT/m4O139wLlUOwnT66xyZOWAS1oOEbwOaBfuOLjY9Bt8eG2/N pTALWIvd2EaAhj6YkF8oarIa9FnKQSLg0zcZhy2nGFvrnWjO7HRtro5fONOEy5ysefH1 laBXEvYo2J/tnIgUF1vKHCR+ahyoabOWb1i8Z34fT4G2Q9u05HZovEYPs989EanVLEae 7W7g== X-Forwarded-Encrypted: i=1; AJvYcCVvICi9ha0teTWOwFYI9zUslkcfNC4QCn3dNRCdK/9P46BxFSMQpmr5Nz9yY8i40NrdCPAtSOxCgDTru1VzddSDv2YfmrSIqJ0Usbf7 X-Gm-Message-State: AOJu0YyyWVXEJxoovexOSmvz08tFywg5zLPmiciP+/TEvtjMinT6jtVX eI0BjSKtGaknKjTQmXKb2SNC5mfSsgue/8hAK92Sp4/p4uVGnsmq4WxsnRqnTRtUVF9VkXnws+w W7z3V301Rg24+A6fKLehP+GmbXRMGOscB+hHoFKLY/3qjPQHMOQASAs0= 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:218e:b0:47c:203f:8e68 with SMTP id s14-20020a056638218e00b0047c203f8e68mr151665jaj.3.1711359388512; Mon, 25 Mar 2024 02:36:28 -0700 (PDT) Date: Mon, 25 Mar 2024 02:36:28 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000006f876b061478e878@google.com> Subject: [syzbot] [bpf?] [net?] KMSAN: uninit-value in dev_map_lookup_elem From: syzbot To: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, davem@davemloft.net, eddyz87@gmail.com, haoluo@google.com, hawk@kernel.org, john.fastabend@gmail.com, jolsa@kernel.org, kpsingh@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, martin.lau@linux.dev, netdev@vger.kernel.org, sdf@google.com, song@kernel.org, syzkaller-bugs@googlegroups.com, yonghong.song@linux.dev Content-Type: text/plain; charset="UTF-8" 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