From: David Howells <dhowells@redhat.com>
To: syzbot <syzbot+1e0edc4b8b7494c28450@syzkaller.appspotmail.com>,
ebiggers@kernel.org
Cc: dhowells@redhat.com, davem@davemloft.net,
linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: kernel BUG at net/rxrpc/local_object.c:LINE!
Date: Tue, 02 Jul 2019 14:37:24 +0100 [thread overview]
Message-ID: <24282.1562074644@warthog.procyon.org.uk> (raw)
In-Reply-To: <0000000000004c2416058c594b30@google.com>
syzbot <syzbot+1e0edc4b8b7494c28450@syzkaller.appspotmail.com> wrote:
I *think* the reproducer boils down to the attached, but I can't get syzkaller
to work and the attached sample does not cause the oops to occur. Can you try
it in your environment?
> The bug was bisected to:
>
> commit 46894a13599a977ac35411b536fb3e0b2feefa95
> Author: David Howells <dhowells@redhat.com>
> Date: Thu Oct 4 08:32:28 2018 +0000
>
> rxrpc: Use IPv4 addresses throught the IPv6
This might not be the correct bisection point. If you look at the attached
sample, you're mixing AF_INET and AF_INET6. If you try AF_INET throughout,
that might get a different point. On the other hand, since you've bound the
socket, the AF_INET6 passed to socket() should be ignored.
David
---
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <linux/rxrpc.h>
static const unsigned char inet4_addr[4] = {
0xe0, 0x00, 0x00, 0x01
};
int main(void)
{
struct sockaddr_rxrpc srx;
int fd;
memset(&srx, 0, sizeof(srx));
srx.srx_family = AF_RXRPC;
srx.srx_service = 0;
srx.transport_type = AF_INET;
srx.transport_len = sizeof(srx.transport.sin);
srx.transport.sin.sin_family = AF_INET;
srx.transport.sin.sin_port = htons(0x4e21);
memcpy(&srx.transport.sin.sin_addr, inet4_addr, 4);
fd = socket(AF_RXRPC, SOCK_DGRAM, AF_INET6);
if (fd == -1) {
perror("socket");
exit(1);
}
if (bind(fd, (struct sockaddr *)&srx, sizeof(srx)) == -1) {
perror("bind");
exit(1);
}
sleep(20);
// Whilst sleeping, hit with:
// echo -e '\0\0\0\0\0\0\0\0' | ncat -4u --send-only 224.0.0.1 20001
return 0;
}
next prev parent reply other threads:[~2019-07-02 13:37 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-28 2:47 kernel BUG at net/rxrpc/local_object.c:LINE! syzbot
2019-07-02 13:37 ` David Howells [this message]
2019-07-05 12:12 ` Dmitry Vyukov
2019-07-05 12:15 ` Dmitry Vyukov
2019-07-06 10:03 ` syzbot
2019-07-31 14:30 ` David Howells
2019-07-31 14:46 ` Dmitry Vyukov
2019-07-31 15:19 ` David Howells
2019-07-31 15:31 ` Dmitry Vyukov
2019-08-13 14:23 ` David Howells
2019-08-13 14:28 ` Dmitry Vyukov
2019-08-13 15:06 ` David Howells
2019-08-13 15:12 ` Dmitry Vyukov
2019-08-13 15:29 ` David Howells
2019-08-18 18:47 ` syzbot
[not found] <20190819071101.5796-1-hdanton@sina.com>
2019-08-19 8:23 ` David Howells
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=24282.1562074644@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=davem@davemloft.net \
--cc=ebiggers@kernel.org \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=syzbot+1e0edc4b8b7494c28450@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/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;
as well as URLs for NNTP newsgroup(s).