irclog2html for #uclibc on 20060516

00:52.53*** join/#uclibc tchan (n=tchan@lunar-linux/developer/tchan)
01:11.03daliaswow i just read the glibc version of strlen from uclibc's glibc-string-funcs dir
01:11.08daliasits an abomination
02:38.31CIA-403landley * r15088 10busybox/ (coreutils/md5_sha1_sum.c include/libbb.h libbb/md5.c): (log message trimmed)
02:38.31CIA-4Make md5 calculation always go through an the buffer so that A) we don't
02:38.31CIA-4handle packets out of sequence if some data goes through the buffer and
02:47.31dalias:)
02:52.01daliasashes, about what you were saying the other day... 15% difference seems really odd
02:52.15daliasif that happened it's probably a stupid bug/oversight in the tool chain building or something
02:53.07ashesi could be wrong, but i dont think so
02:54.19ashes20% was my result
02:54.47asheson 06/12/04
02:55.00ashesa year and a half ago
02:55.15ashesand that's with nls disabled
02:55.24ashesand enabled in glibc
02:55.51ashesthe performance may very well be better now
02:56.15ashesthat was probably 0.9.27
02:56.37ashesand glibc 2.3.4
02:58.12ashesyou can find yourself the bfbtester program, and run it on the same program.. one linked to uclibc and the other linked to glibc. bfbtester will run the program a few thousand times
02:58.20ashesand compare the times
02:58.37ashesrun it three times for each library and compare the average
02:59.09asheslink bfbtester to uclibc too
02:59.28ashesso shared memory is used.. to make the test a bit more fair
03:01.23ashesthe 20% difference i got was the time it took to compile binutils where the entire system was linked to either uclibc or glibc with the same cflags (-O2 in uclibc, not -Os)
03:03.00daliasyay
03:03.10daliasi just tested and my towupper/towlower impl seems complete
03:03.39dalias<PROTECTED>
03:04.51ashesim out of touch with latest developments. im trying to make time to get gcc-4.1 working with uclibc, with ssp, pie, fortify_source, and maybe libmudflap
03:05.40asheslast year when i tested libmudflap i found a 0% performance penalty, but im told this is impossible
03:05.49dalias?
03:05.57daliasoh
03:06.09daliasyeah its impossible to avoid performance drop from pie and fortify
03:06.27asheslibmudflap is a bounds checking library. it should have some performance penalty
03:06.39ashespie should have little or no penalty
03:07.04ashesif -fpie is used with ld -pie, there should be no noticable penalty
03:07.15ashesrather than using -fpic with ld -pie
03:07.54ashesi haven't read about fortify_source yet, but i think its just added compile-time checks
03:08.03daliaspie should have signifciant penalty
03:08.11daliasyou lose a register and you corrupt the return stack
03:08.30ashesi never actually checked
03:09.00daliaspersonally i hate all that stuff
03:09.21daliasadding complexity to check for and block attacks is not the way to make a system secure
03:09.34asheseven if you don't personally use it, it helps the community have better source code
03:09.38daliasa system is made secure by making it so simple that any mistakes will be obvious to an auditor
03:10.00ashesit makes coding more strict
03:10.17daliasah fortify might be, i dunno what it does
03:11.53ashesthe real-world usefullness of ssp, and pie is not very well proven
03:12.28ashesim not aware of any exploit that ssp has saved anyone from.. since ssp was introduced
03:12.46daliasthere are almost no stack smashing attacks anymore
03:12.50ashesbut ssp has forced many software coders to code better
03:13.01daliasmodern vulns are heap corruption based
03:13.11daliasespecially integer overflow leading to heap corruption
03:13.25daliasmplayer was just hit by tons of them :(
03:16.07asheslibmudflap should be the best way to do runtime checking
03:17.56ashesthere is a bounds checking option in glibc, but no offical gcc release supports it
03:18.46daliasheh
03:18.51ashesthere's a branch in gcc's cvs, but it never made it into a release. gcc-2.97 or something like that
03:18.59daliasuhg :p
03:20.15ashesi wish uclibc would add blowfish
03:21.01daliasyou mean for passwords?
03:21.07daliaswhy?
03:21.32daliascommon lore has it that blowfish is fast but weaker
03:22.19ashesblowfish is slower than md5 or sha1
03:22.54daliaspersonally i think a trivial crypt() that just performs strcpy would be fine
03:23.05daliasif someone can access the crypted passwords you're screwed anyway
03:23.13daliasthey can always be cracked
03:23.25daliasthats why they're in a file thats only readable by root
03:23.33ashesblowfish didn't have a weakness as far as i know. md5 and sha1 do
03:23.57ashesa mathmatical weakness
03:24.13daliasi dont know any legit weakness against md5 or sha1
03:24.18daliasmd4 has a significant weakness
03:24.33daliasbut even the md4 weakness does not apply to passwords
03:25.40ashesi read not long ago that a mathmatical weakness was found in sha1, by the university of china
03:26.36ashesthe popular solution is to use sha256 or sha512, but the weakness remains. sha512 just buys more time
03:29.34ashesno one in their right mind will even attempt a brute force on sha1 or md5, but finding a weakness that eliminates 90% of possible passwords might make brute force feasable
03:29.40daliasthis weakness does not apply to passwords
03:29.50daliasit's the same as the md4 weakness
03:30.21daliasand there's an md5 weakness of the same sort
03:30.35daliaswhat these vulns all allow you to do is the following:
03:30.57daliasgiven a known message (and of course its hash is also then known)
03:31.12daliasyou can construct another message which has the same hash
03:31.40daliasso for instance, if the hash is being used to certify the authenticity of a file, you can make malicious corrupted files with the same hash
03:35.44daliasthis vuln has nothing to do with passwords because it does not allow you to find all (or even one) message corresponding to a particular hash
03:36.03daliasit only allows you to find a second message with the same hash as the first already-known message
03:37.35ashesok
03:39.04daliasimo hashing passwords is an irrational legacy practice from the old days when passwords were now shadowed and everyone could see the hashes in /etc/passwd
03:39.27daliass/now/not/
03:39.39daliaswow
03:39.55daliasi dunno whether that is incredibly cool or incredibly annoying :P
03:55.02*** join/#uclibc monsieur_ (n=sieur@unaffiliated/monsieur)
04:44.35*** join/#uclibc monsieur__ (n=sieur@unaffiliated/monsieur)
05:13.30SpanKYdalias: i'd say annoying
05:13.41dalias:)
05:16.40daliasbtw
05:16.42daliasif anyone wants to see my casemapping code i checked it into my svn
05:20.52daliasat http://www.mplayerhq.hu/cgi-bin/viewcvs.cgi/libc/trunk/stdc/wctype/
05:20.58dalias868 bytes
06:15.25*** join/#uclibc monsieur_ (n=sieur@unaffiliated/monsieur)
06:50.41*** join/#uclibc monsieur_ (n=sieur@unaffiliated/monsieur)
06:58.38*** join/#uclibc monsieur__ (n=sieur@unaffiliated/monsieur)
07:02.59*** join/#uclibc blindvt__ (n=bf@M873P026.adsl.highway.telekom.at)
07:17.09*** join/#uclibc monsieur_ (n=sieur@unaffiliated/monsieur)
08:31.48*** join/#uclibc monsieur__ (n=sieur@unaffiliated/monsieur)
11:17.24*** join/#uclibc keks (n=eisbaer@p548141E5.dip.t-dialin.net)
11:20.13kekshi, i'm trying to build uclibc using those instructions (http://www.nl.linuxfromscratch.org/hlfs/view/unstable/uclibc/chapter05/uclibc.html) and receive following error message when tying "make CROSS=i686-pc-linux-gnu- all"
11:20.31keks/bin/sh: i686-pc-linux-gnu-ld: command not found
11:20.31keksmake[1]: Entering directory `/media/hda7/sources/uClibc-0.9.28/extra/config'
11:20.31keksgcc -O2 -Wall -I. -c conf.c -o conf.o
11:20.31keksgcc -O2 -Wall -I. -c zconf.tab.c -o zconf.tab.o
11:20.34keksgcc  conf.o zconf.tab.o -o conf
11:20.36kekscollect2: ld returned 1 exit status
11:20.38keksmake[1]: *** [conf] Error 1
11:20.40keksmake[1]: Leaving directory `/media/hda7/sources/uClibc-0.9.28/extra/config'
11:20.42keksmake: *** [include/bits/uClibc_config.h] Error 2
11:21.00keksany ideas?
12:00.51*** join/#uclibc sjhill (n=sjhill@eth13.com-link.com)
12:33.25*** join/#uclibc sjhill (n=sjhill@eth13.com-link.com)
12:53.24*** join/#uclibc prpplague (n=billybob@72.22.129.7)
13:12.13*** join/#uclibc Kobus (n=Kobus@dsl-165-101-142.telkomadsl.co.za)
13:12.51Kobushi
13:14.40KobusI have no idea if im on the correct channel. But here goes: I'm doing a really small gentoo system. Building uclibc 0.9.28 and it says doing elfscan and hangs. Can any of you help me, point me in the direction/place I need to look? TNX
13:15.58KobusWait: I thing I should go ask at #gentoo-embedded. But tnx anyway
13:16.03*** part/#uclibc Kobus (n=Kobus@dsl-165-101-142.telkomadsl.co.za)
13:32.18*** join/#uclibc Zta (n=stephan@port572.ds1-arc.adsl.cybercity.dk)
15:02.51prpplaguesjhill: ping
15:04.22*** join/#uclibc blindvt_ (n=bf@M978P005.adsl.highway.telekom.at)
15:32.34CIA-403landley * r15089 10busybox/miscutils/hdparm.c: Largeish cleanup patch from Tito, mostly if statement therapy.
16:31.42*** join/#uclibc andersee (n=andersee@codepoet.org)
16:52.17CIA-403landley * r15090 10busybox/ (4 files in 3 dirs): (log message trimmed)
16:52.17CIA-4Rob Sullivan cleaned up the longstanding patch from Hideki IWAMOTO to add
16:52.17CIA-4ibs and obs support to dd, and made it configurable. I cleaned it up a bit
17:01.02*** join/#uclibc Zta (n=stephan@port572.ds1-arc.adsl.cybercity.dk)
17:03.11*** join/#uclibc ignatoff (n=ignatov@c1-217-9.rrba.isadsl.co.za)
17:10.21*** join/#uclibc ambroseL (n=bjb@router.fidus.ca)
17:16.59sjhillprpplague: pong
17:19.34prpplaguesjhill: hehe, nm, just had a question and answered it myself, thanks anyway
17:34.55sjhillk
18:05.44CIA-403vapier * r15091 10uClibc/Makefile.in: use cp -P instead of cp -d as pointed out by David DeHaven
18:21.52*** join/#uclibc Zta (n=stephan@port572.ds1-arc.adsl.cybercity.dk)
19:26.51*** join/#uclibc Zta (n=stephan@port572.ds1-arc.adsl.cybercity.dk)
19:39.32*** join/#uclibc ulf_k__ (n=ulf_kypk@p54BD0CC1.dip0.t-ipconnect.de)
20:57.17*** join/#uclibc tux1800 (n=eric@c66.110.147-33.clta.globetrotter.net)
21:50.51*** join/#uclibc andersee (n=andersee@codepoet.org)
22:01.45*** join/#uclibc andersee (n=andersee@codepoet.org)
22:18.01*** join/#uclibc sjhill (n=sjhill@eth13.com-link.com)
23:06.34*** join/#uclibc blindvt__ (n=bf@M835P018.adsl.highway.telekom.at)
23:10.27*** join/#uclibc prpplague (n=dave@72.22.141.9)

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.