slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x2c8/0x760 mm/slab.c:3727 kasan: CONFIG_KASAN_INLINE enabled kmalloc include/linux/slab.h:517 [inline] sock_kmalloc+0x14e/0x1d0 net/core/sock.c:1996 ip_mc_source+0xf71/0x12b0 net/ipv4/igmp.c:2348 kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN Dumping ftrace buffer: do_ip_setsockopt.isra.13+0x32a6/0x3e50 net/ipv4/ip_sockglue.c:1074 (ftrace buffer empty) Modules linked in: CPU: 1 PID: 11596 Comm: syz-executor0 Not tainted 4.17.0-rc4+ #50 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:smc_tx_prepared_sends net/smc/smc_tx.h:27 [inline] RIP: 0010:smc_ioctl+0x6db/0x9f0 net/smc/af_smc.c:1506 RSP: 0018:ffff8801b1977770 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000004 RSI: 1ffff1003632ef0d RDI: 0000000000000020 RBP: ffff8801b19779d0 R08: ffffed003632ef0e R09: ffffed003632ef0d R10: ffffed003632ef0d R11: ffff8801b197786f R12: 1ffff1003632eef1 R13: 00000000200006c0 R14: ffff8801b1977868 R15: ffff8801b1977828 FS: 00007fc1c3dae700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200005c0 CR3: 00000001a8d5c000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 ip_setsockopt+0x47/0xf0 net/ipv4/ip_sockglue.c:1246 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 udp_setsockopt+0x62/0xa0 net/ipv4/udp.c:2487 Call Trace: sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:3046 __sys_setsockopt+0x1bd/0x390 net/socket.c:1903 __do_sys_setsockopt net/socket.c:1914 [inline] __se_sys_setsockopt net/socket.c:1911 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1911 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 sock_do_ioctl+0xe4/0x3e0 net/socket.c:957 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455a09 sock_ioctl+0x30d/0x680 net/socket.c:1081 RSP: 002b:00007f21c6307c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f21c63086d4 RCX: 0000000000455a09 RDX: 000000000000002e RSI: 0000000000000000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000108 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000000000015 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x1cf/0x16a0 fs/ioctl.c:684 R13: 0000000000000622 R14: 00000000006fd3d0 R15: 0000000000000000 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701 __do_sys_ioctl fs/ioctl.c:708 [inline] __se_sys_ioctl fs/ioctl.c:706 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455a09 RSP: 002b:00007fc1c3dadc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 RAX: ffffffffffffffda RBX: 00007fc1c3dae6d4 RCX: 0000000000455a09 RDX: 00000000200006c0 RSI: 000000000000894b RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000044c R14: 00000000006fa7c0 R15: 0000000000000000 Code: f8 48 CPU: 0 PID: 11608 Comm: syz-executor4 Not tainted 4.17.0-rc4+ #50 c1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 e8 Call Trace: 03 __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 80 3c 10 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149 00 0f 85 ed 01 00 00 48 8b 9b 90 04 00 00 48 b8 00 00 00 00 00 fc ff df __should_failslab+0x124/0x180 mm/failslab.c:32 48 should_failslab+0x9/0x14 mm/slab_common.c:1522 8d slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] kmem_cache_alloc_trace+0x4b/0x780 mm/slab.c:3618 7b 20 48 kmalloc include/linux/slab.h:512 [inline] kzalloc include/linux/slab.h:701 [inline] ip_mc_add1_src net/ipv4/igmp.c:1944 [inline] ip_mc_add_src+0xda8/0x1210 net/ipv4/igmp.c:2068 89 fa 48 c1 ea 03 ip_mc_source+0xb98/0x12b0 net/ipv4/igmp.c:2380 <0f> b6 04 02 84 do_ip_setsockopt.isra.13+0x32a6/0x3e50 net/ipv4/ip_sockglue.c:1074 c0 74 08 3c 03 0f 8e b7 01 00 00 8b 43 20 49 8d RIP: smc_tx_prepared_sends net/smc/smc_tx.h:27 [inline] RSP: ffff8801b1977770 RIP: smc_ioctl+0x6db/0x9f0 net/smc/af_smc.c:1506 RSP: ffff8801b1977770 ---[ end trace a17bf1cd3623c7fc ]---