From: "Michael S. Tsirkin" <mst@redhat.com> Date: 2014-01-15 08:26:28
As a result of backporting a bugfix, virtio_net started passing void *
to page_address, assuming that it will get silently converted to struct
page *. But this does not happen on architectures where page_address is
a macro, the result is build failure as the macro tries to dereference
void*.
Fix by reordering code slightly, so we always pass
struct page * to page_address.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
David, Greg asked that this be put in stable ASAP to avoid
next release being broken.
I still didn't Cc stable directly as I know you prefer to do this
yourself.
Sorry about creating this mess, could you help fast-path it there please?
Thanks!
drivers/net/virtio_net.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
On Wed, Jan 15, 2014 at 9:26 AM, Michael S. Tsirkin [off-list ref] wrote:
As a result of backporting a bugfix, virtio_net started passing void *
to page_address, assuming that it will get silently converted to struct
page *. But this does not happen on architectures where page_address is
a macro, the result is build failure as the macro tries to dereference
void*.
Fix by reordering code slightly, so we always pass
struct page * to page_address.
Thanks for the clue! I was just investigating a similar failure in -next.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
From: "Michael S. Tsirkin" <mst@redhat.com> Date: 2014-01-15 08:46:28
On Wed, Jan 15, 2014 at 09:36:13AM +0100, Geert Uytterhoeven wrote:
On Wed, Jan 15, 2014 at 9:26 AM, Michael S. Tsirkin [off-list ref] wrote:
quoted
As a result of backporting a bugfix, virtio_net started passing void *
to page_address, assuming that it will get silently converted to struct
page *. But this does not happen on architectures where page_address is
a macro, the result is build failure as the macro tries to dereference
void*.
Fix by reordering code slightly, so we always pass
struct page * to page_address.
Thanks for the clue! I was just investigating a similar failure in -next.
Gr{oetje,eeting}s,
Geert
You don't mean linux-next? And not in virtio-net? I don't see page_address
being used on void * anywhere there.
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
On Wed, Jan 15, 2014 at 9:46 AM, Michael S. Tsirkin [off-list ref] wrote:
On Wed, Jan 15, 2014 at 09:36:13AM +0100, Geert Uytterhoeven wrote:
quoted
On Wed, Jan 15, 2014 at 9:26 AM, Michael S. Tsirkin [off-list ref] wrote:
quoted
As a result of backporting a bugfix, virtio_net started passing void *
to page_address, assuming that it will get silently converted to struct
page *. But this does not happen on architectures where page_address is
a macro, the result is build failure as the macro tries to dereference
void*.
Fix by reordering code slightly, so we always pass
struct page * to page_address.
Thanks for the clue! I was just investigating a similar failure in -next.
Gr{oetje,eeting}s,
Geert
You don't mean linux-next? And not in virtio-net? I don't see page_address
being used on void * anywhere there.
http://kisskb.ellerman.id.au/kisskb/buildresult/10469287/
I'm making {,set}page_address() static inline to fix this.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
From: "Michael S. Tsirkin" <mst@redhat.com> Date: 2014-01-15 09:15:56
On Wed, Jan 15, 2014 at 10:01:49AM +0100, Geert Uytterhoeven wrote:
On Wed, Jan 15, 2014 at 9:46 AM, Michael S. Tsirkin [off-list ref] wrote:
quoted
On Wed, Jan 15, 2014 at 09:36:13AM +0100, Geert Uytterhoeven wrote:
quoted
On Wed, Jan 15, 2014 at 9:26 AM, Michael S. Tsirkin [off-list ref] wrote:
quoted
As a result of backporting a bugfix, virtio_net started passing void *
to page_address, assuming that it will get silently converted to struct
page *. But this does not happen on architectures where page_address is
a macro, the result is build failure as the macro tries to dereference
void*.
Fix by reordering code slightly, so we always pass
struct page * to page_address.
Thanks for the clue! I was just investigating a similar failure in -next.
Gr{oetje,eeting}s,
Geert
You don't mean linux-next? And not in virtio-net? I don't see page_address
being used on void * anywhere there.
I'm making {,set}page_address() static inline to fix this.
Yes, I don't see why it has to be a macro.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds