From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f205.google.com (mail-il1-f205.google.com [209.85.166.205]) (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 23D8C153BFA for ; Wed, 12 Jun 2024 13:25:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718198722; cv=none; b=HSvxMlauRgxTZsrtz51IF6VNaNqBOuAm1Jo5LQGJAQFGZSoIfIUoosCmSr2GHxap4pSvybqLQfJe03KKF0n/pVD4bOfOi/7pb/7g4QY3cvisA5ZxijPuecIZn2Q77RwsOdACTH0pmM8z7THDMjwDx4zEr4CfRoH3WAt8yEUmOuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718198722; c=relaxed/simple; bh=VPOqqS4+wOGLU7jmDE0seMq1mz8cDLv49DDOYT883l4=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=ZMWt3dZvIuA6CHGzQyJ2L5NrzhHohoCSiJeUAnPMAbuF0V8zPKE19wbSdWj9tFMJJN5kyGoFh+bvilnf9VdB4cfxnIRwWy/tAqugsUaP3mSgCbz+hJgaqeiviZpm4WVjggKNOF5hpxHEfosJRXz0mJC+KdIkCfNFw0HbMZ6Rooo= 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.205 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-il1-f205.google.com with SMTP id e9e14a558f8ab-3737ee417baso7096305ab.1 for ; Wed, 12 Jun 2024 06:25:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718198720; x=1718803520; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sD04lBoOJxudqkvWH8fxwqiduFEx1F0N9CMuesTzvDc=; b=Lk890Hne2blFiBcbJaRr7aiTfX2wHbytIJQc0EBTgl6XC1YlYn1zej8b3NIaAMrTZg I3JEwgboKebN/a1dT6pSHTj+jWokILxoYz+1gsYsgIiSLfCQUr0UtbZZJ23HT6uu/C1L rjrVZBefW9K0y02peZ0YOKMblxgDr3nnYa9dg/2frS1CWiDf9FtJHDas0dvf/XNAadEY neWge9x7rXCnS/Mi7uALl18oIk9U37IQWws15dd2/0FosIMNPXi/RRZDzQjyrsu002yw +FsHJ3LuQbkP7W7rUIAArhYvMQjdMs9Rtk9eNiDhzHb2q6Pg401QzJS1ZZ483UxLeNm7 j2Ww== X-Forwarded-Encrypted: i=1; AJvYcCVx7SmD0o36hrkS0kIhJNf8ttMaSi2cfaSSOCdCeVAfTuRb4mM8FHcdaVfbArqZ2uJeXjDg33jMxx+tJ5FHdfCdeo7rDAenRVowd66O X-Gm-Message-State: AOJu0Yyy8TeG5GK1UggzSW1r1AV/BKK7smKVhDLAq5tGBD89PbqFyIas mdMEULe5HDgFo5XsvQV25MUQh1ESxO6KuM/0zD8IOTHYEykyPPiPi2qEG3nuXZW4o1vO6J3p3bK S/wOo3DENhL6aj35d+5oGp6Vnnq7csIpodOTdNSe2mwnZWJXbyurfpqo= X-Google-Smtp-Source: AGHT+IFSNQkKWkFJTX+qDqCce0fRek0A/f7BNr00ipCNjedh+2PQ1ooLHxPILATPgL6zPGXMXwoF2KQFd4FOsYejKqj03Uu2dUY/ Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a92:c54a:0:b0:36c:4c63:9c93 with SMTP id e9e14a558f8ab-375cc9adebemr2049465ab.3.1718198720347; Wed, 12 Jun 2024 06:25:20 -0700 (PDT) Date: Wed, 12 Jun 2024 06:25:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000614f9d061ab1504e@google.com> Subject: [syzbot] [bpf?] KMSAN: uninit-value in trie_delete_elem (2) From: syzbot To: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, eddyz87@gmail.com, haoluo@google.com, john.fastabend@gmail.com, jolsa@kernel.org, kpsingh@kernel.org, linux-kernel@vger.kernel.org, martin.lau@linux.dev, 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: 614da38e2f7a Merge tag 'hid-for-linus-2024051401' of git:/.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=104e0b1c980000 kernel config: https://syzkaller.appspot.com/x/.config?x=f5d2cbf33633f507 dashboard link: https://syzkaller.appspot.com/bug?extid=57c04b477de48032b4d4 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=13a6eb32980000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11f3a364980000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/89eafb874b71/disk-614da38e.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/356000512ad9/vmlinux-614da38e.xz kernel image: https://storage.googleapis.com/syzbot-assets/839c73939115/bzImage-614da38e.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+57c04b477de48032b4d4@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in trie_delete_elem+0xc0/0xbe0 kernel/bpf/lpm_trie.c:448 trie_delete_elem+0xc0/0xbe0 kernel/bpf/lpm_trie.c:448 ____bpf_map_delete_elem kernel/bpf/helpers.c:77 [inline] bpf_map_delete_elem+0x5c/0x80 kernel/bpf/helpers.c:73 ___bpf_prog_run+0x13fe/0xe0f0 kernel/bpf/core.c:1997 __bpf_prog_run32+0xb2/0xe0 kernel/bpf/core.c:2236 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_run2+0x116/0x300 kernel/trace/bpf_trace.c:2420 __bpf_trace_ext4_sync_file_exit+0x2c/0x40 include/trace/events/ext4.h:958 trace_ext4_sync_file_exit include/trace/events/ext4.h:958 [inline] ext4_sync_file+0x121c/0x13a0 fs/ext4/fsync.c:179 vfs_fsync_range+0x20d/0x270 fs/sync.c:188 generic_write_sync include/linux/fs.h:2811 [inline] iomap_dio_complete+0xb58/0xf00 fs/iomap/direct-io.c:126 iomap_dio_rw+0x134/0x170 fs/iomap/direct-io.c:753 ext4_dio_write_iter fs/ext4/file.c:577 [inline] ext4_file_write_iter+0x26ee/0x3450 fs/ext4/file.c:696 call_write_iter include/linux/fs.h:2120 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xb31/0x14d0 fs/read_write.c:590 ksys_write+0x20f/0x4c0 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0x93/0xe0 fs/read_write.c:652 x64_sys_call+0x3062/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Local variable stack created at: __bpf_prog_run32+0x43/0xe0 kernel/bpf/core.c:2236 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_run2+0x116/0x300 kernel/trace/bpf_trace.c:2420 CPU: 1 PID: 5048 Comm: syz-executor240 Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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