================================================================== BUG: KCSAN: data-race in rwsem_down_write_slowpath / rwsem_down_write_slowpath write to 0xffffc900014ffb78 of 1 bytes by task 5741 on cpu 1: rwsem_try_write_lock kernel/locking/rwsem.c:676 [inline] rwsem_down_write_slowpath+0x3dd/0xac0 kernel/locking/rwsem.c:1189 __down_write_common kernel/locking/rwsem.c:1347 [inline] __down_write kernel/locking/rwsem.c:1356 [inline] down_write+0xab/0xc0 kernel/locking/rwsem.c:1626 kernfs_activate+0x50/0x220 fs/kernfs/dir.c:1463 kernfs_add_one+0x212/0x280 fs/kernfs/dir.c:869 kernfs_create_link+0xeb/0x130 fs/kernfs/symlink.c:48 sysfs_do_create_link_sd+0x6a/0x100 fs/sysfs/symlink.c:44 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline] sysfs_create_link+0x51/0x70 fs/sysfs/symlink.c:92 device_add_class_symlinks+0x168/0x1d0 drivers/base/core.c:3450 device_add+0x359/0x790 drivers/base/core.c:3642 netdev_register_kobject+0x109/0x230 net/core/net-sysfs.c:2343 register_netdevice+0xaaf/0x1160 net/core/dev.c:11420 register_netdev+0x3b/0x50 net/core/dev.c:11536 loopback_net_init+0x59/0x100 drivers/net/loopback.c:218 ops_init+0x22a/0x2e0 net/core/net_namespace.c:137 setup_net+0x9f/0x230 net/core/net_namespace.c:446 copy_net_ns+0x310/0x450 net/core/net_namespace.c:579 create_new_namespaces+0x20e/0x440 kernel/nsproxy.c:132 unshare_nsproxy_namespaces+0x115/0x150 kernel/nsproxy.c:234 ksys_unshare+0x402/0x740 kernel/fork.c:3245 __do_sys_unshare kernel/fork.c:3319 [inline] __se_sys_unshare kernel/fork.c:3317 [inline] __x64_sys_unshare+0x1f/0x30 kernel/fork.c:3317 x64_sys_call+0x1cef/0x3020 arch/x86/include/generated/asm/syscalls_64.h:273 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffc900014ffb78 of 1 bytes by task 3294 on cpu 0: rwsem_down_write_slowpath+0x44f/0xac0 kernel/locking/rwsem.c:1207 __down_write_common kernel/locking/rwsem.c:1347 [inline] __down_write kernel/locking/rwsem.c:1356 [inline] down_write+0xab/0xc0 kernel/locking/rwsem.c:1626 kernfs_remove_by_name_ns+0x6b/0x110 fs/kernfs/dir.c:1793 kernfs_remove_by_name include/linux/kernfs.h:639 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xa5/0x170 fs/sysfs/group.c:328 sysfs_remove_groups+0x3a/0x80 fs/sysfs/group.c:352 __kobject_del+0x4b/0x190 lib/kobject.c:595 kobject_del+0x2e/0x50 lib/kobject.c:627 ext4_unregister_sysfs+0x84/0xa0 fs/ext4/sysfs.c:654 ext4_put_super+0x4c/0x7b0 fs/ext4/super.c:1299 generic_shutdown_super+0xee/0x220 fs/super.c:646 kill_block_super+0x2a/0x70 fs/super.c:1725 ext4_kill_sb+0x42/0x80 fs/ext4/super.c:7492 deactivate_locked_super+0x75/0x1c0 fs/super.c:476 deactivate_super+0x97/0xa0 fs/super.c:509 cleanup_mnt+0x2bb/0x330 fs/namespace.c:1312 __cleanup_mnt+0x19/0x20 fs/namespace.c:1319 task_work_run+0x130/0x1a0 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0x1f4/0x6f0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x232/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3294 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 ================================================================== EXT4-fs (loop3): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop3): unmounting filesystem 00000000-0000-0000-0000-000000000000.