From: David Miller <davem@davemloft.net>
To: lebon.zhou@gmail.com
Cc: kuba@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix memory overwriting issue when copy an address to user space
Date: Fri, 17 Jul 2020 18:43:06 -0700 (PDT) [thread overview]
Message-ID: <20200717.184306.746700973177455464.davem@davemloft.net> (raw)
In-Reply-To: <CAEQHRfB2f4x2r9Sk1+ixAFjUTcFQArv9wtWfjq3igGfUgZBhXw@mail.gmail.com>
From: lebon zhou <lebon.zhou@gmail.com>
Date: Fri, 17 Jul 2020 10:31:54 +0000
> When application provided buffer size less than sockaddr_storage, then
> kernel will overwrite some memory area which may cause memory corruption,
> e.g.: in recvmsg case, let msg_name=malloc(8) and msg_namelen=8, then
> usually application can call recvmsg successful but actually application
> memory get corrupted.
>
> Fix to return EINVAL when application buffer size less than
> sockaddr_storage.
>
> Signed-off-by: lebon.zhou <lebon.zhou@gmail.com>
Please post networking fixes to netdev@vger.kernel.org
Thank you.
next prev parent reply other threads:[~2020-07-18 1:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 10:31 lebon zhou
2020-07-17 17:50 ` Jakub Kicinski
2020-07-18 1:43 ` David Miller [this message]
2020-07-20 4:34 lebon zhou
2020-07-20 15:12 ` David Laight
2020-07-21 4:23 ` lebon zhou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200717.184306.746700973177455464.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=lebon.zhou@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®