Zhengchao Shao
9ed7bfc795
sctp: fix memory leak in sctp_stream_outq_migrate()
...
When sctp_stream_outq_migrate() is called to release stream out resources,
the memory pointed to by prio_head in stream out is not released.
The memory leak information is as follows:
unreferenced object 0xffff88801fe79f80 (size 64):
comm "sctp_repo", pid 7957, jiffies 4294951704 (age 36.480s)
hex dump (first 32 bytes):
80 9f e7 1f 80 88 ff ff 80 9f e7 1f 80 88 ff ff ................
90 9f e7 1f 80 88 ff ff 90 9f e7 1f 80 88 ff ff ................
backtrace:
[<ffffffff81b215c6>] kmalloc_trace+0x26/0x60
[<ffffffff88ae517c>] sctp_sched_prio_set+0x4cc/0x770
[<ffffffff88ad64f2>] sctp_stream_init_ext+0xd2/0x1b0
[<ffffffff88aa2604>] sctp_sendmsg_to_asoc+0x1614/0x1a30
[<ffffffff88ab7ff1>] sctp_sendmsg+0xda1/0x1ef0
[<ffffffff87f765ed>] inet_sendmsg+0x9d/0xe0
[<ffffffff8754b5b3>] sock_sendmsg+0xd3/0x120
[<ffffffff8755446a>] __sys_sendto+0x23a/0x340
[<ffffffff87554651>] __x64_sys_sendto+0xe1/0x1b0
[<ffffffff89978b49>] do_syscall_64+0x39/0xb0
[<ffffffff89a0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd
Link: https://syzkaller.appspot.com/bug?exrid=29c402e56c4760763cc0
Fixes: 637784ade221 ("sctp: introduce priority based stream scheduler")
Reported-by: syzbot+29c402e56c4760763cc0@syzkaller.appspotmail.com
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Link: https://lore.kernel.org/r/20221126031720.378562-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-29 08:30:50 -08:00
..
2022-11-28 11:09:13 +00:00
2022-10-11 17:42:55 -06:00
2022-08-25 10:33:21 +02:00
2022-10-15 11:08:36 +01:00
2022-08-22 17:55:50 -07:00
2022-09-22 13:02:10 -07:00
2022-11-02 16:37:00 -07:00
2022-11-04 16:22:34 +01:00
2022-11-15 13:38:11 +01:00
2022-11-14 10:51:13 +00:00
2022-11-07 14:00:27 +01:00
2022-10-16 15:27:07 -07:00
2022-11-23 19:18:59 -08:00
2022-11-22 20:15:37 -08:00
2022-11-15 20:50:52 -08:00
2022-08-25 10:33:21 +02:00
2022-10-24 19:08:07 -07:00
2022-11-28 18:09:00 -08:00
2022-10-07 09:29:17 +02:00
2022-11-28 16:56:04 -08:00
2022-11-23 19:18:59 -08:00
2022-11-15 12:42:26 +01:00
2022-11-22 07:14:55 +01:00
2022-11-23 12:45:19 +00:00
2022-11-25 12:45:53 +01:00
2022-10-24 11:07:39 +02:00
2022-11-09 19:26:08 -08:00
2022-08-29 13:02:27 +01:00
2022-11-28 18:03:07 -08:00
2022-08-29 12:47:15 +01:00
2022-11-22 22:17:12 +01:00
2022-08-29 12:47:15 +01:00
2022-10-27 08:20:21 -07:00
2022-11-22 12:42:23 +01:00
2022-11-18 15:21:00 +01:00
2022-11-29 08:30:18 -08:00
2022-08-29 12:47:15 +01:00
2022-08-15 11:21:42 +01:00
2022-10-11 17:42:58 -06:00
2022-11-02 11:57:30 +00:00
2022-11-18 12:05:44 +00:00
2022-11-22 12:16:55 +01:00
2022-11-29 08:30:50 -08:00
2022-11-02 20:42:09 -07:00
2022-10-27 15:52:10 -04:00
2022-11-28 18:07:31 -08:00
2022-11-11 20:08:17 -08:00
2022-10-28 20:21:25 -07:00
2022-11-03 10:49:29 +01:00
2022-11-25 12:43:14 +01:00
2022-11-15 20:22:19 -08:00
2022-10-03 17:44:18 -07:00
2022-11-23 19:18:59 -08:00
2022-09-20 08:23:20 -07:00
2022-08-22 14:26:30 +01:00
2022-09-20 14:23:56 -07:00
2022-08-22 14:26:30 +01:00
2022-10-06 16:55:41 -07:00