Bug 75221

Summary: CONFIG_PROC_SYSCTL is required for networking
Product: Networking Reporter: Stefan de Konink (stefan)
Component: OtherAssignee: Stephen Hemminger (stephen)
Status: NEW ---    
Severity: normal CC: romieu, szg00000
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.14.2 Subsystem:
Regression: No Bisected commit-id:
Attachments: Move local port range init

Description Stefan de Konink 2014-05-01 10:17:24 UTC
I am in the proces of building an embedded kernel which I wanted to limit in both functionality and memory. For this reason I disabled CONFIG_PROC_SYSCTL. I have figured out the hard way that this functionality implements the successful randomisation of source ports, it might be responsible for the initialisation of net.ipv4.ip_local_port_range.

Effectively, booting a kernel with ip=dhcp works. Ping-pong (ICMP) to and from an address works. DNS queries (UDP/53) don't because the source port remains 0, a connection to a typical webserver also seems to result in a no reply situation.
Comment 1 Francois Romieu 2014-05-01 20:25:24 UTC
Created attachment 134641 [details]
Move local port range init
Comment 2 Francois Romieu 2014-05-04 21:26:00 UTC
Stephan, does it work for you ?

-- 
Ueimor
Comment 3 Stefan de Konink 2014-05-04 21:40:32 UTC
Tested-by: Stefan de Konink <stefan@konink.de>

I have just tested the patch. Without /proc/sys present, networking works now. Thanks!