Bug #3077
closedFTP patches in revision 39802d4e cause kernel panics on FTP traffic
0%
Description
As discussed on a forum thread http://forum.pfsense.org/index.php/topic,64144.0.html the patches introduced in commit 39802d4e64f1fab7afa5bd14064712cb52679b59 causes Fatal trap 12: page fault while in kernel mode with FTP traffic. Please, revert the commit ASAP, this is a whole lot worse than the issue it was supposed to mitigate.
Sample crash below:
Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x70 fault code = supervisor read, page not present instruction pointer = 0x20:0xc04c96c1 stack pointer = 0x28:0xe31e6c20 frame pointer = 0x28:0xe31e6c2c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 7 (pfpurge) trap number = 12 panic: page fault cpuid = 0 Uptime: 1d1h13m36s Cannot dump. Device not defined or unavailable. Automatic reboot in 15 seconds - press a key on the console to abort
These are not limited to any particular HW, I reproduced with any of snapshots post July-1 which include this patch, and with 3 different boxes, two being x64, one Alix 2D13. Different FTP traffic patterns may cause this, though for me, simple using FTP to browse a site which has huge directory listing (such as ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.1-release/Latest) crashes the pfSense box almost reliably. :-( FTP works perfectly fine with snapshots before this commit.
Updated by Chris Buechler over 11 years ago
- Category set to Operating System
- Assignee set to Ermal Luçi
- Target version set to 2.1
- Affected Version set to 2.1
Updated by Ermal Luçi over 11 years ago
- Status changed from New to Feedback
- Priority changed from Urgent to High
Please do not use redmine as a bug tracking.
There is already a ticket open for ftp helper.
I pushed some patches to fix the panic you get.
Updated by Doktor Notor over 11 years ago
Please do not use redmine as a bug tracking.
Call me confused. Isn't bug tracking the whole purpose of issue tracker?
Regardless, no more kernel panics with the above patches.
As for the FTP helper, I'm afraid that what previously worked perfectly fine for me (see http://forum.pfsense.org/index.php/topic,62237.msg347042.html#msg347042) works slow like hell with these patches in passive mode and active mode is just a no go.
Before:
PWD 257 "/others/eko/BrainSlayer-V24-preSP2/2013/05-27-2013-r21676" Get directory TYPE A 200 Switching to ASCII mode. PORT 10,0,0,1,222,174 200 PORT command successful. Consider using PASV. LIST 150 Here comes the directory listing. Download Waiting for server... 226 Directory send OK.
After:
Connect ok! PWD 257 "/others/eko/BrainSlayer-V24-preSP2/2013/05-27-2013-r21676" Get directory TYPE A 200 Switching to ASCII mode. PORT 10,0,0,1,210,178 200 PORT command successful. Consider using PASV. LIST PORT failed, try PASV mode! PASV
And connection freezes. I'd seriously prefer the thing to be reverted altogether.
Updated by Doktor Notor over 11 years ago
Well guys, I got another panic when messing with FTP downloads from ftp://ftp-archive.freebsd.org/. (No serial console connected, so no output, sorry). These post July 1 patches are serious evil. :-(
Updated by Chris Buechler over 11 years ago
- Status changed from Feedback to Resolved