syzbot


KCSAN: data-race in link_path_walk.part.0 / page_get_link

Status: auto-closed as invalid on 2020/02/04 13:16
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+57b6149668c34058041c@syzkaller.appspotmail.com
First crash: 1606d, last: 1606d
Discussions (1)
Title Replies (including bot) Last reply
KCSAN: data-race in link_path_walk.part.0 / page_get_link 0 (1) 2019/12/13 22:04

Sample crash report:
==================================================================
BUG: KCSAN: data-race in link_path_walk.part.0 / page_get_link

read to 0xffff88809b36e056 of 1 bytes by task 8667 on cpu 0:
 link_path_walk.part.0+0x2d7/0xa90 fs/namei.c:2109
 link_path_walk fs/namei.c:2259 [inline]
 path_lookupat.isra.0+0x77/0x5a0 fs/namei.c:2307
 filename_lookup+0x145/0x2b0 fs/namei.c:2338
 user_path_at_empty+0x4c/0x70 fs/namei.c:2598
 user_path_at include/linux/namei.h:49 [inline]
 do_mount+0xc8/0x1560 fs/namespace.c:3081
 ksys_mount+0xe8/0x160 fs/namespace.c:3352
 __do_sys_mount fs/namespace.c:3366 [inline]
 __se_sys_mount fs/namespace.c:3363 [inline]
 __x64_sys_mount+0x70/0x90 fs/namespace.c:3363
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88809b36e056 of 1 bytes by task 8674 on cpu 1:
 nd_terminate_link include/linux/namei.h:75 [inline]
 page_get_link+0x115/0x280 fs/namei.c:4787
 get_link fs/namei.c:1069 [inline]
 trailing_symlink+0x505/0x5a0 fs/namei.c:2253
 path_openat+0x6cc/0x36e0 fs/namei.c:3527
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8674 Comm: syz-executor.5 Not tainted 5.4.0-rc7+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/26 13:15 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.