sctp: [Deprecated]: syz-executor4 (pid 20767) Use of int in maxseg socket option. Use struct sctp_assoc_value instead ------------[ cut here ]------------ kernel BUG at net/ipv4/tcp_output.c:2817! invalid opcode: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 20800 Comm: syz-executor0 Not tainted 4.13.0-rc7+ #38 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801cd4501c0 task.stack: ffff8801c68d8000 RIP: 0010:__tcp_retransmit_skb+0x1d18/0x1fa0 net/ipv4/tcp_output.c:2817 RSP: 0018:ffff8801db307408 EFLAGS: 00010206 RAX: ffff8801cd4501c0 RBX: 0000000000000001 RCX: 000000004f7b987b RDX: 0000000000000100 RSI: ffff8801c6e5ca80 RDI: ffff8801c6e5caac RBP: ffff8801db3075c8 R08: ffff88021fff905c R09: ffff88021fff9048 R10: 0000000000000000 R11: ffff88021fff905d R12: ffff8801c6e5cb06 R13: 000000004f7b9c0b R14: ffff8801c6e5ca80 R15: ffff8801a9e7b500 FS: 00007f2f5c5d6700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020deb000 CR3: 00000001cb34b000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tcp_retransmit_skb+0x2e/0x230 net/ipv4/tcp_output.c:2891 tcp_retransmit_timer+0xcee/0x2a10 net/ipv4/tcp_timer.c:476 tcp_write_timer_handler+0x335/0x810 net/ipv4/tcp_timer.c:561 tcp_write_timer+0x146/0x160 net/ipv4/tcp_timer.c:579 call_timer_fn+0x233/0x830 kernel/time/timer.c:1281 expire_timers kernel/time/timer.c:1320 [inline] __run_timers+0x7fd/0xb90 kernel/time/timer.c:1620 run_timer_softirq+0x4c/0xb0 kernel/time/timer.c:1646 __do_softirq+0x2f5/0xba3 kernel/softirq.c:284 invoke_softirq kernel/softirq.c:364 [inline] irq_exit+0x1cc/0x200 kernel/softirq.c:405 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:1044 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:702 RIP: 0010:__kernel_text_address+0x78/0xe0 kernel/extable.c:126 RSP: 0018:ffff8801c68df848 EFLAGS: 00000207 ORIG_RAX: ffffffffffffff10 RAX: 0000000000000000 RBX: ffff8801c68df878 RCX: 1ffff10039a8a146 RDX: 1ffffffff0b59371 RSI: 0000000000000001 RDI: 0000000000000286 RBP: ffff8801c68df848 R08: 0000000000000001 R09: 1ffff10038d1bee6 R10: ffff8801c68df6f8 R11: 0000000000000000 R12: ffff8801c68df8c8 R13: 0000000000000000 R14: ffff8801cd4501c0 R15: ffff8801dac00640 unwind_get_return_address+0x61/0xa0 arch/x86/kernel/unwind_frame.c:74 __save_stack_trace+0x7e/0xd0 arch/x86/kernel/stacktrace.c:45 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:551 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:489 slab_post_alloc_hook mm/slab.h:440 [inline] slab_alloc mm/slab.c:3397 [inline] kmem_cache_alloc_trace+0x118/0x740 mm/slab.c:3625 kmalloc include/linux/slab.h:493 [inline] sock_alloc_inode+0xb4/0x300 net/socket.c:253 alloc_inode+0x65/0x180 fs/inode.c:208 new_inode_pseudo+0x69/0x190 fs/inode.c:889 sock_alloc+0x41/0x270 net/socket.c:565 __sock_create+0x148/0x850 net/socket.c:1226 sock_create net/socket.c:1302 [inline] SYSC_socket net/socket.c:1332 [inline] SyS_socket+0xeb/0x200 net/socket.c:1312 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x451e59 RSP: 002b:00007f2f5c5d5c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00000000007180b0 RCX: 0000000000451e59 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000027 RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b9b7e R13: 00000000ffffffff R14: ffffffffffffffff R15: 0000000000008933 Code: ff e8 7d ef 94 fd e9 4b fb ff ff 48 8b bd a0 fe ff ff e8 cc ef 94 fd e9 fc f8 ff ff e8 c2 ef 94 fd e9 53 f6 ff ff e8 28 fe 60 fd <0f> 0b e8 b1 ef 94 fd e9 9e e5 ff ff 4c 89 e7 e8 44 ef 94 fd e9 RIP: __tcp_retransmit_skb+0x1d18/0x1fa0 net/ipv4/tcp_output.c:2817 RSP: ffff8801db307408 ---[ end trace 90ab12a064fa7e78 ]---