syzbot


KCSAN: data-race in __zone_watermark_ok / get_page_from_freelist (2)

Status: closed as invalid on 2019/11/19 13:44
Subsystems: mm
[Documentation on labels]
First crash: 1654d, last: 1654d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __zone_watermark_ok / get_page_from_freelist mm 24 1654d 1665d 0/26 closed as invalid on 2019/10/15 15:50

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __zone_watermark_ok / get_page_from_freelist

write to 0xffff88812fffcf58 of 8 bytes by task 7382 on cpu 0:
 del_page_from_free_area include/linux/mmzone.h:151 [inline]
 __rmqueue_smallest mm/page_alloc.c:2191 [inline]
 __rmqueue mm/page_alloc.c:2711 [inline]
 rmqueue mm/page_alloc.c:3279 [inline]
 get_page_from_freelist+0xc87/0x2300 mm/page_alloc.c:3677
 __alloc_pages_nodemask+0x255/0x4d0 mm/page_alloc.c:4714
 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2153
 alloc_pages include/linux/gfp.h:509 [inline]
 alloc_skb_with_frags+0x15c/0x3d0 net/core/skbuff.c:5658
 sock_alloc_send_pskb+0x4da/0x510 net/core/sock.c:2232
 unix_stream_sendmsg+0x2d5/0x690 net/unix/af_unix.c:1822
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 __sys_sendto+0x21f/0x320 net/socket.c:1952
 __do_sys_sendto net/socket.c:1964 [inline]
 __se_sys_sendto net/socket.c:1960 [inline]
 __x64_sys_sendto+0x89/0xb0 net/socket.c:1960
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812fffcf58 of 8 bytes by task 7383 on cpu 1:
 __zone_watermark_ok+0x106/0x240 mm/page_alloc.c:3444
 zone_watermark_fast mm/page_alloc.c:3494 [inline]
 get_page_from_freelist+0x629/0x2300 mm/page_alloc.c:3635
 __alloc_pages_nodemask+0x255/0x4d0 mm/page_alloc.c:4714
 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2153
 alloc_pages include/linux/gfp.h:509 [inline]
 alloc_skb_with_frags+0x15c/0x3d0 net/core/skbuff.c:5658
 sock_alloc_send_pskb+0x4da/0x510 net/core/sock.c:2232
 unix_stream_sendmsg+0x2d5/0x690 net/unix/af_unix.c:1822
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 __sys_sendto+0x21f/0x320 net/socket.c:1952
 __do_sys_sendto net/socket.c:1964 [inline]
 __se_sys_sendto net/socket.c:1960 [inline]
 __x64_sys_sendto+0x89/0xb0 net/socket.c:1960
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7383 Comm: syz-executor.0 Not tainted 5.3.0+ #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/10/15 19:15 https://github.com/google/ktsan.git kcsan 81f95ec7998e b5268b89 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.