[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140905.172426.1277528296784403545.davem@davemloft.net>
Date: Fri, 05 Sep 2014 17:24:26 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: nhorman@...driver.com
Cc: netdev@...r.kernel.org, klassert@...hematik.tu-chemnitz.de
Subject: Re: [PATCH v3] 3c59x: avoid panic in boomerang_start_xmit when
finding page address:
From: Neil Horman <nhorman@...driver.com>
Date: Thu, 4 Sep 2014 06:13:38 -0400
> This bug was reported on a very old kernel (RHEL6, 2.6.32-491.el6):
...
> But the problem seems to still exist upstream. It seems on 32 bit kernels
> page_address() can reutrn a NULL value in some circumstances, and the
> pci_map_single api isn't prepared to handle that (on this system it results in a
> bogus pointer deference in nommu_map_page.
>
> The fix is pretty easy, if we convert the 3c59x driver to use the more
> convieient skb_frag_dma_map api we don't need to find the virtual address of the
> page at all, and page gets mapped to the hardware properly. Verified to fix the
> problem as described by the reporter.
>
> Applies to the net tree
>
> Change Notes:
>
> v2) Converted PCI_DMA_TODEVICE to DMA_TO_DEVICE. Thanks Dave!
>
> v3) Actually Run git commit after making changes to v2 :)
>
> Signed-off-by: Neil Horman <nhorman@...driver.com>
Applied, thanks Neil.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists