Re: net/sctp: use-after-free in sctp_association_put
On Fri, Mar 3, 2017 at 3:21 AM, Dmitry Vyukovwrote: > On Thu, Mar 2, 2017 at 9:06 AM, Xin Long wrote: >> On Thu, Mar 2, 2017 at 3:18 AM, Dmitry Vyukov wrote: >>> Hello, >>> >>> I've got the following report while running syzkaller fuzzer on >>> linux-next/8813198236a044b76e251dcae937b180dd527999: >>> >>> BUG: KASAN: use-after-free in sctp_association_destroy >>> net/sctp/associola.c:416 [inline] at addr 8801c0fa415c >>> BUG: KASAN: use-after-free in sctp_association_put+0x294/0x300 >>> net/sctp/associola.c:881 at addr 8801c0fa415c >>> Read of size 1 by task syz-executor1/10956 >>> CPU: 1 PID: 10956 Comm: syz-executor1 Not tainted 4.10.0-rc7-next-20170213 >>> #1 >>> Hardware name: Google Google Compute Engine/Google Compute Engine, >>> BIOS Google 01/01/2011 >>> Call Trace: >>> >>> __dump_stack lib/dump_stack.c:15 [inline] >>> dump_stack+0x2ee/0x3ef lib/dump_stack.c:51 >>> kasan_object_err+0x1c/0x70 mm/kasan/report.c:162 >>> print_address_description mm/kasan/report.c:200 [inline] >>> kasan_report_error mm/kasan/report.c:289 [inline] >>> kasan_report.part.2+0x1e5/0x4b0 mm/kasan/report.c:311 >>> kasan_report mm/kasan/report.c:329 [inline] >>> __asan_report_load1_noabort+0x29/0x30 mm/kasan/report.c:329 >>> sctp_association_destroy net/sctp/associola.c:416 [inline] >>> sctp_association_put+0x294/0x300 net/sctp/associola.c:881 >>> sctp_generate_timeout_event+0x115/0x360 net/sctp/sm_sideeffect.c:317 >>> sctp_generate_t1_init_event+0x1a/0x20 net/sctp/sm_sideeffect.c:329 >>> call_timer_fn+0x241/0x820 kernel/time/timer.c:1308 >>> expire_timers kernel/time/timer.c:1348 [inline] >>> __run_timers+0x9e7/0xe90 kernel/time/timer.c:1642 >>> run_timer_softirq+0x21/0x80 kernel/time/timer.c:1655 >>> __do_softirq+0x31f/0xbe7 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:658 [inline] >>> smp_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:962 >>> apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:707 >>> RIP: 0010:arch_local_irq_enable arch/x86/include/asm/paravirt.h:788 [inline] >>> RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 >>> [inline] >>> RIP: 0010:_raw_spin_unlock_irq+0x56/0x70 kernel/locking/spinlock.c:199 >>> RSP: 0018:8801c280f178 EFLAGS: 0286 ORIG_RAX: ff10 >>> RAX: dc00 RBX: 8801dbf24a00 RCX: 0006 >>> RDX: 10a18d03 RSI: 8801d71c88e0 RDI: 850c6818 >>> RBP: 8801c280f180 R08: 0002 R09: >>> R10: 0006 R11: R12: 8801c0f3a4c0 >>> R13: 110038501e38 R14: 8801d71c80c0 R15: 8801d71c80c0 >>> >>> finish_lock_switch kernel/sched/sched.h:1248 [inline] >>> finish_task_switch+0x1c2/0x720 kernel/sched/core.c:2792 >>> context_switch kernel/sched/core.c:2928 [inline] >>> __schedule+0x893/0x2290 kernel/sched/core.c:3468 >>> preempt_schedule_common+0x35/0x60 kernel/sched/core.c:3579 >>> _cond_resched+0x17/0x20 kernel/sched/core.c:4977 >>> slab_pre_alloc_hook mm/slab.h:427 [inline] >>> slab_alloc mm/slab.c:3390 [inline] >>> __do_kmalloc mm/slab.c:3730 [inline] >>> __kmalloc_track_caller+0x26a/0x690 mm/slab.c:3747 >>> kstrdup+0x39/0x70 mm/util.c:54 >>> snd_timer_instance_new+0xfc/0x5d0 sound/core/timer.c:110 >>> snd_timer_open+0x878/0x1740 sound/core/timer.c:290 >>> snd_timer_user_tselect sound/core/timer.c:1621 [inline] >>> __snd_timer_user_ioctl sound/core/timer.c:1901 [inline] >>> snd_timer_user_ioctl+0x9b1/0x34a0 sound/core/timer.c:1931 >>> vfs_ioctl fs/ioctl.c:43 [inline] >>> do_vfs_ioctl+0x1bf/0x1790 fs/ioctl.c:683 >>> SYSC_ioctl fs/ioctl.c:698 [inline] >>> SyS_ioctl+0x8f/0xc0 fs/ioctl.c:689 >>> entry_SYSCALL_64_fastpath+0x1f/0xc2 >>> RIP: 0033:0x44fb59 >>> RSP: 002b:7f0dc184db58 EFLAGS: 0212 ORIG_RAX: 0010 >>> RAX: ffda RBX: 40345410 RCX: 0044fb59 >>> RDX: 20001000 RSI: 40345410 RDI: 0005 >>> RBP: 0005 R08: R09: >>> R10: R11: 0212 R12: 00708000 >>> R13: 00a5fc57 R14: 7f0dc184e9c0 R15: >>> Object at 8801c0fa4140, in cache kmalloc-4096 size: 4096 >>> Allocated: >>> PID = 10965 >>> save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 >>> save_stack+0x43/0xd0 mm/kasan/kasan.c:504 >>> set_track mm/kasan/kasan.c:516 [inline] >>> kasan_kmalloc+0xaa/0xd0 mm/kasan/kasan.c:607 >>> kmem_cache_alloc_trace+0x10b/0x670 mm/slab.c:3634 >>> kmalloc include/linux/slab.h:490 [inline] >>> kzalloc include/linux/slab.h:663 [inline] >>> sctp_association_new+0x114/0x2120 net/sctp/associola.c:306 >>> sctp_sendmsg+0x1585/0x38f0 net/sctp/socket.c:1835 >>> inet_sendmsg+0x164/0x5b0 net/ipv4/af_inet.c:761 >>> sock_sendmsg_nosec
Re: net/sctp: use-after-free in sctp_association_put
On Thu, Mar 2, 2017 at 9:06 AM, Xin Longwrote: > On Thu, Mar 2, 2017 at 3:18 AM, Dmitry Vyukov wrote: >> Hello, >> >> I've got the following report while running syzkaller fuzzer on >> linux-next/8813198236a044b76e251dcae937b180dd527999: >> >> BUG: KASAN: use-after-free in sctp_association_destroy >> net/sctp/associola.c:416 [inline] at addr 8801c0fa415c >> BUG: KASAN: use-after-free in sctp_association_put+0x294/0x300 >> net/sctp/associola.c:881 at addr 8801c0fa415c >> Read of size 1 by task syz-executor1/10956 >> CPU: 1 PID: 10956 Comm: syz-executor1 Not tainted 4.10.0-rc7-next-20170213 #1 >> Hardware name: Google Google Compute Engine/Google Compute Engine, >> BIOS Google 01/01/2011 >> Call Trace: >> >> __dump_stack lib/dump_stack.c:15 [inline] >> dump_stack+0x2ee/0x3ef lib/dump_stack.c:51 >> kasan_object_err+0x1c/0x70 mm/kasan/report.c:162 >> print_address_description mm/kasan/report.c:200 [inline] >> kasan_report_error mm/kasan/report.c:289 [inline] >> kasan_report.part.2+0x1e5/0x4b0 mm/kasan/report.c:311 >> kasan_report mm/kasan/report.c:329 [inline] >> __asan_report_load1_noabort+0x29/0x30 mm/kasan/report.c:329 >> sctp_association_destroy net/sctp/associola.c:416 [inline] >> sctp_association_put+0x294/0x300 net/sctp/associola.c:881 >> sctp_generate_timeout_event+0x115/0x360 net/sctp/sm_sideeffect.c:317 >> sctp_generate_t1_init_event+0x1a/0x20 net/sctp/sm_sideeffect.c:329 >> call_timer_fn+0x241/0x820 kernel/time/timer.c:1308 >> expire_timers kernel/time/timer.c:1348 [inline] >> __run_timers+0x9e7/0xe90 kernel/time/timer.c:1642 >> run_timer_softirq+0x21/0x80 kernel/time/timer.c:1655 >> __do_softirq+0x31f/0xbe7 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:658 [inline] >> smp_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:962 >> apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:707 >> RIP: 0010:arch_local_irq_enable arch/x86/include/asm/paravirt.h:788 [inline] >> RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] >> RIP: 0010:_raw_spin_unlock_irq+0x56/0x70 kernel/locking/spinlock.c:199 >> RSP: 0018:8801c280f178 EFLAGS: 0286 ORIG_RAX: ff10 >> RAX: dc00 RBX: 8801dbf24a00 RCX: 0006 >> RDX: 10a18d03 RSI: 8801d71c88e0 RDI: 850c6818 >> RBP: 8801c280f180 R08: 0002 R09: >> R10: 0006 R11: R12: 8801c0f3a4c0 >> R13: 110038501e38 R14: 8801d71c80c0 R15: 8801d71c80c0 >> >> finish_lock_switch kernel/sched/sched.h:1248 [inline] >> finish_task_switch+0x1c2/0x720 kernel/sched/core.c:2792 >> context_switch kernel/sched/core.c:2928 [inline] >> __schedule+0x893/0x2290 kernel/sched/core.c:3468 >> preempt_schedule_common+0x35/0x60 kernel/sched/core.c:3579 >> _cond_resched+0x17/0x20 kernel/sched/core.c:4977 >> slab_pre_alloc_hook mm/slab.h:427 [inline] >> slab_alloc mm/slab.c:3390 [inline] >> __do_kmalloc mm/slab.c:3730 [inline] >> __kmalloc_track_caller+0x26a/0x690 mm/slab.c:3747 >> kstrdup+0x39/0x70 mm/util.c:54 >> snd_timer_instance_new+0xfc/0x5d0 sound/core/timer.c:110 >> snd_timer_open+0x878/0x1740 sound/core/timer.c:290 >> snd_timer_user_tselect sound/core/timer.c:1621 [inline] >> __snd_timer_user_ioctl sound/core/timer.c:1901 [inline] >> snd_timer_user_ioctl+0x9b1/0x34a0 sound/core/timer.c:1931 >> vfs_ioctl fs/ioctl.c:43 [inline] >> do_vfs_ioctl+0x1bf/0x1790 fs/ioctl.c:683 >> SYSC_ioctl fs/ioctl.c:698 [inline] >> SyS_ioctl+0x8f/0xc0 fs/ioctl.c:689 >> entry_SYSCALL_64_fastpath+0x1f/0xc2 >> RIP: 0033:0x44fb59 >> RSP: 002b:7f0dc184db58 EFLAGS: 0212 ORIG_RAX: 0010 >> RAX: ffda RBX: 40345410 RCX: 0044fb59 >> RDX: 20001000 RSI: 40345410 RDI: 0005 >> RBP: 0005 R08: R09: >> R10: R11: 0212 R12: 00708000 >> R13: 00a5fc57 R14: 7f0dc184e9c0 R15: >> Object at 8801c0fa4140, in cache kmalloc-4096 size: 4096 >> Allocated: >> PID = 10965 >> save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 >> save_stack+0x43/0xd0 mm/kasan/kasan.c:504 >> set_track mm/kasan/kasan.c:516 [inline] >> kasan_kmalloc+0xaa/0xd0 mm/kasan/kasan.c:607 >> kmem_cache_alloc_trace+0x10b/0x670 mm/slab.c:3634 >> kmalloc include/linux/slab.h:490 [inline] >> kzalloc include/linux/slab.h:663 [inline] >> sctp_association_new+0x114/0x2120 net/sctp/associola.c:306 >> sctp_sendmsg+0x1585/0x38f0 net/sctp/socket.c:1835 >> inet_sendmsg+0x164/0x5b0 net/ipv4/af_inet.c:761 >> sock_sendmsg_nosec net/socket.c:633 [inline] >> sock_sendmsg+0xca/0x110 net/socket.c:643 >> ___sys_sendmsg+0x8fa/0x9f0 net/socket.c:1985 >> __sys_sendmsg+0x138/0x300 net/socket.c:2019 >> SYSC_sendmsg
Re: net/sctp: use-after-free in sctp_association_put
On Thu, Mar 2, 2017 at 3:18 AM, Dmitry Vyukovwrote: > Hello, > > I've got the following report while running syzkaller fuzzer on > linux-next/8813198236a044b76e251dcae937b180dd527999: > > BUG: KASAN: use-after-free in sctp_association_destroy > net/sctp/associola.c:416 [inline] at addr 8801c0fa415c > BUG: KASAN: use-after-free in sctp_association_put+0x294/0x300 > net/sctp/associola.c:881 at addr 8801c0fa415c > Read of size 1 by task syz-executor1/10956 > CPU: 1 PID: 10956 Comm: syz-executor1 Not tainted 4.10.0-rc7-next-20170213 #1 > Hardware name: Google Google Compute Engine/Google Compute Engine, > BIOS Google 01/01/2011 > Call Trace: > > __dump_stack lib/dump_stack.c:15 [inline] > dump_stack+0x2ee/0x3ef lib/dump_stack.c:51 > kasan_object_err+0x1c/0x70 mm/kasan/report.c:162 > print_address_description mm/kasan/report.c:200 [inline] > kasan_report_error mm/kasan/report.c:289 [inline] > kasan_report.part.2+0x1e5/0x4b0 mm/kasan/report.c:311 > kasan_report mm/kasan/report.c:329 [inline] > __asan_report_load1_noabort+0x29/0x30 mm/kasan/report.c:329 > sctp_association_destroy net/sctp/associola.c:416 [inline] > sctp_association_put+0x294/0x300 net/sctp/associola.c:881 > sctp_generate_timeout_event+0x115/0x360 net/sctp/sm_sideeffect.c:317 > sctp_generate_t1_init_event+0x1a/0x20 net/sctp/sm_sideeffect.c:329 > call_timer_fn+0x241/0x820 kernel/time/timer.c:1308 > expire_timers kernel/time/timer.c:1348 [inline] > __run_timers+0x9e7/0xe90 kernel/time/timer.c:1642 > run_timer_softirq+0x21/0x80 kernel/time/timer.c:1655 > __do_softirq+0x31f/0xbe7 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:658 [inline] > smp_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:962 > apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:707 > RIP: 0010:arch_local_irq_enable arch/x86/include/asm/paravirt.h:788 [inline] > RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] > RIP: 0010:_raw_spin_unlock_irq+0x56/0x70 kernel/locking/spinlock.c:199 > RSP: 0018:8801c280f178 EFLAGS: 0286 ORIG_RAX: ff10 > RAX: dc00 RBX: 8801dbf24a00 RCX: 0006 > RDX: 10a18d03 RSI: 8801d71c88e0 RDI: 850c6818 > RBP: 8801c280f180 R08: 0002 R09: > R10: 0006 R11: R12: 8801c0f3a4c0 > R13: 110038501e38 R14: 8801d71c80c0 R15: 8801d71c80c0 > > finish_lock_switch kernel/sched/sched.h:1248 [inline] > finish_task_switch+0x1c2/0x720 kernel/sched/core.c:2792 > context_switch kernel/sched/core.c:2928 [inline] > __schedule+0x893/0x2290 kernel/sched/core.c:3468 > preempt_schedule_common+0x35/0x60 kernel/sched/core.c:3579 > _cond_resched+0x17/0x20 kernel/sched/core.c:4977 > slab_pre_alloc_hook mm/slab.h:427 [inline] > slab_alloc mm/slab.c:3390 [inline] > __do_kmalloc mm/slab.c:3730 [inline] > __kmalloc_track_caller+0x26a/0x690 mm/slab.c:3747 > kstrdup+0x39/0x70 mm/util.c:54 > snd_timer_instance_new+0xfc/0x5d0 sound/core/timer.c:110 > snd_timer_open+0x878/0x1740 sound/core/timer.c:290 > snd_timer_user_tselect sound/core/timer.c:1621 [inline] > __snd_timer_user_ioctl sound/core/timer.c:1901 [inline] > snd_timer_user_ioctl+0x9b1/0x34a0 sound/core/timer.c:1931 > vfs_ioctl fs/ioctl.c:43 [inline] > do_vfs_ioctl+0x1bf/0x1790 fs/ioctl.c:683 > SYSC_ioctl fs/ioctl.c:698 [inline] > SyS_ioctl+0x8f/0xc0 fs/ioctl.c:689 > entry_SYSCALL_64_fastpath+0x1f/0xc2 > RIP: 0033:0x44fb59 > RSP: 002b:7f0dc184db58 EFLAGS: 0212 ORIG_RAX: 0010 > RAX: ffda RBX: 40345410 RCX: 0044fb59 > RDX: 20001000 RSI: 40345410 RDI: 0005 > RBP: 0005 R08: R09: > R10: R11: 0212 R12: 00708000 > R13: 00a5fc57 R14: 7f0dc184e9c0 R15: > Object at 8801c0fa4140, in cache kmalloc-4096 size: 4096 > Allocated: > PID = 10965 > save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 > save_stack+0x43/0xd0 mm/kasan/kasan.c:504 > set_track mm/kasan/kasan.c:516 [inline] > kasan_kmalloc+0xaa/0xd0 mm/kasan/kasan.c:607 > kmem_cache_alloc_trace+0x10b/0x670 mm/slab.c:3634 > kmalloc include/linux/slab.h:490 [inline] > kzalloc include/linux/slab.h:663 [inline] > sctp_association_new+0x114/0x2120 net/sctp/associola.c:306 > sctp_sendmsg+0x1585/0x38f0 net/sctp/socket.c:1835 > inet_sendmsg+0x164/0x5b0 net/ipv4/af_inet.c:761 > sock_sendmsg_nosec net/socket.c:633 [inline] > sock_sendmsg+0xca/0x110 net/socket.c:643 > ___sys_sendmsg+0x8fa/0x9f0 net/socket.c:1985 > __sys_sendmsg+0x138/0x300 net/socket.c:2019 > SYSC_sendmsg net/socket.c:2030 [inline] > SyS_sendmsg+0x2d/0x50 net/socket.c:2026 > entry_SYSCALL_64_fastpath+0x1f/0xc2 > Freed: > PID = 10965 > save_stack_trace+0x16/0x20
net/sctp: use-after-free in sctp_association_put
Hello, I've got the following report while running syzkaller fuzzer on linux-next/8813198236a044b76e251dcae937b180dd527999: BUG: KASAN: use-after-free in sctp_association_destroy net/sctp/associola.c:416 [inline] at addr 8801c0fa415c BUG: KASAN: use-after-free in sctp_association_put+0x294/0x300 net/sctp/associola.c:881 at addr 8801c0fa415c Read of size 1 by task syz-executor1/10956 CPU: 1 PID: 10956 Comm: syz-executor1 Not tainted 4.10.0-rc7-next-20170213 #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:15 [inline] dump_stack+0x2ee/0x3ef lib/dump_stack.c:51 kasan_object_err+0x1c/0x70 mm/kasan/report.c:162 print_address_description mm/kasan/report.c:200 [inline] kasan_report_error mm/kasan/report.c:289 [inline] kasan_report.part.2+0x1e5/0x4b0 mm/kasan/report.c:311 kasan_report mm/kasan/report.c:329 [inline] __asan_report_load1_noabort+0x29/0x30 mm/kasan/report.c:329 sctp_association_destroy net/sctp/associola.c:416 [inline] sctp_association_put+0x294/0x300 net/sctp/associola.c:881 sctp_generate_timeout_event+0x115/0x360 net/sctp/sm_sideeffect.c:317 sctp_generate_t1_init_event+0x1a/0x20 net/sctp/sm_sideeffect.c:329 call_timer_fn+0x241/0x820 kernel/time/timer.c:1308 expire_timers kernel/time/timer.c:1348 [inline] __run_timers+0x9e7/0xe90 kernel/time/timer.c:1642 run_timer_softirq+0x21/0x80 kernel/time/timer.c:1655 __do_softirq+0x31f/0xbe7 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:658 [inline] smp_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:962 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:707 RIP: 0010:arch_local_irq_enable arch/x86/include/asm/paravirt.h:788 [inline] RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] RIP: 0010:_raw_spin_unlock_irq+0x56/0x70 kernel/locking/spinlock.c:199 RSP: 0018:8801c280f178 EFLAGS: 0286 ORIG_RAX: ff10 RAX: dc00 RBX: 8801dbf24a00 RCX: 0006 RDX: 10a18d03 RSI: 8801d71c88e0 RDI: 850c6818 RBP: 8801c280f180 R08: 0002 R09: R10: 0006 R11: R12: 8801c0f3a4c0 R13: 110038501e38 R14: 8801d71c80c0 R15: 8801d71c80c0 finish_lock_switch kernel/sched/sched.h:1248 [inline] finish_task_switch+0x1c2/0x720 kernel/sched/core.c:2792 context_switch kernel/sched/core.c:2928 [inline] __schedule+0x893/0x2290 kernel/sched/core.c:3468 preempt_schedule_common+0x35/0x60 kernel/sched/core.c:3579 _cond_resched+0x17/0x20 kernel/sched/core.c:4977 slab_pre_alloc_hook mm/slab.h:427 [inline] slab_alloc mm/slab.c:3390 [inline] __do_kmalloc mm/slab.c:3730 [inline] __kmalloc_track_caller+0x26a/0x690 mm/slab.c:3747 kstrdup+0x39/0x70 mm/util.c:54 snd_timer_instance_new+0xfc/0x5d0 sound/core/timer.c:110 snd_timer_open+0x878/0x1740 sound/core/timer.c:290 snd_timer_user_tselect sound/core/timer.c:1621 [inline] __snd_timer_user_ioctl sound/core/timer.c:1901 [inline] snd_timer_user_ioctl+0x9b1/0x34a0 sound/core/timer.c:1931 vfs_ioctl fs/ioctl.c:43 [inline] do_vfs_ioctl+0x1bf/0x1790 fs/ioctl.c:683 SYSC_ioctl fs/ioctl.c:698 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:689 entry_SYSCALL_64_fastpath+0x1f/0xc2 RIP: 0033:0x44fb59 RSP: 002b:7f0dc184db58 EFLAGS: 0212 ORIG_RAX: 0010 RAX: ffda RBX: 40345410 RCX: 0044fb59 RDX: 20001000 RSI: 40345410 RDI: 0005 RBP: 0005 R08: R09: R10: R11: 0212 R12: 00708000 R13: 00a5fc57 R14: 7f0dc184e9c0 R15: Object at 8801c0fa4140, in cache kmalloc-4096 size: 4096 Allocated: PID = 10965 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:504 set_track mm/kasan/kasan.c:516 [inline] kasan_kmalloc+0xaa/0xd0 mm/kasan/kasan.c:607 kmem_cache_alloc_trace+0x10b/0x670 mm/slab.c:3634 kmalloc include/linux/slab.h:490 [inline] kzalloc include/linux/slab.h:663 [inline] sctp_association_new+0x114/0x2120 net/sctp/associola.c:306 sctp_sendmsg+0x1585/0x38f0 net/sctp/socket.c:1835 inet_sendmsg+0x164/0x5b0 net/ipv4/af_inet.c:761 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xca/0x110 net/socket.c:643 ___sys_sendmsg+0x8fa/0x9f0 net/socket.c:1985 __sys_sendmsg+0x138/0x300 net/socket.c:2019 SYSC_sendmsg net/socket.c:2030 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2026 entry_SYSCALL_64_fastpath+0x1f/0xc2 Freed: PID = 10965 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:504 set_track mm/kasan/kasan.c:516 [inline] kasan_slab_free+0x6f/0xb0 mm/kasan/kasan.c:580 __cache_free mm/slab.c:3510 [inline] kfree+0xd3/0x250 mm/slab.c:3827 sctp_association_destroy