syzbot


KASAN: stack-out-of-bounds Read in xfrm_selector_match

Status: closed as invalid on 2018/11/08 02:37
First crash: 2461d, last: 1993d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: stack-out-of-bounds Read in xfrm_selector_match net 368 2290d 2297d 4/26 fixed on 2018/02/13 04:59
upstream KASAN: stack-out-of-bounds Read in xfrm_selector_match (2) net 1 1308d 1306d 15/26 fixed on 2020/11/16 12:12
android-44 KASAN: stack-out-of-bounds Read in xfrm_selector_match C 36 2003d 1835d 0/2 public: reported C repro on 2019/04/11 08:44
android-414 KASAN: stack-out-of-bounds Read in xfrm_selector_match 1 1641d 1641d 0/1 auto-closed as invalid on 2020/02/19 14:26
android-49 KASAN: stack-out-of-bounds Read in xfrm_selector_match (2) C 13 1639d 1834d 0/3 public: reported C repro on 2019/04/13 00:00

Sample crash report:
random: crng init done
==================================================================
BUG: KASAN: stack-out-of-bounds in memcmp+0x126/0x160 lib/string.c:768
Read of size 1 at addr ffff8801cf717ab0 by task syz-executor100/2048

CPU: 0 PID: 2048 Comm: syz-executor100 Not tainted 4.9.129+ #45
 ffff8801cf717388 ffffffff81b36939 ffffea00073dc5c0 ffff8801cf717ab0
 0000000000000000 ffff8801cf717ab0 ffff8801cf717a98 ffff8801cf7173c0
 ffffffff8150072d ffff8801cf717ab0 0000000000000001 0000000000000000
