[Openswan dev] openswan-1.0.3 and procfs bug
Bulba
bulba at intelcom.pl
Thu Apr 22 16:26:21 CEST 2004
Hi,
don't have enough time now to create patch, but just to let you
know:
There seems to be a problem with ipsec_snprintf() in ipsec_proc.c.
While reading /proc/net/ipsec_eroute pluto complains about:
INTERNAL ERROR: /proc/net/ipsec_eroute line 38 has wrong number of fields
It's all about NUL byte always at position 3071, in the middle of
ipsec_eroute line.
ipsec_snprintf seems to NUL-terminate string at (size-1) if string
will be longer than provided buffer.
quickfix: use size+1 ? (kernel _gets_whole_page() but tells that length
is PAGE_SIZE-1024 bytes to printer routine)
My system info is:
openswan-1.0.3 and kernel 2.4.22 so on the other hand it may be
a kernel issue.
Bulba
More information about the Dev
mailing list