syzbot


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

Status: closed as invalid on 2019/01/01 20:10
First crash: 2662d, last: 2151d
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find (3) net C 10353 2490d 2557d 4/28 fixed on 2018/01/31 00:24
android-44 KASAN: stack-out-of-bounds Read in xfrm_state_find C 842 1818d 2050d 0/2 public: reported C repro on 2019/04/12 00:00
android-54 KASAN: stack-out-of-bounds Read in xfrm_state_find C 1 690d 690d 0/2 upstream: reported C repro on 2023/01/01 01:05
android-5-15 KASAN: stack-out-of-bounds Read in xfrm_state_find origin:upstream missing-backport C error error 2 205d 690d 0/2 upstream: reported C repro on 2023/01/01 00:40
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find (5) net C done 654 2123d 2425d 13/28 fixed on 2019/11/11 16:48
upstream KMSAN: uninit-value in xfrm_state_find net C error done 215 552d 2351d 22/28 fixed on 2023/07/01 16:05
android-5-10 KASAN: stack-out-of-bounds Read in xfrm_state_find (2) syz error error 1 690d 690d 0/2 auto-obsoleted due to no activity on 2023/05/14 02:28
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find net C 365 2586d 2659d 0/28 closed as invalid on 2017/10/23 16:19
android-5-10 KASAN: stack-out-of-bounds Read in xfrm_state_find 1 1110d 1110d 0/2 closed as invalid on 2022/02/03 13:56
android-414 KASAN: stack-out-of-bounds Read in xfrm_state_find C 137 2124d 2051d 0/1 public: reported C repro on 2019/04/11 00:00
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find (2) net C 93 2568d 2576d 3/28 fixed on 2017/11/18 01:42
android-49 KASAN: stack-out-of-bounds Read in xfrm_state_find (2) C 392 1815d 2051d 0/3 public: reported C repro on 2019/04/11 08:44
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find (4) net C 102 2435d 2486d 4/28 fixed on 2018/03/23 18:14

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: crng init done
==================================================================
BUG: KASAN: stack-out-of-bounds in __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:28 [inline]
BUG: KASAN: stack-out-of-bounds in __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline]
BUG: KASAN: stack-out-of-bounds in xfrm_dst_hash net/xfrm/xfrm_state.c:60 [inline]
BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x269d/0x2920 net/xfrm/xfrm_state.c:807
Read of size 4 at addr ffff8801ce41f650 by task syz-executor175/2055

CPU: 1 PID: 2055 Comm: syz-executor175 Not tainted 4.9.141+ #1
 ffff8801ce41ecc0 ffffffff81b42e79 ffffea00073907c0 ffff8801ce41f650
 0000000000000000 ffff8801ce41f650 ffff8801ce876af0 ffff8801ce41ecf8
 ffffffff815009b8 ffff8801ce41f650 0000000000000004 0000000000000000
