LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-06-2016, 03:43 AM   #1
tfonz
LQ Newbie
 
Registered: May 2011
Location: Berlin, Germany
Posts: 14

Rep: Reputation: 15
inetd daytime crash


64-bit inetd crashes (segfault) when connecting to the daytime service.

Recompiling with attached patch fixes it. I didn't find any upstream, so I post the patch here.

If <time.h> is not included, the type of ctime(3) defaults to int which is 32 bits. But on 64-bit, ctime returns a 64 bits pointer. When cast to int, the upper 32 bits are overwritten with the sign of the lower 32 bits, and inetd segfaults in sprintf (inetd.c, line 2103).
Attached Files
File Type: txt inetd.diff.txt (717 Bytes, 52 views)
 
Old 01-07-2016, 12:35 PM   #2
MarcT
Member
 
Registered: Jan 2009
Location: UK
Distribution: Slackware 14.2
Posts: 125

Rep: Reputation: 51
Good catch, though what do you use daytime for?
I guess most users have it disabled in inetd.conf.
 
Old 01-08-2016, 03:00 AM   #3
tfonz
LQ Newbie
 
Registered: May 2011
Location: Berlin, Germany
Posts: 14

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MarcT View Post
Good catch, though what do you use daytime for?
Nothing important. It's sometimes useful when testing software I develop.

But since the bug crashes inetd, it can (if enabled) affect other services started via inetd.
 
1 members found this post helpful.
Old 01-11-2016, 12:12 AM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Queued for volkerdi; thanks!
 
Old 01-12-2016, 12:58 PM   #5
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware
Posts: 490

Rep: Reputation: Disabled
Thank you tfonz, that one had me stumped as well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
daytime service in fc8 Huzafa Linux - Newbie 8 06-05-2008 06:44 PM
daytime's string Suse10 is wrong fernandofrancis SUSE / openSUSE 0 04-26-2007 02:10 PM
How do I determine which servers in Slack 11 are monitored by inetd / inetd.conf Old_Fogie Slackware 2 11-25-2006 01:06 PM
chrooting or jailing inetd or inetd started daemons ? MasterC Linux - Security 2 07-15-2003 05:28 PM
chargen,daytime,echo hydro Linux - Newbie 4 02-24-2003 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration