On Fri, May 19, 2017 at 12:18 PM, [off-list ref] wrote:
Hi,
I've got the following bug report while fuzzing the
kernel(master-f83246089ca) with syzkaller.
program and config are attached.
Hi!
Thanks for the report!
Adding kernel maintainers.
I can confirm that we've hist this bug multiple times, but never been
able to reproduce it.
I was able to reproduce it on 2ea659a9ef488125eb46da6eb571de5eae5c43f6
(4.12-rc1).
Using the attached syzkaller program I was able to generate C
reproducer, attached. Sometimes I need to run it a few times to
trigger the bug.
@idaifish If you find more bugs please run ./scripts/get_maintainer.pl
to get the list of subsystem maintainers and add them to the
recipients. I've updated instructions of how to report kernel bugs
found with syzkaller in README.
Thanks!
From: Eric Dumazet <edumazet@google.com> Date: 2017-05-19 14:36:34
On Fri, May 19, 2017 at 5:57 AM, Andrey Konovalov [off-list ref] wrote:
On Fri, May 19, 2017 at 12:18 PM, [off-list ref] wrote:
quoted
Hi,
I've got the following bug report while fuzzing the
kernel(master-f83246089ca) with syzkaller.
program and config are attached.
Hi!
Thanks for the report!
Adding kernel maintainers.
I can confirm that we've hist this bug multiple times, but never been
able to reproduce it.
I was able to reproduce it on 2ea659a9ef488125eb46da6eb571de5eae5c43f6
(4.12-rc1).
Using the attached syzkaller program I was able to generate C
reproducer, attached. Sometimes I need to run it a few times to
trigger the bug.
@idaifish If you find more bugs please run ./scripts/get_maintainer.pl
to get the list of subsystem maintainers and add them to the
recipients. I've updated instructions of how to report kernel bugs
found with syzkaller in README.
Thanks!
On Fri, May 19, 2017 at 4:36 PM, 'Eric Dumazet' via syzkaller
[off-list ref] wrote:
On Fri, May 19, 2017 at 5:57 AM, Andrey Konovalov [off-list ref] wrote:
quoted
On Fri, May 19, 2017 at 12:18 PM, [off-list ref] wrote:
quoted
Hi,
I've got the following bug report while fuzzing the
kernel(master-f83246089ca) with syzkaller.
program and config are attached.
Hi!
Thanks for the report!
Adding kernel maintainers.
I can confirm that we've hist this bug multiple times, but never been
able to reproduce it.
I was able to reproduce it on 2ea659a9ef488125eb46da6eb571de5eae5c43f6
(4.12-rc1).
Using the attached syzkaller program I was able to generate C
reproducer, attached. Sometimes I need to run it a few times to
trigger the bug.
@idaifish If you find more bugs please run ./scripts/get_maintainer.pl
to get the list of subsystem maintainers and add them to the
recipients. I've updated instructions of how to report kernel bugs
found with syzkaller in README.
Thanks!
Hi Eric,
Your patch fixes the bug for me.
Thanks!
Tested-by: Andrey Konovalov <redacted>
--
You received this message because you are subscribed to the Google Groups "syzkaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
From: Eric Dumazet <hidden> Date: 2017-05-19 21:17:50
From: Eric Dumazet <edumazet@google.com>
Andrey Konovalov and idaifish@gmail.com reported crashes caused by
one skb shared_info being overwritten from __ip6_append_data()
Andrey program lead to following state :
copy -4200 datalen 2000 fraglen 2040
maxfraglen 2040 alloclen 2048 transhdrlen 0 offset 0 fraggap 6200
The skb_copy_and_csum_bits(skb_prev, maxfraglen, data + transhdrlen,
fraggap, 0); is overwriting skb->head and skb_shared_info
Since we apparently detect this rare condition too late, move the
code earlier to even avoid allocating skb and risking crashes.
Once again, many thanks to Andrey and syzkaller team.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Andrey Konovalov <redacted>
Tested-by: Andrey Konovalov <redacted>
Reported-by: <redacted>
---
net/ipv6/ip6_output.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2017-05-22 15:49:41
From: Eric Dumazet <redacted>
Date: Fri, 19 May 2017 14:17:48 -0700
From: Eric Dumazet <edumazet@google.com>
Andrey Konovalov and idaifish@gmail.com reported crashes caused by
one skb shared_info being overwritten from __ip6_append_data()
Andrey program lead to following state :
copy -4200 datalen 2000 fraglen 2040
maxfraglen 2040 alloclen 2048 transhdrlen 0 offset 0 fraggap 6200
The skb_copy_and_csum_bits(skb_prev, maxfraglen, data + transhdrlen,
fraggap, 0); is overwriting skb->head and skb_shared_info
Since we apparently detect this rare condition too late, move the
code earlier to even avoid allocating skb and risking crashes.
Once again, many thanks to Andrey and syzkaller team.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Andrey Konovalov <redacted>
Tested-by: Andrey Konovalov <redacted>
Reported-by: <redacted>
Looks good, applied and queued up for -stable.
Thanks Eric.