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: 2988 Comm: syz-fuzzer Not tainted 4.13.0+ #43 sctp: [Deprecated]: syz-executor0 (pid 10233) Use of int in maxseg socket option. Use struct sctp_assoc_value instead Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801cf3cc000 task.stack: ffff8801ce9f0000 RIP: 0010:__tcp_retransmit_skb+0x1d18/0x1fa0 net/ipv4/tcp_output.c:2817 RSP: 0000:ffff8801db3072a8 EFLAGS: 00010206 RAX: ffff8801cf3cc000 RBX: 0000000000000001 RCX: 000000002221cf16 RDX: 0000000000000100 RSI: ffff8801c5b252c0 RDI: ffff8801c5b252ec RBP: ffff8801db307468 R08: ffff88021fff905c R09: ffff88021fff9048 R10: 0000000000000000 R11: ffff88021fff905d R12: ffff8801c5b25346 R13: 000000002221d2a6 R14: ffff8801c5b252c0 R15: ffff8801c791a300 FS: 00007f4ce15b1700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005598452861d8 CR3: 00000001ce088000 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+0x246/0x850 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+0x2bb/0xbd0 kernel/softirq.c:284 invoke_softirq kernel/softirq.c:364 [inline] irq_exit+0x1d3/0x210 kernel/softirq.c:405 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x177/0x710 arch/x86/kernel/apic/apic.c:1048 apic_timer_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:770 RIP: 0033:0x72cc15 RSP: 002b:000000c42a4c9630 EFLAGS: 00000297 ORIG_RAX: ffffffffffffff10 RAX: 000000c42aae41b0 RBX: 000000c42aae3350 RCX: 000000c42aae3320 RDX: 0000000000a75c20 RSI: 000000000072cc10 RDI: 000000c42aae41b0 RBP: 000000c42a4c9698 R08: 000000c42aadc8c0 R09: 000000c42aae41f0 R10: 0000000000727e60 R11: 00000000ffffffff R12: 000000c42a3ff323 R13: 0000000000000001 R14: 0000000000000033 R15: 0000000000000003 Code: ff e8 7d a5 93 fd e9 4b fb ff ff 48 8b bd a0 fe ff ff e8 cc a5 93 fd e9 fc f8 ff ff e8 c2 a5 93 fd e9 53 f6 ff ff e8 98 f3 5e fd <0f> 0b e8 b1 a5 93 fd e9 9e e5 ff ff 4c 89 e7 e8 44 a5 93 fd e9 RIP: __tcp_retransmit_skb+0x1d18/0x1fa0 net/ipv4/tcp_output.c:2817 RSP: ffff8801db3072a8 ---[ end trace 66b9d8b7568a6f05 ]---