[Bug 252163] r368739/a095390344fb1795c1b118a2f84da8f6a7f254ab causes a panic stating 'Fatal trap 12: page fault while in kernel mode'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 29 23:42:54 UTC 2020


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

--- Comment #3 from John Baldwin <jhb at FreeBSD.org> ---
Comment on attachment 220951
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=220951
text file with backtrace details gathered by kgdb

This is a bug in rsu(4).  It loads firmware into memory and then _overwrites_
the firmware before copying it into the card.  If you had two rsu(4) devices
they could trash each other's firmware while uploading it into the adapter. 
The driver needs to make a copy of the firmware data and modify the copy, not
modify the read-only data in place.  The commit in question exposed this driver
bug because it places the firmware data in .rodata and the kernel maps those
pages as read-only.

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


More information about the freebsd-bugs mailing list