Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6609640rwr; Tue, 25 Apr 2023 00:39:47 -0700 (PDT) X-Google-Smtp-Source: AKy350ZdetuSIcBRvQiFEUatXLeZ8UybjbTZBll/YDSWs02Y5yYzfMvOm90hOxOL2neOdrB3dMi2 X-Received: by 2002:a17:90a:f292:b0:247:6022:9595 with SMTP id fs18-20020a17090af29200b0024760229595mr15450274pjb.45.1682408387481; Tue, 25 Apr 2023 00:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682408387; cv=none; d=google.com; s=arc-20160816; b=r22UVel1k+8J9qR+8miz/NZMxzRUivepkwkcnAzBYJLlVEnzVBInpxQYVDp+4iV5Ww FJKJQetDaVHFv3fZBN67mlhbPrpnDU0dQHR+TO+F8bkwzQlp558rqeWBmhg+b4u3dUXM EYmtBOOwhTU8XCXaNqhEUm5Yy+Q37a0fN1HKxSgHF4FJ8soKCArL9C+qU7BU2OJaHqRj GEOiVLKe36YuF06qywegOOYszowQlPzkqTAVq2LEjao40qzVEsHLvhs4UywRTGrhfbi1 odjP1Y68q+wp7aU9Kgvkqchi6gnA6y5Crg9vXSw1VV8Lo6O4dN0TKyZV/vKZknrtWMB+ H+nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=xq/1X6dim9yVpm4WmSrDKdpjZQ76TBH7JXRh02wzjPs=; b=tNfQ554cQM38suzjMtrCWGRjaTrIwNB0nHaDYqhdU2USazFtti7Ky5GqqsTbDxdGrD 7JnVgj2YzNFT46NCpVQSAcCTEWv7jtRzHf2ITdZYDpkQG78IrUOzzf+ZqMt8hgY5IGUD Ert/W/oeCaD+BDJuT5p7A4PaF3vQbrzgjDfivZ6V9andI38rhJKg+DXdQgDHSqN+8B27 bVEIbWf4YhAhJsdm3E4uUkhngOIbQo6/+W9DY6u/EGFm07hfBVIz/tKl+zfMjOV5Orip SfNi85NAV5lsNMGnU/0s9hbPPh+e8st0E5P3j9zgj8IfxzS69T4rfa9DyNXIpYRfUlVK Vowg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a17090aa40f00b00244a3e7bc69si15665243pjp.38.2023.04.25.00.39.35; Tue, 25 Apr 2023 00:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233666AbjDYHd0 (ORCPT + 99 others); Tue, 25 Apr 2023 03:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233381AbjDYHct (ORCPT ); Tue, 25 Apr 2023 03:32:49 -0400 Received: from mail-il1-f206.google.com (mail-il1-f206.google.com [209.85.166.206]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5409213C2A for ; Tue, 25 Apr 2023 00:31:56 -0700 (PDT) Received: by mail-il1-f206.google.com with SMTP id e9e14a558f8ab-32addcf3a73so201686805ab.0 for ; Tue, 25 Apr 2023 00:31:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682407915; x=1684999915; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xq/1X6dim9yVpm4WmSrDKdpjZQ76TBH7JXRh02wzjPs=; b=Wfo39xoc88w/A0tjfulZ3Ct3nNT0/xDiwYjOFu/IsBKTOYpV75SVe7BWOvJVAkm0k+ 238I3a49AWZ/tt1Q6aCcLS2GyqUSWDW01nlq5eQv9K0PcOFPwmCWby+7JFNguCYH/PeG VWW5gAnyEfWhAaK+q2j3AmVxcmu2WGDMBqmP8eTw1729fJv8+ExL3SUFG45g8QwzOIc4 T2gDTOmBYwjQpHhvzcdzKRlKo794U4YxbMB6O2GjYu/MG2n9j/3RjaKpTtaglmaSziDC TGJ4/4ALtTwIaZD3A2wxS/OuwMyABr745b6Ry1PcxlHux0mBSme5y+Qu5kmP5VzXvPTE Geyw== X-Gm-Message-State: AAQBX9coa9pAcuxLGexjAyyBnIZEaeID9iaZwZDHNpXHvjULK6VE3gGq skVGC5ncau3FqXFL884u7INO7BzMLsqOQ2TE5jekph7mpB9Z MIME-Version: 1.0 X-Received: by 2002:a05:6638:12c6:b0:40f:9f56:2bfc with SMTP id v6-20020a05663812c600b0040f9f562bfcmr11295818jas.3.1682407915588; Tue, 25 Apr 2023 00:31:55 -0700 (PDT) Date: Tue, 25 Apr 2023 00:31:55 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000002d14f305fa241e67@google.com> Subject: [syzbot] [bpf?] KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem (5) From: syzbot To: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, 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, yhs@fb.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SORTED_RECIPS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 6a66fdd29ea1 Merge tag 'rust-fixes-6.3' of https://github... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=160d8948280000 kernel config: https://syzkaller.appspot.com/x/.config?x=fa4baf7c6b35b5d5 dashboard link: https://syzkaller.appspot.com/bug?extid=ebe648a84e8784763f82 compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/78937867b23a/disk-6a66fdd2.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/dfd6c176adff/vmlinux-6a66fdd2.xz kernel image: https://storage.googleapis.com/syzbot-assets/51509bf47166/bzImage-6a66fdd2.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+ebe648a84e8784763f82@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in __bpf_lru_list_rotate / __htab_lru_percpu_map_update_elem write to 0xffff888137038deb of 1 bytes by task 11240 on cpu 1: __bpf_lru_node_move kernel/bpf/bpf_lru_list.c:113 [inline] __bpf_lru_list_rotate_active kernel/bpf/bpf_lru_list.c:149 [inline] __bpf_lru_list_rotate+0x1bf/0x750 kernel/bpf/bpf_lru_list.c:240 bpf_lru_list_pop_free_to_local kernel/bpf/bpf_lru_list.c:329 [inline] bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:447 [inline] bpf_lru_pop_free+0x638/0xe20 kernel/bpf/bpf_lru_list.c:499 prealloc_lru_pop kernel/bpf/hashtab.c:290 [inline] __htab_lru_percpu_map_update_elem+0xe7/0x820 kernel/bpf/hashtab.c:1316 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200 generic_map_update_batch+0x3ae/0x4f0 kernel/bpf/syscall.c:1687 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4534 __sys_bpf+0x338/0x810 __do_sys_bpf kernel/bpf/syscall.c:5096 [inline] __se_sys_bpf kernel/bpf/syscall.c:5094 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5094 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888137038deb of 1 bytes by task 11241 on cpu 0: bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:70 [inline] __htab_lru_percpu_map_update_elem+0x2f1/0x820 kernel/bpf/hashtab.c:1332 bpf_percpu_hash_update+0x5e/0x90 kernel/bpf/hashtab.c:2313 bpf_map_update_value+0x2a9/0x370 kernel/bpf/syscall.c:200 generic_map_update_batch+0x3ae/0x4f0 kernel/bpf/syscall.c:1687 bpf_map_do_batch+0x2d9/0x3d0 kernel/bpf/syscall.c:4534 __sys_bpf+0x338/0x810 __do_sys_bpf kernel/bpf/syscall.c:5096 [inline] __se_sys_bpf kernel/bpf/syscall.c:5094 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5094 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x01 -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 11241 Comm: syz-executor.3 Not tainted 6.3.0-rc7-syzkaller-00136-g6a66fdd29ea1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 ================================================================== --- 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.