Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3826031ybx; Mon, 4 Nov 2019 03:32:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxK4pNUEMbkTY4RegUYt+2azXnIjJb3LCsD4mb3RZdW0y/V9rGo/4fCZdWE+/9x5fuN5iOg X-Received: by 2002:a50:cd0f:: with SMTP id z15mr743967edi.244.1572867142103; Mon, 04 Nov 2019 03:32:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572867142; cv=none; d=google.com; s=arc-20160816; b=yzZXKxsxWZDx9wM0ttMqoRlsiZ7cUIZdzI7QtatPBjAZBYURdR7vTPokRct2P51uEb +9X4ArkrZg4jMU7ciZfPkcs2j3sWNzbyBMXCrU4TgDoskYMbTwW+GR5TFNnYGsormcwr 210MoLtX6jmhPip8WNJNrstaohxJYuwjV6UD5//nAP6O9V6aGpKd+MdORR6qcGBkJyi8 OfWZoPbdlMi1T1E/DS9hOxoXvVJevk/PWsvg/Josv4EdnnB7RH0kB5zHKrfSo1zZ1zPx CuHEcf3e1bvBZzOa7UT5PQheyzXRu4IkJlktoAlapErqlrRkVBmi4cV0VRsY49/r/i8I yu1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=RIm6RUmV98ceI6JpEEZxU6F8gTuyxH9inbdlIYhEiEE=; b=z15rSRUEq2V0R2yE5wbsjf3WQkuHJdf/UqYmyVIKsdGkeddk70sWnyIch9UCbpD3aj B0c4fXZfKI37GQJJ4OnfyxxI5kBSD1r7gmYVQYkmgSOrkzP+Pb56mnF+F29bjTrV/paq jlLTyu5PvtogGUN8/WhOnG/aJ9eD3Xr70s0mY0vIWjbWZ3GjZ8JCBLu+iY+UJSZDSYZo zP6ZD+iB7kENTfenQqG3x4/Yq5oOEN+pdPFgRospIejd4RbM392IXCBIlThUaUuT1bzL Qv51EoUz/8Z+8a9xQVbuy1FMtgLrLWEVvKMu2BAqMZ98itvPB7+jT0h/iBzQ8vRuVTpl ngKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s28si7690772edc.98.2019.11.04.03.31.58; Mon, 04 Nov 2019 03:32:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727782AbfKDL3K (ORCPT + 99 others); Mon, 4 Nov 2019 06:29:10 -0500 Received: from mail-il1-f199.google.com ([209.85.166.199]:50370 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbfKDL3K (ORCPT ); Mon, 4 Nov 2019 06:29:10 -0500 Received: by mail-il1-f199.google.com with SMTP id 5so15297991ilt.17 for ; Mon, 04 Nov 2019 03:29:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=RIm6RUmV98ceI6JpEEZxU6F8gTuyxH9inbdlIYhEiEE=; b=Zs2MNd1bOrh5r9iv9lh5AB9gOLbYhEnbUPvdiNk037t1CBdBfwcS2M0gTq+2gucdlz v2TZTd2tQklJ4lV0t6m5GN/h7L5W45n+llRe7yPEzixvPuFyA5zAcHcWwK+z66Yk13AI jLsj1i+4tzVOPDvM6fX51BFZ5uzpep107SNUzMQHPrcqzb77tX6iaKgBdpwKCzj9T9FG ThBv3PydFvVlqaWYDCLYzj82UIVIHr15Lqtt4dUTGTURUknCvjrnlrjTCTf4LlNxa92D rQ35A+aRGGT8/WwJdgfkng9ay+duSRsAbAsODuGVmK71vzS2fKRf4QBii822GTrD7WJW QB3g== X-Gm-Message-State: APjAAAWke5RzeHgl3RsmgKsHnMftK3kfBhz+ao39AvcjTnIxJMwvP3nX LAqfS/X3zk+cPBGDTAuKYRBSWAMN+dqB5jtDtQQ4Vl2gE/Nb MIME-Version: 1.0 X-Received: by 2002:a02:9f8b:: with SMTP id a11mr1433768jam.10.1572866947906; Mon, 04 Nov 2019 03:29:07 -0800 (PST) Date: Mon, 04 Nov 2019 03:29:07 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000b587670596839fab@google.com> Subject: KCSAN: data-race in process_srcu / synchronize_srcu From: syzbot To: axboe@kernel.dk, elver@google.com, justin@coraid.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 05f22368 x86, kcsan: Enable KCSAN for x86 git tree: https://github.com/google/ktsan.git kcsan console output: https://syzkaller.appspot.com/x/log.txt?x=17ade7ef600000 kernel config: https://syzkaller.appspot.com/x/.config?x=87d111955f40591f dashboard link: https://syzkaller.appspot.com/bug?extid=08f3e9d26e5541e1ecf2 compiler: gcc (GCC) 9.0.0 20181231 (experimental) Unfortunately, I don't have any reproducer for this crash yet. IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+08f3e9d26e5541e1ecf2@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in process_srcu / synchronize_srcu write to 0xffffffff8604e8a0 of 8 bytes by task 17 on cpu 1: srcu_gp_end kernel/rcu/srcutree.c:533 [inline] srcu_advance_state kernel/rcu/srcutree.c:1146 [inline] process_srcu+0x207/0x780 kernel/rcu/srcutree.c:1237 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269 worker_thread+0xa0/0x800 kernel/workqueue.c:2415 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 read to 0xffffffff8604e8a0 of 8 bytes by task 12515 on cpu 0: srcu_might_be_idle kernel/rcu/srcutree.c:784 [inline] synchronize_srcu+0x107/0x214 kernel/rcu/srcutree.c:996 fsnotify_connector_destroy_workfn+0x63/0xb0 fs/notify/mark.c:164 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269 worker_thread+0xa0/0x800 kernel/workqueue.c:2415 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 12515 Comm: kworker/u4:8 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound fsnotify_connector_destroy_workfn ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 12515 Comm: kworker/u4:8 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound fsnotify_connector_destroy_workfn Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xf5/0x159 lib/dump_stack.c:113 panic+0x210/0x640 kernel/panic.c:221 kcsan_report.cold+0xc/0x10 kernel/kcsan/report.c:302 __kcsan_setup_watchpoint+0x32e/0x4a0 kernel/kcsan/core.c:411 __tsan_read8 kernel/kcsan/kcsan.c:36 [inline] __tsan_read8+0x2c/0x30 kernel/kcsan/kcsan.c:36 srcu_might_be_idle kernel/rcu/srcutree.c:784 [inline] synchronize_srcu+0x107/0x214 kernel/rcu/srcutree.c:996 fsnotify_connector_destroy_workfn+0x63/0xb0 fs/notify/mark.c:164 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269 worker_thread+0xa0/0x800 kernel/workqueue.c:2415 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Kernel Offset: disabled Rebooting in 86400 seconds.. --- This bug 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 bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.