Call Trace:
 [<ffffffff81b42e79>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81b42e79>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff815009b8>] print_address_description+0x6c/0x234 mm/kasan/report.c:256
 [<ffffffff81500dc2>] kasan_report_error mm/kasan/report.c:355 [inline]
 [<ffffffff81500dc2>] kasan_report.cold.6+0x242/0x2fe mm/kasan/report.c:412
 [<ffffffff814f3054>] __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432
 [<ffffffff826572ed>] __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:28 [inline]
 [<ffffffff826572ed>] __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline]
 [<ffffffff826572ed>] xfrm_dst_hash net/xfrm/xfrm_state.c:60 [inline]
 [<ffffffff826572ed>] xfrm_state_find+0x269d/0x2920 net/xfrm/xfrm_state.c:807
 [<ffffffff8263cc82>] xfrm_tmpl_resolve_one+0x1d2/0x7a0 net/xfrm/xfrm_policy.c:1500
 [<ffffffff8263d46f>] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:1544 [inline]
 [<ffffffff8263d46f>] xfrm_resolve_and_create_bundle+0x21f/0x1e70 net/xfrm/xfrm_policy.c:1893
 [<ffffffff82640569>] xfrm_lookup+0x239/0xc00 net/xfrm/xfrm_policy.c:2254
 [<ffffffff82641dc9>] xfrm_lookup_route+0x39/0x140 net/xfrm/xfrm_policy.c:2379
 [<ffffffff8248c500>] ip_route_output_flow+0x90/0xa0 net/ipv4/route.c:2448
 [<ffffffff8256be69>] udp_sendmsg+0x13d9/0x1c60 net/ipv4/udp.c:1025
 [<ffffffff8270876d>] udpv6_sendmsg+0x127d/0x2430 net/ipv6/udp.c:1086
 [<ffffffff825952f3>] inet_sendmsg+0x203/0x4d0 net/ipv4/af_inet.c:770
 [<ffffffff822a063b>] sock_sendmsg_nosec net/socket.c:648 [inline]
 [<ffffffff822a063b>] sock_sendmsg+0xbb/0x110 net/socket.c:658
 [<ffffffff822a209a>] ___sys_sendmsg+0x47a/0x840 net/socket.c:1982
 [<ffffffff822a55a1>] __sys_sendmmsg+0x161/0x3d0 net/socket.c:2072
 [<ffffffff822a5845>] SYSC_sendmmsg net/socket.c:2103 [inline]
 [<ffffffff822a5845>] SyS_sendmmsg+0x35/0x60 net/socket.c:2098
 [<ffffffff810056ef>] do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285
 [<ffffffff82817893>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

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

Memory state around the buggy address:
 ffff8801ce41f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
 ffff8801ce41f580: f1 f1 f1 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 f2
>ffff8801ce41f600: f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 00
                                                 ^
 ffff8801ce41f680: 00 00 00 00 00 00 00 00 f2 f2 f2 00 00 00 00 00
 ffff8801ce41f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (4151):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/12/04 21:57 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 6ad0ae61 .config console log report syz C ci-android-49-kasan-gce
2018/12/04 20:56 https://android.googlesource.com/kernel/common android-4.9 d29b73e6f441 6ad0ae61 .config console log report syz C ci-android-49-kasan-gce-root
2018/09/29 08:56 https://android.googlesource.com/kernel/common android-4.9 4fc79c48d27f 41e4b329 .config console log report syz C ci-android-49-kasan-gce-root
2018/09/29 08:38 https://android.googlesource.com/kernel/common android-4.9 4fc79c48d27f 41e4b329 .config console log report syz C ci-android-49-kasan-gce
2018/08/30 05:31 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 6c7e9d3d .config console log report syz C ci-android-49-kasan-gce
2018/08/30 05:30 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 6c7e9d3d .config console log report syz C ci-android-49-kasan-gce-root
2018/06/16 12:25 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report syz C ci-android-49-kasan-gce-root
2018/06/16 11:27 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report syz C ci-android-49-kasan-gce
2018/05/15 16:23 https://android.googlesource.com/kernel/common android-4.9 74fa0af47306 661fd7b9 .config console log report syz C ci-android-49-kasan-gce
2018/05/15 16:23 https://android.googlesource.com/kernel/common android-4.9 74fa0af47306 661fd7b9 .config console log report syz C ci-android-49-kasan-gce-root
2018/05/15 14:20 https://android.googlesource.com/kernel/common android-4.9 74fa0af47306 661fd7b9 .config console log report syz C ci-android-49-kasan-gce
2018/05/15 14:18 https://android.googlesource.com/kernel/common android-4.9 74fa0af47306 661fd7b9 .config console log report syz C ci-android-49-kasan-gce-root
2018/04/01 21:20 https://android.googlesource.com/kernel/common android-4.9 9c3fb9cd6e63 dc889257 .config console log report syz C ci-android-49-kasan-gce
2018/02/27 02:40 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 b370d4a7 .config console log report syz C ci-android-49-kasan-gce
2017/12/29 11:50 https://android.googlesource.com/kernel/common android-4.9 cb7518e6167c 7d240098 .config console log report syz C ci-android-49-kasan-gce-386
2017/12/28 21:51 https://android.googlesource.com/kernel/common android-4.9 cb7518e6167c 7d240098 .config console log report syz C ci-android-49-kasan-gce-386
2017/12/27 04:40 https://android.googlesource.com/kernel/common android-4.9 250637879165 73aba437 .config console log report syz C ci-android-49-kasan-gce-386
2017/12/25 09:44 https://android.googlesource.com/kernel/common android-4.9 250637879165 73aba437 .config console log report syz C ci-android-49-kasan-gce
2017/12/09 12:02 https://android.googlesource.com/kernel/common android-4.9 f26d3c76d376 5ad0ce95 .config console log report syz C ci-android-49-kasan-gce
2017/10/23 21:55 https://android.googlesource.com/kernel/common android-4.9 27155df9e4e6 9bf63a7b .config console log report syz C ci-android-49-kasan-gce
2017/10/20 11:31 https://android.googlesource.com/kernel/common android-4.9 9eaaf14c7829 ab829b1b .config console log report syz C ci-android-49-kasan-gce
2017/09/29 04:06 https://android.googlesource.com/kernel/common android-4.9 c30c69c76c1d c26ea367 .config console log report syz C ci-android-49-kasan-gce
2017/08/20 02:49 https://android.googlesource.com/kernel/common android-4.9 6dda7ac61943 f238fbd4 .config console log report syz C ci-android-49-kasan-gce
2017/08/13 18:35 https://android.googlesource.com/kernel/common android-4.9 02f29ab1b950 6a0246bf .config console log report syz C ci-android-49-kasan-gce
2017/08/13 17:11 https://android.googlesource.com/kernel/common android-4.9 02f29ab1b950 6a0246bf .config console log report syz C ci-android-49-kasan-gce
2017/08/09 22:04 https://android.googlesource.com/kernel/common android-4.9 db0248427f18 7e288c05 .config console log report syz C ci-android-49-kasan-gce
2017/08/09 15:38 https://android.googlesource.com/kernel/common android-4.9 db0248427f18 7e288c05 .config console log report syz C ci-android-49-kasan-gce
2017/08/09 13:25 https://android.googlesource.com/kernel/common android-4.9 db0248427f18 7e288c05 .config console log report syz C ci-android-49-kasan-gce
2017/08/09 11:26 https://android.googlesource.com/kernel/common android-4.9 db0248427f18 7e288c05 .config console log report syz C ci-android-49-kasan-gce
2017/08/07 21:12 https://android.googlesource.com/kernel/common android-4.9 7b2727c68878 77a9ec9b .config console log report syz C ci-android-49-kasan-gce
2018/04/01 22:26 https://android.googlesource.com/kernel/common android-4.9 9c3fb9cd6e63 dc889257 .config console log report syz ci-android-49-kasan-gce-386
2018/02/27 02:41 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 b370d4a7 .config console log report syz ci-android-49-kasan-gce-386
2019/01/01 07:55 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 3d85f48c .config console log report ci-android-49-kasan-gce
2019/01/01 00:44 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 3d85f48c .config console log report ci-android-49-kasan-gce
2018/12/31 23:29 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 3d85f48c .config console log report ci-android-49-kasan-gce
2018/12/29 20:12 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 a40793d7 .config console log report ci-android-49-kasan-gce
2018/12/28 09:10 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 af317504 .config console log report ci-android-49-kasan-gce
2018/12/27 20:14 https://android.googlesource.com/kernel/common android-4.9 a2f9236e8131 43cf01dd .config console log report ci-android-49-kasan-gce-root
2018/12/27 13:54 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 43cf01dd .config console log report ci-android-49-kasan-gce
2018/12/24 15:13 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 be79df56 .config console log report ci-android-49-kasan-gce
2018/12/24 09:29 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 be79df56 .config console log report ci-android-49-kasan-gce
2018/12/23 01:45 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 e3bd7ab8 .config console log report ci-android-49-kasan-gce
2018/12/21 08:33 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 2b497001 .config console log report ci-android-49-kasan-gce
2018/12/21 05:23 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 2b497001 .config console log report ci-android-49-kasan-gce
2018/12/21 03:23 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 2b497001 .config console log report ci-android-49-kasan-gce
2018/12/20 18:35 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 aaf59e84 .config console log report ci-android-49-kasan-gce
2018/12/20 16:54 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 aaf59e84 .config console log report ci-android-49-kasan-gce
2018/12/20 02:52 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 02e69052 .config console log report ci-android-49-kasan-gce
2018/12/19 07:49 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 4edaba93 .config console log report ci-android-49-kasan-gce
2018/12/19 01:05 https://android.googlesource.com/kernel/common android-4.9 2ca7ab11eb36 4edaba93 .config console log report ci-android-49-kasan-gce-root
2018/12/18 20:57 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 4edaba93 .config console log report ci-android-49-kasan-gce
2018/12/18 11:38 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 def91db3 .config console log report ci-android-49-kasan-gce
2018/12/18 06:08 https://android.googlesource.com/kernel/common android-4.9 5d05bdd53c86 def91db3 .config console log report ci-android-49-kasan-gce-root
2018/12/18 03:53 https://android.googlesource.com/kernel/common android-4.9 5d05bdd53c86 def91db3 .config console log report ci-android-49-kasan-gce-root
2018/12/17 03:28 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 def91db3 .config console log report ci-android-49-kasan-gce
2018/12/14 21:54 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 7624ddd6 .config console log report ci-android-49-kasan-gce
2018/12/14 16:35 https://android.googlesource.com/kernel/common android-4.9 e9a34dcec994 7624ddd6 .config console log report ci-android-49-kasan-gce-root
2018/12/14 04:47 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 fe7127be .config console log report ci-android-49-kasan-gce
2018/12/13 09:13 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 02613a41 .config console log report ci-android-49-kasan-gce
2018/12/12 20:23 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 c3b10a5d .config console log report ci-android-49-kasan-gce
2018/12/11 00:12 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 4093e33b .config console log report ci-android-49-kasan-gce
2018/12/10 13:29 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 6565f24d .config console log report ci-android-49-kasan-gce
2018/12/08 17:19 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 60562a1d .config console log report ci-android-49-kasan-gce
2018/12/07 08:58 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 dcf836b1 .config console log report ci-android-49-kasan-gce
2018/12/06 20:48 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 3ab38479 .config console log report ci-android-49-kasan-gce
2018/12/06 18:31 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 3ab38479 .config console log report ci-android-49-kasan-gce
2018/12/05 17:40 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 ac6c0578 .config console log report ci-android-49-kasan-gce
2018/12/05 09:41 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f162ad97 .config console log report ci-android-49-kasan-gce
2018/12/04 15:06 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 6ad0ae61 .config console log report ci-android-49-kasan-gce
2018/12/04 02:39 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 03f94a45 .config console log report ci-android-49-kasan-gce
2018/12/04 01:05 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 03f94a45 .config console log report ci-android-49-kasan-gce
2018/12/03 16:11 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 819002b0 .config console log report ci-android-49-kasan-gce
2018/12/02 21:50 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 e0d8c853 .config console log report ci-android-49-kasan-gce
2018/11/30 20:29 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 ade12e91 .config console log report ci-android-49-kasan-gce
2018/04/08 12:54 https://android.googlesource.com/kernel/common android-4.9 4fb542f2aa14 77bd5117 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.