sctp: [Deprecated]: syz-executor399 (pid 6816) Use of struct sctp_assoc_value in delayed_ack socket option.
Use struct sctp_sack_info instead
==================================================================
BUG: KASAN: slab-out-of-bounds in sctp_setsockopt_delayed_ack net/sctp/socket.c:2771 [inline]
BUG: KASAN: slab-out-of-bounds in sctp_setsockopt net/sctp/socket.c:4499 [inline]
BUG: KASAN: slab-out-of-bounds in sctp_setsockopt+0x9488/0x95e0 net/sctp/socket.c:4431
Write of size 4 at addr ffff8880a617c088 by task syz-executor399/6816
CPU: 0 PID: 6816 Comm: syz-executor399 Not tainted 5.8.0-rc6-next-20200724-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x18f/0x20d lib/dump_stack.c:118
 print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:383
 __kasan_report mm/kasan/report.c:513 [inline]
 kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530
 sctp_setsockopt_delayed_ack net/sctp/socket.c:2771 [inline]
 sctp_setsockopt net/sctp/socket.c:4499 [inline]
 sctp_setsockopt+0x9488/0x95e0 net/sctp/socket.c:4431
 __sys_setsockopt+0x337/0x6a0 net/socket.c:2137
 __do_sys_setsockopt net/socket.c:2153 [inline]
 __se_sys_setsockopt net/socket.c:2150 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2150
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x440229
Code: Bad RIP value.
RSP: 002b:00007ffe1cbbb9b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440229
RDX: 0000000000000010 RSI: 0000000000000084 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000008 R09: 00000000004002c8
R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000401a30
R13: 0000000000401ac0 R14: 0000000000000000 R15: 0000000000000000
Allocated by task 6816:
 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48
 kasan_set_track mm/kasan/common.c:56 [inline]
 __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:461
 __do_kmalloc mm/slab.c:3655 [inline]
 __kmalloc_track_caller+0x1a6/0x310 mm/slab.c:3670
 memdup_user+0x22/0xd0 mm/util.c:172
 sctp_setsockopt net/sctp/socket.c:4452 [inline]
 sctp_setsockopt+0x17a/0x95e0 net/sctp/socket.c:4431
 __sys_setsockopt+0x337/0x6a0 net/socket.c:2137
 __do_sys_setsockopt net/socket.c:2153 [inline]
 __se_sys_setsockopt net/socket.c:2150 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2150
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
The buggy address belongs to the object at ffff8880a617c080
 which belongs to the cache kmalloc-32 of size 32
The buggy address is located 8 bytes inside of
 32-byte region [ffff8880a617c080, ffff8880a617c0a0)
The buggy address belongs to the page:
page:000000002e2e6ecb refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880a617cfc1 pfn:0xa617c
flags: 0xfffe0000000200(slab)
raw: 00fffe0000000200 ffffea0002985948 ffffea000292d5c8 ffff8880aa000100
raw: ffff8880a617cfc1 ffff8880a617c000 000000010000003f 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
 ffff8880a617bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8880a617c000: 00 05 fc fc fc fc fc fc fb fb fb fb fc fc fc fc
>ffff8880a617c080: 00 fc fc fc fc fc fc fc 00 05 fc fc fc fc fc fc
                      ^
 ffff8880a617c100: fb fb fb fb fc fc fc fc 00 fc fc fc fc fc fc fc
 ffff8880a617c180: 00 fc fc fc fc fc fc fc 00 02 fc fc fc fc fc fc
==================================================================