syzbot


KASAN: vmalloc-out-of-bounds Read in alloc_counters

Status: auto-closed as invalid on 2020/12/01 18:00
Subsystems: netfilter
[Documentation on labels]
First crash: 1344d, last: 1344d

Sample crash report:
==================================================================
BUG: KASAN: vmalloc-out-of-bounds in get_counters net/ipv6/netfilter/ip6_tables.c:780 [inline]
BUG: KASAN: vmalloc-out-of-bounds in alloc_counters+0x4ad/0x6b0 net/ipv6/netfilter/ip6_tables.c:821
Read of size 8 at addr ffffc90005585058 by task syz-executor.4/6854

CPU: 0 PID: 6854 Comm: syz-executor.4 Not tainted 5.9.0-rc3-syzkaller #0
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+0x1d6/0x29e lib/dump_stack.c:118
 print_address_description+0x66/0x620 mm/kasan/report.c:383
 __kasan_report mm/kasan/report.c:513 [inline]
 kasan_report+0x132/0x1d0 mm/kasan/report.c:530
 get_counters net/ipv6/netfilter/ip6_tables.c:780 [inline]
 alloc_counters+0x4ad/0x6b0 net/ipv6/netfilter/ip6_tables.c:821
 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:838 [inline]
 get_entries net/ipv6/netfilter/ip6_tables.c:1040 [inline]
 do_ip6t_get_ctl+0xd01/0x1a40 net/ipv6/netfilter/ip6_tables.c:1669
 nf_getsockopt+0x2ab/0x2d0 net/netfilter/nf_sockopt.c:116
 ipv6_getsockopt+0x365/0x39c0 net/ipv6/ipv6_sockglue.c:1486
 tcp_getsockopt+0x1dd/0x28b0 net/ipv4/tcp.c:3876
 __sys_getsockopt+0x26c/0x490 net/socket.c:2173
 __do_sys_getsockopt net/socket.c:2188 [inline]
 __se_sys_getsockopt net/socket.c:2185 [inline]
 __x64_sys_getsockopt+0xb1/0xc0 net/socket.c:2185
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4600ca
Code: b8 34 01 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 3d 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 1a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007fff8fa215f8 EFLAGS: 00000216 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 00007fff8fa21620 RCX: 00000000004600ca
RDX: 0000000000000041 RSI: 0000000000000029 RDI: 0000000000000003
RBP: 0000000000747ca0 R08: 00007fff8fa2161c R09: 0000000000004000
R10: 00007fff8fa21680 R11: 0000000000000216 R12: 00007fff8fa21680
R13: 0000000000000003 R14: 00000000007461a0 R15: 0000000000000029


Memory state around the buggy address:
 ffffc90005584f00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
 ffffc90005584f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
>ffffc90005585000: 00 00 00 00 00 00 00 00 00 00 f8 f8 f8 f8 f8 f8
                                                    ^
 ffffc90005585080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
 ffffc90005585100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/02 17:58 upstream 9c7d619be5a0 abf9ba4f .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.