Hello,
syzbot hit the following crash on net-next commit
617aebe6a97efa539cc4b8a52adccd89596e6be0 (Sun Feb 4 00:25:42 2018 +0000)
Merge tag 'usercopy-v4.16-rc1' of
git://
git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Unfortunately, I don't have any reproducer for this crash yet.
Raw console output is attached.
compiler: gcc (GCC) 7.1.1 20170620
.config is attached.
CC: [
core...@netfilter.org da...@davemloft.net f...@strlen.de
kad...@blackhole.kfki.hu kuz...@ms2.inr.ac.ru linux-...@vger.kernel.org
net...@vger.kernel.org netfilt...@vger.kernel.org pa...@netfilter.org
yosh...@linux-ipv6.org]
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+adc74a...@syzkaller.appspotmail.com
It will help syzbot understand when the bug is fixed. See footer for
details.
If you forward the report, please keep this part and the footer.
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
fail_dump lib/fault-inject.c:51 [inline]
should_fail+0x8c0/0xa40 lib/fault-inject.c:149
(ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 16173 Comm: syz-executor6 Not tainted 4.15.0+ #221
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:ip6t_do_table+0x132d/0x1a30 net/ipv6/netfilter/ip6_tables.c:355
RSP: 0018:ffff8801d30d6728 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8801ac392080 RCX: ffffffff84db22a1
RDX: 00000000000003e5 RSI: 0000000000000000 RDI: ffff8801ac3921de
should_failslab+0xec/0x120 mm/failslab.c:32
RBP: ffff8801d30d6970 R08: ffff8801d30d6a68 R09: 0000000000000002
slab_pre_alloc_hook mm/slab.h:422 [inline]
slab_alloc_node mm/slab.c:3286 [inline]
kmem_cache_alloc_node_trace+0x5a/0x750 mm/slab.c:3648
R10: 00000000000000d0 R11: 0000000000000000 R12: 0000000000000001
__do_kmalloc_node mm/slab.c:3668 [inline]
__kmalloc_node_track_caller+0x33/0x70 mm/slab.c:3683
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8801ac392150
__kmalloc_reserve.isra.39+0x41/0xd0 net/core/skbuff.c:137
FS: 00007fdbb5763700(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000
__alloc_skb+0x13b/0x780 net/core/skbuff.c:205
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000071c000 CR3: 00000001d3d09001 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
alloc_skb include/linux/skbuff.h:983 [inline]
netlink_dump+0x545/0xcf0 net/netlink/af_netlink.c:2203
__netlink_dump_start+0x4f0/0x6d0 net/netlink/af_netlink.c:2319
netlink_dump_start include/linux/netlink.h:214 [inline]
rtnetlink_rcv_msg+0x7f0/0xb10 net/core/rtnetlink.c:4550
ip6table_security_hook+0x65/0x80 net/ipv6/netfilter/ip6table_security.c:45
nf_hook_entry_hookfn include/linux/netfilter.h:120 [inline]
nf_hook_slow+0xba/0x1a0 net/netfilter/core.c:483
netlink_rcv_skb+0x14b/0x380 net/netlink/af_netlink.c:2442
nf_hook include/linux/netfilter.h:243 [inline]
NF_HOOK include/linux/netfilter.h:286 [inline]
ip6_input+0x35c/0x560 net/ipv6/ip6_input.c:327
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4605
ip6_mc_input+0x3a8/0xb10 net/ipv6/ip6_input.c:404
netlink_unicast_kernel net/netlink/af_netlink.c:1308 [inline]
netlink_unicast+0x4c4/0x6b0 net/netlink/af_netlink.c:1334
dst_input include/net/dst.h:449 [inline]
ip6_rcv_finish+0x297/0x8c0 net/ipv6/ip6_input.c:71
netlink_sendmsg+0xa4a/0xe60 net/netlink/af_netlink.c:1897
NF_HOOK include/linux/netfilter.h:288 [inline]
ipv6_rcv+0xf37/0x1fa0 net/ipv6/ip6_input.c:208
sock_sendmsg_nosec net/socket.c:630 [inline]
sock_sendmsg+0xca/0x110 net/socket.c:640
___sys_sendmsg+0x767/0x8b0 net/socket.c:2046
__netif_receive_skb_core+0x1a41/0x3460 net/core/dev.c:4547
__sys_sendmsg+0xe5/0x210 net/socket.c:2080
SYSC_sendmsg net/socket.c:2091 [inline]
SyS_sendmsg+0x2d/0x50 net/socket.c:2087
entry_SYSCALL_64_fastpath+0x29/0xa0
RIP: 0033:0x453299
RSP: 002b:00007f692ffbac58 EFLAGS: 00000212
ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f692ffbaaa0 RCX: 0000000000453299
RDX: 0000000000000000 RSI: 0000000020004fc8 RDI: 0000000000000013
RBP: 00007f692ffbaa90 R08: 0000000000000000 R09: 0000000000000000
__netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4612
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000004b8096
R13: 00007f692ffbabc8 R14: 00000000004b8096 R15: 0000000000000000
netif_receive_skb_internal+0x10b/0x670 net/core/dev.c:4686
netif_receive_skb+0xae/0x390 net/core/dev.c:4710
tun_rx_batched.isra.52+0x5ee/0x870 drivers/net/tun.c:1558
tun_get_user+0x25de/0x3940 drivers/net/tun.c:1958
tun_chr_write_iter+0xb9/0x160 drivers/net/tun.c:1986
call_write_iter include/linux/fs.h:1781 [inline]
do_iter_readv_writev+0x55c/0x830 fs/read_write.c:653
do_iter_write+0x154/0x540 fs/read_write.c:932
vfs_writev+0x18a/0x340 fs/read_write.c:977
do_writev+0xfc/0x2a0 fs/read_write.c:1012
SYSC_writev fs/read_write.c:1085 [inline]
SyS_writev+0x27/0x30 fs/read_write.c:1082
entry_SYSCALL_64_fastpath+0x29/0xa0
RIP: 0033:0x453171
RSP: 002b:00007fdbb5762b80 EFLAGS: 00000293 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453171
RDX: 0000000000000001 RSI: 00007fdbb5762bd0 RDI: 0000000000000012
RBP: 00000000000005e6 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000004a R11: 0000000000000293 R12: 00000000006f7e30
R13: 00000000ffffffff R14: 00007fdbb57636d4 R15: 0000000000000000
Code: 41 f6 87 83 00 00 00 04 75 37 e8 0f 83 95 fc 8b 85 14 fe ff ff 48 8b
b5 50 fe ff ff 4c 8d 2c c6 44 8d 60 01 4c 89 e8 48 c1 e8 03 <42> 80 3c 30
00 0f 85 26 03 00 00 4d 89 7d 00 44 89 a5 14 fe ff
RIP: ip6t_do_table+0x132d/0x1a30 net/ipv6/netfilter/ip6_tables.c:355 RSP:
ffff8801d30d6728
---[ end trace c78919f241c5e206 ]---
---
This bug is generated by a dumb bot. It may contain errors.
See
https://goo.gl/tpsmEJ for details.
Direct all questions to
syzk...@googlegroups.com.
syzbot will keep track of this bug report.
If you forgot to add the Reported-by tag, once the fix for this bug is
merged
into any tree, please reply to this email with:
#syz fix: exact-commit-title
To mark this as a duplicate of another syzbot report, please reply with:
#syz dup: exact-subject-of-another-report
If it's a one-off invalid bug report, please reply with:
#syz invalid
Note: if the crash happens again, it will cause creation of a new bug
report.
Note: all commands must start from beginning of the line in the email body.
To upstream this report, please reply with:
#syz upstream