syzbot


KASAN: user-memory-access Read in ip6_hold_safe (2)

Status: closed as invalid on 2019/05/15 22:57
Subsystems: net
[Documentation on labels]
First crash: 1828d, last: 1817d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: user-memory-access Read in ip6_hold_safe (3) net 456 1769d 1788d 13/26 fixed on 2019/10/04 12:05
linux-4.19 KASAN: user-memory-access Read in ip6_hold_safe 1 1770d 1770d 0/1 auto-closed as invalid on 2019/10/25 08:37
upstream KASAN: user-memory-access Read in ip6_hold_safe net 20 1848d 1927d 0/26 closed as invalid on 2019/04/02 18:33

Sample crash report:
==================================================================
BUG: KASAN: user-memory-access in atomic_read include/asm-generic/atomic-instrumented.h:26 [inline]
BUG: KASAN: user-memory-access in atomic_fetch_add_unless include/linux/atomic-fallback.h:1086 [inline]
BUG: KASAN: user-memory-access in atomic_add_unless include/linux/atomic-fallback.h:1111 [inline]
BUG: KASAN: user-memory-access in atomic_inc_not_zero include/linux/atomic-fallback.h:1127 [inline]
BUG: KASAN: user-memory-access in dst_hold_safe include/net/dst.h:308 [inline]
BUG: KASAN: user-memory-access in ip6_hold_safe+0xb3/0x3a0 net/ipv6/route.c:1020
Read of size 4 at addr 000000000000cd00 by task syz-executor.2/12551

CPU: 1 PID: 12551 Comm: syz-executor.2 Not tainted 5.1.0-rc6+ #192
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 kasan_report.cold+0x5/0x40 mm/kasan/report.c:321
 check_memory_region_inline mm/kasan/generic.c:185 [inline]
 check_memory_region+0x123/0x190 mm/kasan/generic.c:191
 kasan_check_read+0x11/0x20 mm/kasan/common.c:102
 atomic_read include/asm-generic/atomic-instrumented.h:26 [inline]
 atomic_fetch_add_unless include/linux/atomic-fallback.h:1086 [inline]
 atomic_add_unless include/linux/atomic-fallback.h:1111 [inline]
 atomic_inc_not_zero include/linux/atomic-fallback.h:1127 [inline]
 dst_hold_safe include/net/dst.h:308 [inline]
 ip6_hold_safe+0xb3/0x3a0 net/ipv6/route.c:1020
 rt6_get_pcpu_route net/ipv6/route.c:1242 [inline]
 ip6_pol_route+0x348/0x1080 net/ipv6/route.c:1901
 ip6_pol_route_output+0x54/0x70 net/ipv6/route.c:2077
 fib6_rule_lookup+0x269/0x560 net/ipv6/fib6_rules.c:122
 ip6_route_output_flags+0x2c4/0x350 net/ipv6/route.c:2106
 ip6_route_output include/net/ip6_route.h:88 [inline]
 ip6_dst_lookup_tail+0xd10/0x1b30 net/ipv6/ip6_output.c:966
 ip6_dst_lookup_flow+0xa8/0x220 net/ipv6/ip6_output.c:1094
 tcp_v6_connect+0xe5f/0x2180 net/ipv6/tcp_ipv6.c:269
 __inet_stream_connect+0x83f/0xea0 net/ipv4/af_inet.c:655
 inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:719
 __sys_connect+0x266/0x330 net/socket.c:1808
 __do_sys_connect net/socket.c:1819 [inline]
 __se_sys_connect net/socket.c:1816 [inline]
 __x64_sys_connect+0x73/0xb0 net/socket.c:1816
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458da9
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f6dd4de2c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458da9
RDX: 000000000000001c RSI: 0000000020000080 RDI: 0000000000000004
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6dd4de36d4
R13: 00000000004bf1f1 R14: 00000000004d02c0 R15: 00000000ffffffff
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/02 18:01 net-old 4dd2b82d5adf e9039493 .config console log report ci-upstream-net-this-kasan-gce
2019/04/29 08:45 net-old 21f1b8a6636c b617407b .config console log report ci-upstream-net-this-kasan-gce
2019/04/21 17:24 net-old 12c768611132 b0e8efcb .config console log report ci-upstream-net-this-kasan-gce
* Struck through repros no longer work on HEAD.