-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generic_rx_handler panic with netmap+realtek driver #1481
Comments
|
I don't think we can easily distinct between them, the problem is that if we do this we could end up adding way more magic then we like to add (we're not going to try to learn our system all different drivers that exist in the state their in). |
|
Did you check that we have this issue in OPNsense? Netmap emulation broken on FreeBSD 11.0, not in OPNsense 17.1. Official Realtek driver instead of FreeBSD driver since 17.1.2. No issues with Suricata in IPS mode, definitely no netmap crashes. |
Makes sense (:+1:)
That's how I discovered that the issue had not been solved upstream.
Those driver are not patched with netmap support, but Suricata is forcing netmap mode nonetheless which creates the kernel panics. Tested on Zotac ci323 with 8168 NIC |
|
Well, the emulation mode has been run successfully on vmxnet3 on 17.1, 16.7 used emulation mode for the e1000 driver. There is not much wrong with emulation mode per se. We'll need the actual kernel panic to start with. |
Indeed, it works fine when using software which tries to use it. Suricata is not trying to use it. Instead it forces hardware mode because it doesn't recognise that the driver does not have a hardware mode.
It's the same as the one found here: |
|
I need the 17.1.2 panic, the 16.1.x panic is not ging to help at all. The realtek driver is also newer than the one used there because it came out in Feburary 2017. Several users on the forum use Zotac, maybe we need to poll for people using theirs as IPS. Software cannot force netmap hardware mode. It's on or off. |
Unfortunately,
Using the tools provided by netmap work fine in software mode. No crash. It's just Suricata which does the wrong thing.
Good idea! |
|
@inliniac what are your thoughts on this? |
|
I have a newer test kernel for these latest netmap changes if you are interested. the bug wasn't fixed before June 2016 so it's not in FreeBSD 11.0. I would really appreciate for others to do this research first before reporting an issue to present compiled evidence, not just force others into assuming the worst. Thanks, |
|
I'm definitely interested in testing the fix, yes.
|
|
I need to rebuild this and will upload as 17.1.3-netmap, but must wait till tomorrow |
|
OK, many thanks @fichtner |
|
@oparoz The netmap code is from the official git repository, I think around early January 2017: Cheers, |
|
No dice.
|
|
Alright, but I really really need the backtrace to open a bug report. |
|
I have this: |
|
No progress here and no good reason to start debugging netmap code now when upstream won't take it anyway. ;( |
|
OK, thanks for the update @fichtner. |

Suricata crashes hard when using the emulated netmap mode, so admins should not be allowed to turn DPI on when using such drivers, unless they are offered a choice between FreeBSD and Realtek drivers.
See: https://redmine.openinfosecfoundation.org/issues/1688
The text was updated successfully, but these errors were encountered: