syzbot


KCSAN: data-race in __folio_activate / skb_append_pagefrags

Status: auto-closed as invalid on 2022/05/09 08:38
Subsystems: mm
[Documentation on labels]
First crash: 797d, last: 753d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __folio_activate / skb_append_pagefrags (2) mm 1 685d 685d 0/26 auto-closed as invalid on 2022/07/16 15:35

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __folio_activate / skb_append_pagefrags

write to 0xffffea00059081c8 of 8 bytes by task 25349 on cpu 1:
 list_del include/linux/list.h:149 [inline]
 lruvec_del_folio include/linux/mm_inline.h:135 [inline]
 __folio_activate+0x218/0x760 mm/swap.c:315
 __activate_page+0x45/0xf0 mm/swap.c:329
 pagevec_lru_move_fn+0x233/0x510 mm/swap.c:207
 folio_activate mm/swap.c:355 [inline]
 folio_mark_accessed+0x30c/0x370 mm/swap.c:436
 filemap_read+0xb02/0xe10 mm/filemap.c:2727
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2831
 call_read_iter include/linux/fs.h:2044 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1297
 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

read to 0xffffea00059081c8 of 8 bytes by task 25348 on cpu 0:
 page_is_pfmemalloc include/linux/mm.h:1788 [inline]
 __skb_fill_page_desc include/linux/skbuff.h:2410 [inline]
 skb_fill_page_desc include/linux/skbuff.h:2431 [inline]
 skb_append_pagefrags+0x1d6/0x430 net/core/skbuff.c:3846
 unix_stream_sendpage+0x471/0xaa0 net/unix/af_unix.c:2291
 kernel_sendpage+0x16c/0x310 net/socket.c:3492
 sock_sendpage+0x5a/0x70 net/socket.c:1007
 pipe_to_sendpage+0x128/0x160 fs/splice.c:364
 splice_from_pipe_feed fs/splice.c:418 [inline]
 __splice_from_pipe+0x207/0x500 fs/splice.c:562
 splice_from_pipe fs/splice.c:597 [inline]
 generic_splice_sendpage+0x94/0xd0 fs/splice.c:746
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1297
 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: 0xffffea0005918d08 -> 0xffffea0005918cc8

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25348 Comm: syz-executor.0 Not tainted 5.17.0-syzkaller-14114-g09bb8856d4a7-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/04 08:36 upstream 09bb8856d4a7 79a2a8fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __folio_activate / skb_append_pagefrags
2022/03/10 06:58 upstream 3bf7edc84a9e 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __folio_activate / skb_append_pagefrags
2022/02/18 23:17 upstream 7993e65fdd0f 3cd800e4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __folio_activate / skb_append_pagefrags
* Struck through repros no longer work on HEAD.