Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1580415
| From | Dmitry Vyukov <dvyukov@google.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: net/xfrm: stack out-of-bounds in xfrm_flowi_sport |
| Date | 2017-02-14 10:20 +0100 |
| Message-ID | <taHrb-8k8-3@gated-at.bofh.it> (permalink) |
| References | <taq71-4Xt-39@gated-at.bofh.it> <taFpn-6Y8-5@gated-at.bofh.it> <taGYa-7UK-11@gated-at.bofh.it> <taHhw-8gC-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Feb 14, 2017 at 10:08 AM, Steffen Klassert <steffen.klassert@secunet.com> wrote: > On Tue, Feb 14, 2017 at 09:41:35AM +0100, Dmitry Vyukov wrote: >> On Tue, Feb 14, 2017 at 8:08 AM, Steffen Klassert >> <steffen.klassert@secunet.com> wrote: >> > On Mon, Feb 13, 2017 at 03:46:56PM +0100, Dmitry Vyukov wrote: >> >> >> >> On commit 7089db84e356562f8ba737c29e472cc42d530dbc. >> >> >> >> >> >> struct flowi4 fl4_stack allocated on stack in udp_sendmsg is being >> >> casted to larger struct flowi and then accessed. >> > >> > Looks like the problem is when using IPv4-mapped IPv6 addresses. >> > >> > Does the patch below help? >> >> >> Steffen, can you please run the reproducer I provided? >> I specifically spent time to supply you with a simple, reliable >> reproducer. I am not even saying about adding a test case for the bug. >> Kernel development practices seem to encourage developers to not >> bother with tests. But at least testing a patch that you are sending >> looks like a reasonable thing to do. > > I tested this with my socket policy testcases of course. > I dont have a IPv4-mapped IPv6 addresses testcase and > changing userspace in my test setup means to rebuild > the system iso image. > > Asking for a test is not so uncommon. You have the > testcase, why not running it again? Because there are too many kernel subsystems and bugs. I need more than 24h per day to reports and retest them. I've run the repro with you patch and don't see the bug any more: Tested-by: Dmitry Vyukov <dvyukov@google.com>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
net/xfrm: stack out-of-bounds in xfrm_flowi_sport Dmitry Vyukov <dvyukov@google.com> - 2017-02-13 15:50 +0100
Re: net/xfrm: stack out-of-bounds in xfrm_flowi_sport Steffen Klassert <steffen.klassert@secunet.com> - 2017-02-14 08:10 +0100
Re: net/xfrm: stack out-of-bounds in xfrm_flowi_sport Dmitry Vyukov <dvyukov@google.com> - 2017-02-14 09:50 +0100
Re: net/xfrm: stack out-of-bounds in xfrm_flowi_sport Steffen Klassert <steffen.klassert@secunet.com> - 2017-02-14 10:10 +0100
Re: net/xfrm: stack out-of-bounds in xfrm_flowi_sport Dmitry Vyukov <dvyukov@google.com> - 2017-02-14 10:20 +0100
Re: net/xfrm: stack out-of-bounds in xfrm_flowi_sport Steffen Klassert <steffen.klassert@secunet.com> - 2017-02-15 07:30 +0100
Re: net/xfrm: stack out-of-bounds in xfrm_flowi_sport Steffen Klassert <steffen.klassert@secunet.com> - 2017-02-28 14:50 +0100
Re: net/xfrm: stack out-of-bounds in xfrm_flowi_sport Dmitry Vyukov <dvyukov@google.com> - 2017-02-28 15:00 +0100
csiph-web