[Bug 197535] [re] [panic] if_re (Realtek 8168) causes memory write after free and kernel panic

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 4 15:14:02 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197535

--- Comment #11 from luca.pizzamiglio at gmail.com ---
Created attachment 153780
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153780&action=edit
patch solving the issue using this hardware

Explanation and solution

The actual problem was that the rx ring (and probably the txring too) wasn't
updated by the driver or, better, the device wasn't able to get these updates.
That explains why the last entry in the ring was ignored and why only few
packets were really copied via DMA.

I found this log entry in the linux git:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d6e572911a4cb2b9fcd1c26a38d5317a3971f2fd

It seems that for "some" chips, Rx and Tx should be enabled in the RL_COMMAND
register later, after rings configuration and so on.

The patch shows only how I used this tip, but I don't know how it could affect
other devices.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list