diff for duplicates of <20190603214223.GJ3713@localhost.localdomain> diff --git a/a/1.txt b/N1/1.txt index 269bee5..be159b1 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -102,7 +102,8 @@ Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> > * advertised window). > @@ -2607,7 +2598,9 @@ static int sctp_process_param(struct sctp_association *asoc, > case SCTP_PARAM_STATE_COOKIE: -> asoc->peer.cookie_len > ntohs(param.p->length) - sizeof(struct sctp_paramhdr); +> asoc->peer.cookie_len = +> ntohs(param.p->length) - sizeof(struct sctp_paramhdr); > - asoc->peer.cookie = param.cookie->body; > + asoc->peer.cookie = kmemdup(param.cookie->body, asoc->peer.cookie_len, gfp); > + if (!asoc->peer.cookie) diff --git a/a/content_digest b/N1/content_digest index 1abb3fa..276f7a8 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\020190603203259.21508-1-nhorman@tuxdriver.com\0" "From\0Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>\0" "Subject\0Re: [PATCH V2] Fix memory leak in sctp_process_init\0" - "Date\0Mon, 03 Jun 2019 21:42:23 +0000\0" + "Date\0Mon, 3 Jun 2019 18:42:23 -0300\0" "To\0Neil Horman <nhorman@tuxdriver.com>\0" "Cc\0linux-sctp@vger.kernel.org" syzbot+f7e9153b037eac9b1df8@syzkaller.appspotmail.com @@ -114,7 +114,8 @@ "> \t * advertised window).\n" "> @@ -2607,7 +2598,9 @@ static int sctp_process_param(struct sctp_association *asoc,\n" "> \tcase SCTP_PARAM_STATE_COOKIE:\n" - "> \t\tasoc->peer.cookie_len > \t\t\tntohs(param.p->length) - sizeof(struct sctp_paramhdr);\n" + "> \t\tasoc->peer.cookie_len =\n" + "> \t\t\tntohs(param.p->length) - sizeof(struct sctp_paramhdr);\n" "> -\t\tasoc->peer.cookie = param.cookie->body;\n" "> +\t\tasoc->peer.cookie = kmemdup(param.cookie->body, asoc->peer.cookie_len, gfp);\n" "> +\t\tif (!asoc->peer.cookie)\n" @@ -142,4 +143,4 @@ "> 2.20.1\n" > -f4ce9411219f09d0103ed8a7ad726f2a8984dee347401f491141933733e31283 +f56b4ce302f573ae2985a4bb59a7840fae644d54020cb02046537709bfccfb82
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.