Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337279 - app-admin/sysklogd uses strcpy with overlapping regions
Summary: app-admin/sysklogd uses strcpy with overlapping regions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 14:10 UTC by Yuri Karaban
Modified: 2011-07-08 20:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix from debian bug thread (syslogd.c.patch,404 bytes, patch)
2010-09-14 14:12 UTC, Yuri Karaban
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Karaban 2010-09-14 14:10:51 UTC
sysklogd use strcpy with overlapping region when handling line continuation (backslash at the end of the line).

The problem exposed only with SSE3 enabled glibc.

More details on debian bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586156
Comment 1 Yuri Karaban 2010-09-14 14:12:03 UTC
Created attachment 247264 [details, diff]
fix from debian bug thread
Comment 2 Alec Meyers 2010-09-21 23:43:30 UTC
This fixed the problem of syslogd mangling up the config file and spewing nonsense for me.
Comment 3 SpanKY gentoo-dev 2010-11-20 17:39:11 UTC
should be fixed in sysklogd-1.5-r1
Comment 4 Łukasz Stelmach 2011-06-05 21:51:14 UTC
When is 1.5 going to be stable? The buggy 1.4.2_pre* is still the only stable version. If 1.5 is not ready for the prime-time yet then please apply the patch and bump -rX on 1.4.2.
Comment 5 Oleg Mikheev 2011-07-07 20:41:03 UTC
I've just stumbled upon this one.
My syslog.conf has

*.=debug;\
        auth,authpriv.none;\
        news.none;mail.none     -/var/log/debug

and it results in

cfline(*.=debug;auth,authpriv.none;newsil.ne;mail.none     -/var/log/debug)
symbolic name: debug ==> 7
symbolic name: none ==> 16
symbolic name: auth ==> 32
symbolic name: authpriv ==> 80
symbolic name: neCalled logerr, msg: unknown priority name "ne"
logmsg: syslog.err<43>, flags 4, from localhost, msg syslogd: unknown priority name "ne"

I'm using 1.4.2_pre20061230-r2 which is marked as stable.

Is this stable version supposed to behave like that?
Comment 6 Alec Meyers 2011-07-08 03:12:02 UTC
(In reply to comment #5)
> I'm using 1.4.2_pre20061230-r2 which is marked as stable.
> 
> Is this stable version supposed to behave like that?

You should unkeyword sysklogd-1.5-r1, and see if it works fine with stable. If it does, open a stabilization request bug.

(or, switch to something that's actively maintained - even Debian switched to rsyslog)
Comment 7 SpanKY gentoo-dev 2011-07-08 20:59:17 UTC
rsyslog is already in the tree.  we dont force loggers.