syzbot


BUG: unable to handle kernel NULL pointer dereference in should_fail

Status: closed as invalid on 2018/06/27 15:08
Subsystems: mm
[Documentation on labels]
First crash: 2459d, last: 2459d

Sample crash report:
R10: 00000000200001c0 R11: 0000000000000246 R12: 0000000000000004
R13: 000000000000055e R14: 00000000006fc170 R15: 0000000000000005
IPVS: ftp: loaded support on port[0] = 21
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
CPU: 0 PID: 4582 Comm: syz-executor6 Not tainted 4.16.0+ #87
IP: strlen+0x45/0xa0 lib/string.c:482
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
PGD 80000001c658e067 P4D 80000001c658e067 
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x185/0x1d0 lib/dump_stack.c:53
PUD 19c9aa067 
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail+0x87b/0xab0 lib/fault-inject.c:149
PMD 0 
 should_failslab+0x279/0x2a0 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:422 [inline]
 slab_alloc_node mm/slub.c:2663 [inline]
 slab_alloc mm/slub.c:2745 [inline]
 __kmalloc+0xc2/0x350 mm/slub.c:3785
Oops: 0000 [#1] SMP PTI
Dumping ftrace buffer:
   (ftrace buffer empty)
 kmalloc include/linux/slab.h:517 [inline]
 drbg_alloc_state crypto/drbg.c:1181 [inline]
 drbg_instantiate crypto/drbg.c:1481 [inline]
 drbg_kcapi_seed+0xc51/0x2270 crypto/drbg.c:1880
Modules linked in:
CPU: 1 PID: 4575 Comm: syz-executor2 Not tainted 4.16.0+ #87
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 crypto_rng_reset+0x262/0x310 crypto/rng.c:52
RIP: 0010:strlen+0x45/0xa0 lib/string.c:482
 rng_setkey+0x8b/0xa0 crypto/algif_rng.c:167
RSP: 0018:ffff88019c9bf5b8 EFLAGS: 00010246
 alg_setkey crypto/af_alg.c:223 [inline]
 alg_setsockopt+0x6c5/0x740 crypto/af_alg.c:256
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: ffff8801ccc45fd0 RSI: aaaaaaaaaaaab000 RDI: 0000000000000000
RBP: ffff88019c9bf5e8 R08: 0000000000000000 R09: 0000000000000000
 SYSC_setsockopt+0x4b8/0x570 net/socket.c:1849
R10: 0000000000000000 R11: ffff88019c9b0000 R12: ffff8801adf14418
 SyS_setsockopt+0x76/0xa0 net/socket.c:1828
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287
FS:  0000000000dac940(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 entry_SYSCALL_64_after_hwframe+0x3d/0xa2
CR2: 0000000000000000 CR3: 000000019c9a2000 CR4: 00000000001406e0
RIP: 0033:0x455979
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
RSP: 002b:00007f49538c9c68 EFLAGS: 00000246
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 ORIG_RAX: 0000000000000036
Call Trace:
RAX: ffffffffffffffda RBX: 00007f49538ca6d4 RCX: 0000000000455979
 insert_entry fs/proc/proc_sysctl.c:156 [inline]
 insert_header+0x680/0x1fe0 fs/proc/proc_sysctl.c:232
RDX: 0000000000000001 RSI: 0000000000000117 RDI: 0000000000000003
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
 __register_sysctl_table+0x28d0/0x29f0 fs/proc/proc_sysctl.c:1333
R10: 00000000200001c0 R11: 0000000000000246 R12: 0000000000000004
 register_net_sysctl+0x9f/0xb0 net/sysctl_net.c:120
R13: 000000000000055e R14: 00000000006fc170 R15: 0000000000000005
 nf_ct_register_sysctl net/netfilter/nf_conntrack_proto.c:46 [inline]
 nf_ct_l4proto_register_sysctl net/netfilter/nf_conntrack_proto.c:358 [inline]
 nf_ct_l4proto_pernet_register_one+0x423/0x640 net/netfilter/nf_conntrack_proto.c:455
 nf_ct_l4proto_pernet_register+0x135/0x7e0 net/netfilter/nf_conntrack_proto.c:530
 ipv6_net_init+0x5c/0x70 net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c:389
 ops_init+0x60f/0x7b0 net/core/net_namespace.c:118
 setup_net+0x213/0xcf0 net/core/net_namespace.c:302
 copy_net_ns+0x572/0xc40 net/core/net_namespace.c:426
 create_new_namespaces+0x7f5/0xe80 kernel/nsproxy.c:107
 unshare_nsproxy_namespaces+0x23b/0x320 kernel/nsproxy.c:206
 SYSC_unshare+0x88c/0x10f0 kernel/fork.c:2408
 SyS_unshare+0x36/0x50 kernel/fork.c:2358
 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x3d/0xa2
RIP: 0033:0x458427
RSP: 002b:0000000000a3ff78 EFLAGS: 00000202 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007ffec822a0a0 RCX: 0000000000458427
RDX: 0000000000000006 RSI: 0000000000a3fa90 RDI: 0000000040000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000006
R10: 0000000000000064 R11: 0000000000000202 R12: 00000000004117f0
R13: 0000000000411880 R14: 0000000000000000 R15: 0000000000000000
Code: 8b 28 8b 80 88 0c 00 00 89 45 d4 4c 89 f3 eb 16 8b 7d d4 e8 4e 38 eb f7 eb 11 8b 3a e8 45 38 eb f7 eb 22 0f 1f 00 4d 85 ed 75 e5 <44> 0f b6 3b 48 89 df e8 2f 2b eb f7 0f b6 00 84 c0 74 07 f6 d0 
RIP: strlen+0x45/0xa0 lib/string.c:482 RSP: ffff88019c9bf5b8
CR2: 0000000000000000
---[ end trace a39117ae858cf272 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/06 13:02 https://github.com/google/kmsan.git master d2d741e5d189 6c18ddb0 .config console log report syz ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.