[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200728.130111.2163106097158516623.davem@davemloft.net>
Date: Tue, 28 Jul 2020 13:01:11 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: hch@....de
Cc: jengelh@...i.de, idosch@...sch.org, Jason@...c4.com,
David.Laight@...LAB.COM, netdev@...r.kernel.org
Subject: Re: [PATCH 4/4] net: improve the user pointer check in
init_user_sockptr
From: Christoph Hellwig <hch@....de>
Date: Tue, 28 Jul 2020 08:36:43 +0200
> if (get_user(len, optlen))
> return -EFAULT;
^^^^^^^^^^^^^^^^^^^^^^^^^^
> - err = init_user_sockptr(&optval, user_optval);
> + err = init_user_sockptr(&optval, user_optval, *optlen);
^^^^^^^^
Hmmm?
Powered by blists - more mailing lists