syzbot


WARNING: kmalloc bug in should_fail (2)

Status: closed as invalid on 2018/03/23 14:00
Subsystems: mm
[Documentation on labels]
First crash: 2503d, last: 2503d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: kmalloc bug in should_fail mm 1 2540d 2540d 0/28 closed as invalid on 2018/02/14 18:58

Sample crash report:
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 10750 Comm: syz-executor3 Not tainted 4.16.0-rc4+ #278
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
WARNING: CPU: 1 PID: 10761 at mm/slab_common.c:1012 kmalloc_slab+0x5d/0x70 mm/slab_common.c:1012
Call Trace:
Kernel panic - not syncing: panic_on_warn set ...

 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x24d lib/dump_stack.c:53
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail+0x8c0/0xa40 lib/fault-inject.c:149
 should_failslab+0xec/0x120 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:422 [inline]
 slab_alloc mm/slab.c:3365 [inline]
 kmem_cache_alloc_trace+0x4b/0x740 mm/slab.c:3605
 kmalloc include/linux/slab.h:512 [inline]
 kzalloc include/linux/slab.h:701 [inline]
 nf_bridge_alloc include/net/netfilter/br_netfilter.h:9 [inline]
 br_nf_pre_routing+0x6d3/0x14a0 net/bridge/br_netfilter_hooks.c:508
 nf_hook_entry_hookfn include/linux/netfilter.h:120 [inline]
 nf_hook_slow+0xba/0x1a0 net/netfilter/core.c:483
 nf_hook include/linux/netfilter.h:243 [inline]
 NF_HOOK include/linux/netfilter.h:286 [inline]
 br_handle_frame+0xb4e/0x1730 net/bridge/br_input.c:302
 __netif_receive_skb_core+0x984/0x3460 net/core/dev.c:4511
 __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4622
 netif_receive_skb_internal+0x10b/0x670 net/core/dev.c:4696
 netif_receive_skb+0xae/0x390 net/core/dev.c:4720
 tun_rx_batched.isra.52+0x5ee/0x870 drivers/net/tun.c:1555
 tun_get_user+0x25a5/0x3810 drivers/net/tun.c:1959
 tun_chr_write_iter+0xb9/0x160 drivers/net/tun.c:1987
 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
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x454111
RSP: 002b:00007efea669aba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 000000000000002a RCX: 0000000000454111
RDX: 0000000000000001 RSI: 00007efea669abf0 RDI: 00000000000000fc
RBP: 0000000020791fd1 R08: 00000000000000fc R09: 0000000000000000
R10: 000000000000002a R11: 0000000000000293 R12: 0000000000000013
R13: 0000000000000625 R14: 00000000006fa418 R15: 0000000000000002
CPU: 1 PID: 10761 Comm: syz-executor2 Not tainted 4.16.0-rc4+ #278
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x24d lib/dump_stack.c:53
 panic+0x1e4/0x41c kernel/panic.c:183
 __warn+0x1dc/0x200 kernel/panic.c:547
 report_bug+0x211/0x2d0 lib/bug.c:184
 fixup_bug.part.11+0x37/0x80 arch/x86/kernel/traps.c:178
 fixup_bug arch/x86/kernel/traps.c:247 [inline]
 do_error_trap+0x2d7/0x3e0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:986
RIP: 0010:kmalloc_slab+0x5d/0x70 mm/slab_common.c:1012
RSP: 0018:ffff8801aab372f0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000020000018 RCX: ffffffff84ecd358
RDX: 0000000000000aca RSI: 0000000000000000 RDI: 0000000020000018
RBP: ffff8801aab372f0 R08: 0000000000000000 R09: 1ffff10035566e21
R10: ffff8801aab37040 R11: 0000000000000001 R12: 0000000000000018
R13: ffff8801aab37598 R14: 00000000014080c0 R15: ffff8801aab83240
 __do_kmalloc mm/slab.c:3700 [inline]
 __kmalloc+0x25/0x760 mm/slab.c:3714
 kmalloc include/linux/slab.h:517 [inline]
 kzalloc include/linux/slab.h:701 [inline]
 xfrm_alloc_replay_state_esn net/xfrm/xfrm_user.c:442 [inline]
 xfrm_state_construct net/xfrm/xfrm_user.c:601 [inline]
 xfrm_add_sa+0x1b15/0x3440 net/xfrm/xfrm_user.c:647
 xfrm_user_rcv_msg+0x41c/0x860 net/xfrm/xfrm_user.c:2595
 netlink_rcv_skb+0x14b/0x380 net/netlink/af_netlink.c:2444
 xfrm_netlink_rcv+0x6f/0x90 net/xfrm/xfrm_user.c:2603
 netlink_unicast_kernel net/netlink/af_netlink.c:1308 [inline]
 netlink_unicast+0x4c4/0x6b0 net/netlink/af_netlink.c:1334
 netlink_sendmsg+0xa4a/0xe60 net/netlink/af_netlink.c:1897
 sock_sendmsg_nosec net/socket.c:629 [inline]
 sock_sendmsg+0xca/0x110 net/socket.c:639
 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2047
 __sys_sendmsg+0xe5/0x210 net/socket.c:2081
 SYSC_sendmsg net/socket.c:2092 [inline]
 SyS_sendmsg+0x2d/0x50 net/socket.c:2088
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x454239
RSP: 002b:00007f164b0d5c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f164b0d66d4 RCX: 0000000000454239
RDX: 0000000000000000 RSI: 000000002014f000 RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000004ca R14: 00000000006f8390 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/23 12:57 net-next-old 6686c459e144 2e9d9054 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.