syzbot


KCSAN: data-race in generic_permission / setattr_copy (3)

Status: auto-closed as invalid on 2022/05/03 21:30
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 253d, last: 253d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_permission / setattr_copy 1 579d 579d 0/24 auto-closed as invalid on 2021/06/11 22:43
upstream KCSAN: data-race in generic_permission / setattr_copy (2) 1 478d 478d 0/24 auto-closed as invalid on 2021/09/20 03:05

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_permission / setattr_copy

write to 0xffff8881367bac48 of 2 bytes by task 22 on cpu 1:
 setattr_copy+0x238/0x250 fs/attr.c:247
 shmem_setattr+0xb0/0x450 mm/shmem.c:1118
 notify_change+0x924/0xbf0 fs/attr.c:410
 handle_remove drivers/base/devtmpfs.c:344 [inline]
 handle drivers/base/devtmpfs.c:393 [inline]
 devtmpfs_work_loop+0x845/0x930 drivers/base/devtmpfs.c:406
 devtmpfsd+0x3f/0x40 drivers/base/devtmpfs.c:448
 kthread+0x1bf/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff8881367bac48 of 2 bytes by task 4091 on cpu 0:
 acl_permission_check fs/namei.c:337 [inline]
 generic_permission+0x24/0x550 fs/namei.c:403
 do_inode_permission fs/namei.c:464 [inline]
 inode_permission+0x7f/0x390 fs/namei.c:524
 may_open+0x1a7/0x2f0 fs/namei.c:3101
 do_open fs/namei.c:3474 [inline]
 path_openat+0x167c/0x1f30 fs/namei.c:3609
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2b0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x6180 -> 0x6000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4091 Comm: udevd Not tainted 5.17.0-syzkaller-12882-g1930a6e739c4-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
block device autoloading is deprecated and will be removed.
udevd[4091]: inotify_add_watch(7, /dev/loop0, 10) failed: No such file or directory
udevd[4091]: inotify_add_watch(7, /dev/loop4, 10) failed: No such file or directory
udevd[4091]: inotify_add_watch(7, /dev/loop1, 10) failed: No such file or directory
udevd[4091]: inotify_add_watch(7, /dev/loop1, 10) failed: No such file or directory
udevd[4091]: inotify_add_watch(7, /dev/loop0, 10) failed: No such file or directory
udevd[4091]: inotify_add_watch(7, /dev/loop0, 10) failed: No such file or directory
 loop4: p1 p2 < p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 p31 p32 p33 p34 p35 p36 p37 p38 p39 p40 p41 p42 p43 p44 p45 p46 p47 p48 p49 p50 p51 p52 p53 p54 p55 p56 p57 p58 p59 p60 p61 p62 p63 p64 p65 p66 p67 p68 p69 p70 p71 p72 p73 p74 p75 p76 p77 p78 p79 p80 p81 p82 p83 p84 p85 p86 p87 p88 p89 p90 p91 p92 p93 p94 p95 p96 p97 p98 p99 p100 p101 p102 p103 p104 p105 p106 p107 p108 p109 p110 p111 p112 p113 p114 p115 p116 p117 p118 p119 p120 p121 p122 p123 p124 p125 p126 p127 p128 p129 p130 p131 p132 p133 p134 p135 p136 p137 p138 p139 p140 p141 p142 p143 p144 p145 p146 p147 p148 p149 p150 p151 p152 p153 p154 p155 p156 p157 p158 p159 p160 p161 p162 p163 p164 p165 p166 p167 p168 p169 p170 p171 p172 p173 p174 p175 p176 p177 p178 p179 p180 p181 p182 p183 p184 p185 p186 p187 p188 p189 p190 p191 p192 p193 p194 p195 p196 p197 p198 p199 p200 p201 p202 p203 p204 p205 p206 p207 p208 p209 p210 p211 p212 p213 p214 p215 p2

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/03/29 21:24 upstream 1930a6e739c4 6bdac766 .config log report info KCSAN: data-race in generic_permission / setattr_copy
* Struck through repros no longer work on HEAD.