From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.231.139 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796357503; b=Or8mHkTG0WAv9gGOHf8DxIBEw5YWeP6MggrRFIKXSn6mlfPX5b7wc7wUPJHS54jes8k/ 11BJjSABywyZIXRBZOAHyJAO1UpWsKwDucc3qun2C3H6UCK+vqromEOjJ18UpA2I0VtNz X7oxwtYxOJreTi15P/tAdNJUVfH9A+iDp+vIKkIcI5aMRrbmCs2Jtjs4SIZnIZjRFp4v7 L28Ctdxl399X2KYE0UYxUDRDOyE3aiTGQmu/uwRttosKleeLEd/mwFVYuhODTd9sRZyV+ kiq1JC2wi16vHXClGneOxeJ6FvE+Jt4DILS21zlfV6EO8MVVmqXwucipKmGHIIkJyaw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796357503; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:MIME-Version:X-Received:Date: X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID: Subject:From:To:Content-Type; bh=zzLZ9B2hnn20EbTNGQwYE7uxqoNpx3T9EXjoQVNmoEo=; b=Kv3uXNtRleRprdJMN5zJ4FJL4hASaM0JNoaobJUKXCrvmocNEDNBcimIHGjnexdXfBsN 4QPeY7RoWXNgr4008TKqddH2QaYRSjlZI+B3rE4sc6O4qfV9dmgz+t/wCOwglG2PE31Eh tqwdIOWfjEiawSVL4DIApDeJJrNqlITF3shxk5hbKDu73eNYlQJ75DhF4yyutTQdxjc5d VHXXqa+mQCEwnKB7RzrTI7qvfIWbGskqKKKlPmyARFmF2R6MTSggn9kb+k0QP9M1qvUBd KrYnTyGUgU2kgI4dR993FYqrcxwK31HmoSCig1zHDuffsNeKeJYNiVZf5DQsVY5eNEQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.remote-ip=74.125.231.139 Received: from mail-oo2-f11.google.com (mail-oo2-f11.google.com [74.125.231.139]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1D0E606A322 for ; Fri, 4 Dec 2026 04:11:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A1D0E606A322 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-oo2-f11.google.com with SMTP id 006d021491bc7-71b9fb2b4beso109887eaf.1 for ; Thu, 03 Dec 2026 20:11:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796357501; x=1796962301; h=content-type:to:from:subject:message-id:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zzLZ9B2hnn20EbTNGQwYE7uxqoNpx3T9EXjoQVNmoEo=; b=RKUb2oZeTcTo1z18B5jn8tGEwWyS+P+Z/XfgnLuxEUX8+cy1KHNKzNoFl8tHSMT0Pt vOsLnK8fahojAoayJO2qZRAOjXPMAKOV/p42z3nEJkMwUmUcm1gw5xS3lrYUSgAKAyfO +WBh9d3GO+6OBg8bRFKjy0JKFApOD6q1Unp4Nkl2EoXJ+6BAtlMuc53jml83nTSCc6V3 LEWInBxyNwKEhjxJQxALnmjJD3dnWEmOr/sRk6zpwuGQdhf86Hc3M2+fcFfZAIuF30B0 jBbAkKfFcN9Zrvp0yYVT4pfqlrTNlhm7hMM0wih+6kC4qdw3pzYIUnKgAP5WbS8REqBW MwTw== X-Forwarded-Encrypted: i=1; AL+hErHQTzmnh9p4npO1CNWlGamqrxfdoendUKcpSpcJHhU/EK50UeqGOxlxEmnBXPSLDflLZ+oArZ8LUzXFL8Wp@vger.kernel.org X-Gm-Message-State: APuU4Z8NuEnVOAvYNgTOraNKV/io6ZUQuuNIrJ5UYTbR4dJxusQmvOY+ fDaiMreyt3Lagz7f9vSRKx8WyVaacXxPoENkSyaFaF80IK9t5J2BcwmF4woZoee3TCraZ3I8CLn XGl/r8pWo9xOnYUVh01/wvD8kOlMgZNkcgNodc5CnLxtLbD7LuO4RFiPhjq8= X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Received: by 2002:a05:6820:5208:b0:71b:e2fe:5af2 with SMTP id 006d021491bc7-71bf21c49d4mr594234eaf.78.1796357501596; Thu, 03 Dec 2026 20:11:41 -0800 (PST) Date: Thu, 03 Dec 2026 20:11:41 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6b123d7d.af49525d.22c80d.01e2.GAE@google.com> Subject: [syzbot] [fs?] KCSAN: data-race in __se_sys_inotify_add_watch / fsnotify (2) From: syzbot To: amir73il@gmail.com, jack@suse.cz, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 0810bd27d7bb Merge tag 'uml-fixes-7.4-rc6' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1491ed03580000 kernel config: https://syzkaller.appspot.com/x/.config?x=12de098a40e11adc dashboard link: https://syzkaller.appspot.com/bug?extid=21acc08140e9f736ec77 compiler: Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/958a9a0914a2/disk-0810bd27.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/ec2ac86f1ee0/vmlinux-0810bd27.xz kernel image: https://storage.googleapis.com/syzbot-assets/545506d0be3f/bzImage-0810bd27.xz AI-generated root cause summary: A KCSAN data race occurs on `fsnotify_mark::mask` (`__u32`) between `inotify_update_existing_watch()` in `fs/notify/inotify/inotify_user.c` and lockless SRCU event delivery in `send_to_group()` in `fs/notify/fsnotify.c`. `inotify_update_existing_watch()` updates `fsn_mark->mask` under `fsn_mark->lock` using two plain writes (`fsn_mark->mask = 0;` followed by `fsn_mark->mask |= ...;`), while `send_to_group()` runs under `fsnotify_mark_srcu` without holding `fsn_mark->lock` and reads `mark->mask` via a plain access. As a result, concurrent event delivery can race with the mask update and even observe the intermediate zeroed mask, potentially dropping an inotify event. full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=21acc08140e9f736ec77 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+21acc08140e9f736ec77@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in __se_sys_inotify_add_watch / fsnotify write to 0xffff888103bb00f0 of 4 bytes by task 5315 on cpu 0: inotify_update_existing_watch fs/notify/inotify/inotify_user.c:558 [inline] inotify_update_watch fs/notify/inotify/inotify_user.c:632 [inline] __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:769 [inline] __se_sys_inotify_add_watch+0x2ea/0x720 fs/notify/inotify/inotify_user.c:717 __x64_sys_inotify_add_watch+0x43/0x50 fs/notify/inotify/inotify_user.c:717 x64_sys_call+0xa19/0x2550 arch/x86/include/generated/asm/syscalls_64.h:255 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888103bb00f0 of 4 bytes by task 5316 on cpu 1: send_to_group fs/notify/fsnotify.c:361 [inline] fsnotify+0xf70/0x18b0 fs/notify/fsnotify.c:597 fsnotify_parent include/linux/fsnotify.h:99 [inline] fsnotify_path include/linux/fsnotify.h:113 [inline] fsnotify_file include/linux/fsnotify.h:127 [inline] fsnotify_open include/linux/fsnotify.h:450 [inline] vfs_open_consume+0x1ee/0x210 fs/open.c:1133 do_open fs/namei.c:4851 [inline] path_openat+0xc16/0x11e0 fs/namei.c:5016 do_file_open+0x16c/0x290 fs/namei.c:5045 do_sys_openat2+0xa1/0x140 fs/open.c:1443 do_sys_open fs/open.c:1449 [inline] __do_sys_openat fs/open.c:1465 [inline] __se_sys_openat fs/open.c:1460 [inline] __x64_sys_openat+0xf2/0x120 fs/open.c:1460 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 5316 Comm: syz.0.348 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ================================================================== --- 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 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