[moderation] [fs?] KCSAN: data-race in close_fd_get_file / do_select (2)

8 views
Skip to first unread message

syzbot

unread,
Nov 17, 2023, 10:06:32 AM11/17/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 13d88ac54ddd Merge tag 'vfs-6.7.fsid' of git://git.kernel...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=156f45df680000
kernel config: https://syzkaller.appspot.com/x/.config?x=f89e9ee49649fd75
dashboard link: https://syzkaller.appspot.com/bug?extid=fd4f1f5dbf7f6926a47f
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [bra...@kernel.org linux-...@vger.kernel.org linux-...@vger.kernel.org vi...@zeniv.linux.org.uk]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ab6d9ea75ec1/disk-13d88ac5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/73fdd3041409/vmlinux-13d88ac5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7f8338cd20e2/bzImage-13d88ac5.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+fd4f1f...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in close_fd_get_file / do_select

write to 0xffff88811d087600 of 8 bytes by task 14951 on cpu 0:
instrument_write include/linux/instrumented.h:41 [inline]
___clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:44 [inline]
__clear_open_fd fs/file.c:270 [inline]
__put_unused_fd fs/file.c:571 [inline]
pick_file fs/file.c:652 [inline]
close_fd_get_file+0xf3/0x1a0 fs/file.c:817
__do_sys_close fs/open.c:1580 [inline]
__se_sys_close+0x17/0x1a0 fs/open.c:1575
__x64_sys_close+0x1f/0x30 fs/open.c:1575
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88811d087600 of 8 bytes by task 14953 on cpu 1:
max_select_fd fs/select.c:447 [inline]
do_select+0x2a2/0xf90 fs/select.c:490
core_sys_select+0x361/0x520 fs/select.c:681
do_pselect fs/select.c:763 [inline]
__do_sys_pselect6 fs/select.c:804 [inline]
__se_sys_pselect6+0x213/0x280 fs/select.c:795
__x64_sys_pselect6+0x78/0x90 fs/select.c:795
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0xffffffffffff0007 -> 0xffffffffffe00007

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14953 Comm: syz-executor.4 Not tainted 6.6.0-syzkaller-15156-g13d88ac54ddd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/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 syzk...@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

syzbot

unread,
Dec 13, 2023, 1:44:22 AM12/13/23
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages