Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2336222rwr; Fri, 21 Apr 2023 07:35:34 -0700 (PDT) X-Google-Smtp-Source: AKy350YIRLYf/OZZrN5B4w1hi/rafDHMjvM61EycgtR0+a5tu8tEGwfKu6OMdlHF+8Ant8NAEUKo X-Received: by 2002:a17:902:aa02:b0:1a1:aa68:7e61 with SMTP id be2-20020a170902aa0200b001a1aa687e61mr5280857plb.33.1682087734354; Fri, 21 Apr 2023 07:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682087734; cv=none; d=google.com; s=arc-20160816; b=wptoXuztbT0KGuRG+y6fzW+gZcRwCfMk+x3xbTchckdvaX+XdgmIyW0ICdelB4PobF S7b/BbfVone5jQjQBblZPM0zEN6hQXLrR+SCedTZCOb+qQi6HVdVAajEjf7VtYhP1J/D t5gCxVKDR5loUUQuCbwWuxcplF52h1OBgisFkdtHOvIAi4PYn0QTE+P9OHh142wW2vGL lgsjdd/d06yZ9zOmGp0S7gJBwjkLl6NNtdlKjPT1Jh13H1XK1iU3VVisjUg1eLQxYTLm DF41egcJ2ylT1sYkMh2NNN14ZvjidqXl5pbYrFQ7uHFPOzEVoNsOMDlame+ul82EF1Fo LQnQ== 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=4Xd2qd+WH/MF9eO5FF4xvXMEmGQHBwIElfg0S6pRbbI=; b=VRaPR4MmTn6ED4nGSBt2zwNZqH00GX1M6dw56bGZQ3x4avdl8oyDClroNruCEArsjj dckOmxw7BqGU4lAVzFTy+DIqnBirKxRMbXFrAqB841vw1DcUQZMr/oG7BUm9Wy9IUWGZ 0p+sgQbNh0nq9SlePe5S+92etSaAJxfJn1fk0fpLDWaCZKjEn8z5B4i2c5yHlOABVNWP o0Wec+DZkTANDGvj5G2bXLZ7gDWtkV/Hy//hLpkofiMwd/MkZvf2AZqs3mKfGdqw5+0O QPb5gE5CYgmnlJELR2Lo28h/VWvgr8PJ7CEVHhYKyrEhbAfRRJUfYL+TuDowk4+5UXIr uHgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 w1-20020a1709026f0100b001a64b603189si4143608plk.100.2023.04.21.07.35.14; Fri, 21 Apr 2023 07:35:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S231987AbjDUOeM (ORCPT + 99 others); Fri, 21 Apr 2023 10:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232706AbjDUOeK (ORCPT ); Fri, 21 Apr 2023 10:34:10 -0400 Received: from mail-io1-f78.google.com (mail-io1-f78.google.com [209.85.166.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B92D1C654 for ; Fri, 21 Apr 2023 07:33:51 -0700 (PDT) Received: by mail-io1-f78.google.com with SMTP id ca18e2360f4ac-7606d6bbc60so163555239f.2 for ; Fri, 21 Apr 2023 07:33:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682087631; x=1684679631; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4Xd2qd+WH/MF9eO5FF4xvXMEmGQHBwIElfg0S6pRbbI=; b=XU/S2ufavHpZFCF62O0gususMXV1m6zy6eNNWGFFxP0LODJK/mrHfM2tCKt0WgRrNq XUQEfUa4A2yBYYoD/Gu8PmQyv7iY+rlHtYhG8Jf0sGFsm7Veiy9CfeoBzuMB0dyhW7vD p8aMWu4ZjyyFCByb/ryh2ADViQ5eyn/rgLwE40GhSeIAW1qbBvjg8UCDNf3mjxLOTZ6c GjngOqB2KPDClvKSkQweB4aRhdoXfsyLgK3rzEPP7tnK3tW2PKR0zgtGHaMe3flxkb+/ Z+RWNq8xCSzPKG4A1v7672M+IYjC4ukwg7V2zr8+ewuGn7ZVgVMmWt2zDA5diOt9/wS5 pnsw== X-Gm-Message-State: AAQBX9cD/53ej6Or4HBRAhlcyiJgohM8wPNQwzgRMSXGut3lDKjbLU40 azw1elVxHAKd4eeorKIy/UaMjxKwYvJfT5V+tRbd9y3AEYJz MIME-Version: 1.0 X-Received: by 2002:a02:8502:0:b0:40f:80e3:6585 with SMTP id g2-20020a028502000000b0040f80e36585mr2518484jai.1.1682087630965; Fri, 21 Apr 2023 07:33:50 -0700 (PDT) Date: Fri, 21 Apr 2023 07:33:50 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000b9915d05f9d98bdd@google.com> Subject: [syzbot] [ext4?] [mm?] KCSAN: data-race in strscpy / strscpy (3) From: syzbot To: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, llvm@lists.linux.dev, nathan@kernel.org, ndesaulniers@google.com, syzkaller-bugs@googlegroups.com, trix@redhat.com, tytso@mit.edu 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-ext4@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 76f598ba7d8e Merge tag 'for-linus' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=133bfbedc80000 kernel config: https://syzkaller.appspot.com/x/.config?x=9c5d44636e91081b dashboard link: https://syzkaller.appspot.com/bug?extid=c2de99a72baaa06d31f3 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/a3654f5f77b9/disk-76f598ba.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/abfb4aaa5772/vmlinux-76f598ba.xz kernel image: https://storage.googleapis.com/syzbot-assets/789fb5546551/bzImage-76f598ba.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+c2de99a72baaa06d31f3@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in strscpy / strscpy write to 0xffff88812ed8b730 of 8 bytes by task 16157 on cpu 1: strscpy+0xa9/0x170 lib/string.c:165 strscpy_pad+0x27/0x80 lib/string_helpers.c:835 __set_task_comm+0x46/0x140 fs/exec.c:1232 set_task_comm include/linux/sched.h:1984 [inline] __kthread_create_on_node+0x2b2/0x320 kernel/kthread.c:474 kthread_create_on_node+0x8a/0xb0 kernel/kthread.c:512 ext4_run_lazyinit_thread fs/ext4/super.c:3848 [inline] ext4_register_li_request+0x407/0x650 fs/ext4/super.c:3983 __ext4_fill_super fs/ext4/super.c:5480 [inline] ext4_fill_super+0x3f4a/0x43f0 fs/ext4/super.c:5637 get_tree_bdev+0x2b1/0x3a0 fs/super.c:1303 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5668 vfs_get_tree+0x51/0x190 fs/super.c:1510 do_new_mount+0x200/0x650 fs/namespace.c:3042 path_mount+0x498/0xb40 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3571 __x64_sys_mount+0x67/0x80 fs/namespace.c:3571 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 0xffff88812ed8b733 of 1 bytes by task 16161 on cpu 0: strscpy+0xde/0x170 lib/string.c:174 ____bpf_get_current_comm kernel/bpf/helpers.c:260 [inline] bpf_get_current_comm+0x45/0x70 kernel/bpf/helpers.c:252 ___bpf_prog_run+0x281/0x3050 kernel/bpf/core.c:1822 __bpf_prog_run32+0x74/0xa0 kernel/bpf/core.c:2043 bpf_dispatcher_nop_func include/linux/bpf.h:1124 [inline] __bpf_prog_run include/linux/filter.h:601 [inline] bpf_prog_run include/linux/filter.h:608 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2263 [inline] bpf_trace_run4+0x9f/0x140 kernel/trace/bpf_trace.c:2304 __traceiter_sched_switch+0x3a/0x50 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x7e7/0x8e0 kernel/sched/core.c:6622 schedule+0x51/0x80 kernel/sched/core.c:6701 schedule_preempt_disabled+0x10/0x20 kernel/sched/core.c:6760 kthread+0x11c/0x1e0 kernel/kthread.c:369 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x72 -> 0x34 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 16161 Comm: ext4lazyinit Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #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.