syzbot


KASAN: alloca-out-of-bounds Read in do_IRQ

Status: closed as invalid on 2018/04/13 11:18
Subsystems: kernel
[Documentation on labels]
First crash: 2698d, last: 2698d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: alloca-out-of-bounds Read in do_IRQ (2) kernel -1 1 2698d 2698d 0/29 closed as invalid on 2018/04/13 14:01

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready
8021q: adding VLAN 0 to HW filter on device bond0
IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready
8021q: adding VLAN 0 to HW filter on device bond0
==================================================================
BUG: KASAN: alloca-out-of-bounds in do_IRQ+0x158/0x190 arch/x86/kernel/irq.c:229
Read of size 8 at addr ffff8801b07ff300 by task ip/5693

CPU: 0 PID: 5693 Comm: ip Not tainted 4.16.0+ #1
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b9/0x29f lib/dump_stack.c:53
 print_address_description+0x6c/0x20b mm/kasan/report.c:256
 kasan_report_error mm/kasan/report.c:354 [inline]
 kasan_report.cold.7+0xac/0x2f5 mm/kasan/report.c:412
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
 do_IRQ+0x158/0x190 arch/x86/kernel/irq.c:229
 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:641
 </IRQ>
RIP: 0010:put_net include/net/net_namespace.h:225 [inline]
RIP: 0010:rtnl_newlink+0x1085/0x1a40 net/core/rtnetlink.c:3070
RSP: 0018:ffff8801b07ff338 EFLAGS: 00000293 ORIG_RAX: ffffffffffffffda
RAX: ffff8801ae7be340 RBX: 0000000000000000 RCX: ffffffff85c03fdf
RDX: 0000000000000000 RSI: ffffffff85c03f2e RDI: ffff8801b07ff5b8
RBP: ffff8801b07ff768 R08: ffff8801ae7be340 R09: ffffed00360ffe5d
R10: ffffed00360ffe95 R11: ffff8801b07ff4af R12: ffff8801b07ff740
R13: ffff8801af02a0c0 R14: 0000000000000000 R15: 00000000ffffffed
 rtnetlink_rcv_msg+0x466/0xc10 net/core/rtnetlink.c:4646
 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2446
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4664
 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
 netlink_unicast+0x58b/0x740 net/netlink/af_netlink.c:1336
 netlink_sendmsg+0x9d8/0xf80 net/netlink/af_netlink.c:1899
 sock_sendmsg_nosec net/socket.c:629 [inline]
 sock_sendmsg+0xd5/0x120 net/socket.c:639
 __sys_sendto+0x3d7/0x670 net/socket.c:1789
 SYSC_sendto net/socket.c:1801 [inline]
 SyS_sendto+0x40/0x60 net/socket.c:1797
 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x7f4277c53282
RSP: 002b:00007ffe6193dd70 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f4277c53282
RDX: 0000000000000020 RSI: 00007ffe6193ddb0 RDI: 0000000000000013
RBP: 00007ffe6193ef4a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007ffe6193e530 R14: 00007ffe6193e538 R15: 0000000000000000

The buggy address belongs to the page:
page:ffffea0006c1ffc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x2fffc0000000000()
raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff
raw: 0000000000000000 ffffea0006c10101 0000000000000000 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8801b07ff200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8801b07ff280: 00 00 00 00 00 00 00 00 ca ca ca ca 00 cb cb cb
>ffff8801b07ff300: cb cb cb cb 00 00 00 00 00 00 00 00 00 00 00 00
                   ^
 ffff8801b07ff380: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
 ffff8801b07ff400: 00 f2 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/13 01:22 net-next-old 17dec0a94915 eb2295de .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.