Call Trace:
 [<ffffffff81b36939>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81b36939>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff8150072d>] print_address_description+0x6c/0x234 mm/kasan/report.c:256
 [<ffffffff81500b37>] kasan_report_error mm/kasan/report.c:355 [inline]
 [<ffffffff81500b37>] kasan_report.cold.6+0x242/0x2fe mm/kasan/report.c:412
 [<ffffffff814f2ce4>] __asan_report_load1_noabort+0x14/0x20 mm/kasan/report.c:430
 [<ffffffff81b53436>] memcmp+0x126/0x160 lib/string.c:768
 [<ffffffff8262bcd0>] addr_match include/net/xfrm.h:833 [inline]
 [<ffffffff8262bcd0>] __xfrm6_selector_match net/xfrm/xfrm_policy.c:87 [inline]
 [<ffffffff8262bcd0>] xfrm_selector_match+0x6a0/0xe40 net/xfrm/xfrm_policy.c:101
 [<ffffffff8262c5b3>] xfrm_sk_policy_lookup+0x143/0x3c0 net/xfrm/xfrm_policy.c:1268
 [<ffffffff8262c9ed>] xfrm_lookup+0x1bd/0xb70 net/xfrm/xfrm_policy.c:2220
 [<ffffffff8262e239>] xfrm_lookup_route+0x39/0x140 net/xfrm/xfrm_policy.c:2354
 [<ffffffff8267f22b>] ip6_dst_lookup_flow+0x17b/0x210 net/ipv6/ip6_output.c:1098
 [<ffffffff826fc135>] rawv6_sendmsg+0x9b5/0x2810 net/ipv6/raw.c:900
 [<ffffffff82582973>] inet_sendmsg+0x203/0x4d0 net/ipv4/af_inet.c:770
 [<ffffffff8228d3ab>] sock_sendmsg_nosec net/socket.c:648 [inline]
 [<ffffffff8228d3ab>] sock_sendmsg+0xbb/0x110 net/socket.c:658
 [<ffffffff8228d623>] sock_write_iter+0x223/0x3b0 net/socket.c:856
 [<ffffffff815080b7>] new_sync_write fs/read_write.c:496 [inline]
 [<ffffffff815080b7>] __vfs_write+0x3d7/0x580 fs/read_write.c:509
 [<ffffffff8150a907>] vfs_write+0x187/0x520 fs/read_write.c:557
 [<ffffffff8150e739>] SYSC_write fs/read_write.c:604 [inline]
 [<ffffffff8150e739>] SyS_write+0xd9/0x1c0 fs/read_write.c:596
 [<ffffffff810056ef>] do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285
 [<ffffffff82802d13>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

The buggy address belongs to the page:
page:ffffea00073dc5c0 count:0 mapcount:0 mapping:          (null) index:0x0
flags: 0x4000000000000000()
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8801cf717980: 00 00 00 00 00 00 00 00 f2 f2 f2 f2 00 00 f2 f2
 ffff8801cf717a00: f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00
>ffff8801cf717a80: 00 00 00 00 00 00 f2 f2 00 00 00 00 00 00 00 00
                                     ^
 ffff8801cf717b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8801cf717b80: 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00
==================================================================

Crashes (672):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/09/29 00:14 https://android.googlesource.com/kernel/common android-4.9 4fc79c48d27f 137d7c66 .config console log report syz C ci-android-49-kasan-gce-root
2018/09/07 12:41 https://android.googlesource.com/kernel/common android-4.9 dcae9fa1319b e30d3b52 .config console log report syz C ci-android-49-kasan-gce-root
2018/07/17 21:39 https://android.googlesource.com/kernel/common android-4.9 f540ce029f50 6d5bd5b5 .config console log report syz C ci-android-49-kasan-gce-root
2018/07/16 23:02 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 40cb0c9a .config console log report syz C ci-android-49-kasan-gce
2018/04/10 13:37 https://android.googlesource.com/kernel/common android-4.9 eba1ffe631bc 8e873e9d .config console log report syz C ci-android-49-kasan-gce
2017/07/25 11:23 https://android.googlesource.com/kernel/common android-4.9 72a0c9f5b54a b0d23a5c .config console log report syz C ci-android-49-kasan-gce
2018/11/04 22:06 https://android.googlesource.com/kernel/common android-4.9 4ba3f69128be 8bd6bd63 .config console log report ci-android-49-kasan-gce-root
2018/11/04 06:17 https://android.googlesource.com/kernel/common android-4.9 4ba3f69128be 8bd6bd63 .config console log report ci-android-49-kasan-gce
2018/11/01 21:27 https://android.googlesource.com/kernel/common android-4.9 4ba3f69128be 1f38e9ae .config console log report ci-android-49-kasan-gce-root
2018/11/01 03:42 https://android.googlesource.com/kernel/common android-4.9 4ba3f69128be 1f38e9ae .config console log report ci-android-49-kasan-gce-root
2018/10/31 05:52 https://android.googlesource.com/kernel/common android-4.9 4ba3f69128be 4ccf7bb4 .config console log report ci-android-49-kasan-gce
2018/10/29 18:52 https://android.googlesource.com/kernel/common android-4.9 4ba3f69128be 7df9db2e .config console log report ci-android-49-kasan-gce-root
2018/10/29 01:30 https://android.googlesource.com/kernel/common android-4.9 4ba3f69128be 9ca2afa1 .config console log report ci-android-49-kasan-gce-root
2018/10/24 04:28 https://android.googlesource.com/kernel/common android-4.9 b8bd066f13f4 a8292de9 .config console log report ci-android-49-kasan-gce-root
2018/10/24 00:09 https://android.googlesource.com/kernel/common android-4.9 b8bd066f13f4 a8292de9 .config console log report ci-android-49-kasan-gce
2018/10/22 08:56 https://android.googlesource.com/kernel/common android-4.9 03fcc2fe7130 ecb386fe .config console log report ci-android-49-kasan-gce-root
2018/10/16 05:57 https://android.googlesource.com/kernel/common android-4.9 d589c0d40671 8cd30605 .config console log report ci-android-49-kasan-gce-root
2018/10/13 08:43 https://android.googlesource.com/kernel/common android-4.9 38f2b4a8c277 caf12900 .config console log report ci-android-49-kasan-gce
2018/10/13 02:06 https://android.googlesource.com/kernel/common android-4.9 38f2b4a8c277 caf12900 .config console log report ci-android-49-kasan-gce-root
2018/10/10 18:46 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 5b11ac2c .config console log report ci-android-49-kasan-gce-root
2018/10/10 06:10 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/10 03:55 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/09 21:35 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/09 19:32 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/09 16:56 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/09 15:28 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce
2018/10/09 08:04 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/09 00:15 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/08 20:23 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/08 18:28 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/08 17:21 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/08 14:23 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/08 11:50 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/08 06:47 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/07 23:19 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/07 20:23 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/07 18:26 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/07 04:05 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/07 02:34 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/06 21:36 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/06 19:15 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/06 16:14 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/06 11:21 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/06 05:01 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/10/06 03:58 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/04/06 06:05 https://android.googlesource.com/kernel/common android-4.9 7cd956196346 a932eae6 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.