/srv/irclogs.ubuntu.com/2010/09/16/#ubuntu-kernel.txt

JanCmaybe we could set up a distributed test farm of machines spread all over the world, but then a lot of care should be taken that it is done in a very secure way (we don't want it to be taken over by a spammer or DDoS network or such!)   ;)00:08
bjfbug 64003300:09
ubot2Launchpad bug 640033 in grub-installer (Ubuntu) "maverick daily server iso (Sept. 15, 2010) fails to install grub on raided drive set (affects: 1) (heat: 6)" [Undecided,New] https://launchpad.net/bugs/64003300:09
melkorI have been using the maverick backports lts kernel and today on an update it wouldn't fully install.00:54
=== bjf is now known as bjf[afk]
apwmelkor, that probabally means it has not been fully built in terms of linux, lbm, and meta, should sort itself shortly08:42
lagdiwic: Hi10:26
diwichi lag10:27
lagI need your help? 10:28
lagWhat's it like to be wanted? :)10:28
diwiclag, I like to help people :-)10:29
lagHave you heard of an sdp4430?10:29
diwicnope10:30
lagWhat about a twl6040?10:30
diwicnope10:31
lagsound/soc/omap/sdp4430.c10:31
lagsound/soc/codecs/twl6040.c10:32
lagThe sdp4430 is an audio chip10:32
lagThe twl6040 is a companion CODEC10:32
lagThey are connected together on the Panda10:32
lagThey used to be connected together on the Blaze10:33
diwicI haven't looked into the soc stuff at all, but there is a first time for everything, I suppose.10:33
lagSound works on the Blaze, but not on the Panda10:33
lagI would like to know how to debug10:33
apwjjohansen, smb, i just became input only on mumble ... i can hear you but my machine X has hung ... ARGS10:34
diwicso no audio at all, right?10:35
lagRight10:35
diwicis the card detected? see /proc/asound/cardX and "aplay -l"10:36
lagI have two versions of the image10:37
lagOne contains a few hacks - I'll send you the email10:37
lagSent10:38
diwiclag, so you could either read my triaging class I had on IRC last Saturday10:38
lagWas that logged anywhere?10:39
diwiclag, or you could upload an alsa-info to canonical's pastebin and let me do it for you10:39
lagHow do I do that?10:39
lagIt is just a command line thing?10:40
diwichttps://wiki.ubuntu.com/Audio/AlsaInfo10:40
diwicTriaging classes: http://irclogs.ubuntu.com/2010/09/11/%23ubuntu-classroom.html10:41
=== amitk is now known as amitk-afk
lagOkay10:46
lagDid you see those files I sent you?10:46
lagI'm not entirely sure what they set up10:47
lagOnce applied to the image alsa-info provides this: http://paste.ubuntu.com/494653/10:47
lagI'll also run alsa-info on a system where the hacks aren't applied 10:47
lagdiwic: --^10:47
diwicso regardless of hack or not, sound is not working?10:47
lagCorrect10:48
lagFor me at least10:48
lagI know someone with the same board that sound is working10:48
lagI'll ask him to send me his kernel, but he's not up until this afternoon10:48
diwicso the files there sets the mixer in specific ways10:50
lagWithout them my Sound Preferences applet says "Dummy Output"10:52
lagWith them it says SDP443010:52
diwicthat's probably the default.pa doing that, which opens the chip in a specific way10:52
lagAgain, without them my volume icon in the panel is greyed out10:52
lagOkay10:52
lagThis is how it looks without the files included: http://paste.ubuntu.com/494657/10:55
diwicI don't know much of those chips unfortunately10:57
diwicbut you could try "speaker-test -c2 -Dhw:0,0" and see what happens10:58
lagPlayback open error: -22,Invalid argument10:59
lagOh, let me try the other image10:59
diwic "speaker-test -c2 -Dhw:0,0 -F S32_LE -f 48000" ?11:00
diwicsorry11:00
diwic "speaker-test -c2 -Dhw:0,0 -F S32_LE -r 48000" 11:00
lagJust booting11:01
lagIs there any way to ask the system which port it's playing the sound out of?11:01
diwicIf you run "aplay -l", it should give you a list11:02
diwicis that the list you're looking for?11:02
lagI don't hear any sound from speaker test11:03
diwicso then there's probably something on the chip, e g routing-wise or mixer-wise that needs fixing11:04
lagThe thing I don't understand is that the same configuration was used with the board's predecessor11:05
lagSo aplay -l gives me a list of devices11:06
lagBut the kernel must know which device/port it's attempting to play sound out of?11:06
lagOn board speaker, headphone jack, aux, etc11:06
diwicand you can select which one in your call to speaker-test (-Dhw:0,x) where x is the number11:06
lagEach device is card0 - subdevices 1/1 - subdevice #111:07
lagHow do I differentiate? 11:07
diwiccard 0: SDP4430 [SDP4430], device 3: Tone Playback null-codec-dai-3 [] 11:07
lagOh card0 device011:08
diwic= hw:0,311:08
lag0:3?11:08
lagGot it 11:08
lagLet me try11:08
diwicbut it might also be that the outputs are controlled by either the mixer or some other magic in the driver11:09
diwicwith "alsamixer -Dhw:0" you can fiddle around with the mixer settings11:09
lagOkay, leave it with me11:12
diwicokay, I'll go and have some lunch now11:12
=== diwic is now known as diwic_lunch
=== smb is now known as smb-lunch
lagdiwic_lunch: speaker-test doesn't work on my desktop either?11:47
=== amitk-afk is now known as amitk
=== ivoks-afk is now known as ivoks
=== smb-lunch is now known as smb
diwic_lunchlag: for speaker_test, try "plughw" instead of "hw"13:04
lagWhat does: "Sample format not available for playback: Invalid argument" mean?13:08
lagSetting of hwparams failed: Invalid argument13:09
=== ivoks is now known as ivoks-afk
=== diwic_lunch is now known as diwic
diwiclag, so, your hardware only supports one or a few samplerates and sample formats (e g 16 bit signed, little-endian). If you use "hw" in your argument to speaker-test (or in default.pa, btw), it will use the format you specify and only that. If you use "plughw", there will be a plug layer added that converts the sample-rate and sample format for you13:39
diwiclag, so "Sample format not available for playback" means you tried to use a sample format the hardware does not support.13:40
lagWith plughw:0,0 I get: Playback open error: -22,Invalid argument13:41
lagWith plughw:0,8 it looks like it works, but it's actually silent and gets stuck on "0 - Front left"13:42
diwiclag, is that on the omap or on your desktop?13:42
lagomap13:42
lagWhen I use hw or plughw with 0,6 I get sound from HDMI13:42
diwicso if HDMI works, you're actually getting some kind of sound, that's good news I suppose13:43
apwthat hdmi is on and nothing else is the inverse of most of our normal issues13:48
diwicapw, :-) 13:49
apwlag, on my lappy to get hdmi i have to switch 'hardware' on sound preferences13:50
apwr13:50
apwthe profile on the hardware tab13:51
diwicapw, that's on the gnome/pulseaudio level. We're doing things at the ALSA level currently. But you have a point. lag, is PulseAudio running? 13:51
diwiclag, perhaps that's interfering with our tests.13:51
lagapw: There is nothing in the HW tab13:52
lagdiwic: Yes it is13:53
lagAs is gconf-helper13:53
diwiclag, try stopping it and see what that does for the tests ( https://wiki.ubuntu.com/Audio/StopPulseaudio )13:53
lagStill nothing13:57
lag[ 1361.951721] asoc: no valid backend routes for PCM: SDP4430 Media 13:58
lagI'm assuming that's bad13:58
diwiclag, I'm assuming likewise...14:00
=== bjf[afk] is now known as bjf
diwiclag, I grepped the kernel tree for "backend routes" but couldn't find anything14:01
lagsound/soc/soc-core.c14:03
lagNear line 50514:03
ogradiwic, lag is talking about omap4, not omap ;)14:03
ogra(different tree)14:03
diwicokay, I was just checking sound-2.6.git14:04
jdstrandsmb: hi. I haven't read my email yet but I wanted to mention that I'm here now to shuffle the security kernel along until kees comes online14:05
jdstrandsmb: whenever you're ready14:05
smbjdstrand, The src package are all on chinstrap now, up to now I did only a regression test on lucid-amd64 and hardy-xen. More test kernels are either building or pending upload14:07
smbAs the changes modify only compat stuff probably amd64 only test might be ok14:08
smbBut maybe better do some i386 as well14:08
=== jjohansen is now known as jj-afk
tjaaltonjdstrand: you got one ready?14:29
jdstrandsmb: so are these something I should upload to the security ppa?14:29
jdstrandtjaalton: no, smb is preparing them14:30
tjaaltonjdstrand: ok14:30
smbjdstrand, If we want to speed up things we can upload them and should anything come up throw them away14:30
jdstrandsmb: I think that would be a good idea. I had a glance at some of the upstream commits and they didn't seem too intrusive14:31
* jdstrand goes to upload them14:31
smbtjaalton, I currently have them only on chinstrap. jdstrand would it be ok to place kernel packages somehwere open?14:32
smbjdstrand, Beside of breaking the build when backporting they seem to be ok. :-P14:32
jdstrandwe can build them in the ubuntu-security-proposed14:33
apwogasawara, about ?14:33
jdstrandsmb: it's just the too issues that came up yesterday, right?14:33
jdstrands/too/two/14:33
smbjdstrand, yes only those two14:33
jdstrandk14:33
tjaaltonsmb: do you have them for jaunty as well?14:33
smbtjaalton, yes14:33
tjaaltonsmb: excellent14:34
jdstrandgive me a few minutes and I'll let you know they are uploaded14:34
smbjdstrand, issue #1 seems to affect all, issue #2 only jaunty-maverick14:34
smbjdstrand, Do you have an exploit for compat1?14:36
jdstrandI think mdeslaur came across one this morning14:37
jdstrandmdeslaur: did you play with it any yet?14:37
jdstrandmdeslaur: ^14:37
apwi suspec that is best discussed in private14:37
jdstrandapw: it is public14:37
jdstrandbut we can go somewhere else14:37
apwheh but pointing people to the exploit just makes it even easier 14:37
apwthe rest of the discussion is fine, just that one titbit14:38
jdstrandsure (though it was pointed out to us in another public channel), but I take your point14:38
mdeslaursmb: the exploit we have only works for RH, it would need to get all the ubuntu offsets added to it14:38
jdstrandmdeslaur: can you discuss in #security14:39
mjg59Everyone hates us :(14:39
mdeslaurhaha14:39
tjaaltonmdeslaur: the one "rh specific" exploit works fine on jaunty as well14:39
tjaaltonconfirmed here14:39
mdeslaurtjaalton: the one for issue #1?14:40
tjaaltonmdeslaur: compat1, yes14:40
smbSo they hate us too. :)14:40
mdeslaurtjaalton: oh, I need to try it then14:40
mdeslaurtjaalton: thanks14:40
tjaaltonthe patch didn't look ksplice'able.. :/14:41
tjaaltonat least not trivially14:41
jdstrandsmb: I'm guessing ogasawara is taking care of maverick?14:46
smbjdstrand, ack14:46
smbjdstrand, She already has uploaded14:46
jdstrandsmb: can you respin 2.6.31-22? it has lucid-security for the distribution name14:50
smbjdstrand, doh14:50
smbjdstrand, yes14:50
jdstrandsmb: thanks14:50
jdstrandsmb: will there be new kernels for lucid arm?14:52
smbjdstrand, I believe kees agreed that we don't do them as this is 64bit only14:53
jdstrandsmb: ok cool14:53
tjaaltonsmb: do you have an ETA for the debs?14:58
smbtjaalton, If they should come from sec-proposed jdstrand may have14:59
tjaaltonsmb: ok, thanks15:00
jdstrandsmb: can you respin dapper? the upload was rejected: "The source linux-source-2.6.15 - 2.6.15-55.87 is already accepted in ubuntu/dapper and you cannot upload the same version within the same distribution. You have to modify the source version and re-upload."15:02
smbjdstrand, wtf, *sigh* yes 15:03
jdstrandhardy, jaunty and lucid are now in https://edge.launchpad.net/~ubuntu-security-proposed/+archive/ppa/+packages15:05
jdstrandsmb: I think you meant to do this, but I want to be sure. 2.6.32-25.43 is in lucid-proposed, but we just uploaded 2.6.32-24.43 to lucid-security15:06
smoserapw, thanks for your help yesterday. bug 606373 is now fixed.15:06
ubot2Launchpad bug 606373 in plymouth (Ubuntu Maverick) (and 5 other projects) "cloud-init output does not get to console when booted with pv-grub and ramdisk (affects: 1) (heat: 10)" [Undecided,New] https://launchpad.net/bugs/60637315:06
smbjdstrand, Yes this one of all is intentional15:06
jdstrandhehe, cool15:06
smbjdstrand, I'll do a re-upload there asap15:06
jdstrandtjaalton: ^ sources are uploaded and building presently15:07
tjaaltonjdstrand: yeah, getting them now, thanks :)15:07
tjaaltoni've got 8 cores to build it on15:08
apwsmoser, most excellent i like bugs that end 'fixed'15:10
smoserme too, especially *before* a freeze :)15:10
apwsmoser, heh there is that, what was at fault in the end?15:11
smoseryou can read the final 2 comments.  but basically i ended up adding 'console=hvc0' to the kernel command line.15:11
smoserthat way plymouth repeats the data it stole to hvc015:11
smoserif you dont have console= it doesn't repeat it for you.  there is no way i could see to tell it "please repeat it to /dev/console"15:12
apwsmoser, i don't think it can repeat to /dev/console as it is stealing the output to there via an ioctl magic15:13
apwso it would self recurse to itsself if it pushed it into there15:13
smoserwell, it unsteals it on exit15:13
smoserso it could buffer, unsteal, write15:13
apwsmoser, ahh i see, yes it could do that 15:13
smoserbut i guess that would generally be broken for its purposes of prompting and such15:14
smoseror, i guess, it could just not steal (I've read "You shall not steal." somewhere before)15:15
=== BenC___ is now known as BenC
jdstrandsmb: ok, dapper and karmic uploaded15:28
ogasawaraapw: did you need something earlier15:29
jdstrandsmb: now that they are building, I am going to let you and kees finish the testing/publication since I have a stack of mozilla updates I need to get out today. if you need me, holler15:29
smbjdstrand, ok sure15:29
smbjdstrand, Thanks for getting them building15:29
apwogasawara, wondered if you remembered dropping some nouveau noaccel patches in maverick15:30
ogasawaraapw: it's not ringing a bell15:30
ogasawaraapw: but if they were there and are not now, then it likely happened15:31
jdstrandsmb: sure, np :) I went ahead and updated the cve tracker marking maverick as released, dapper and hardy not affected by CVE-2010-3301, and everything else 'pending'15:33
ubot2jdstrand: ** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem.  When the candidate has been publicized, the details for this candidate will be provided. (http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3301)15:33
smbjdstrand, most of it should have been in our branch of it. beside the maverick things15:35
smbjdstrand, at some point it might be good to merge them back15:35
jdstrandsmb: ack15:36
apwogasawara, ack will let you know the outcome of the patch testing15:47
ogasawaraapw: looks like the archive will officially freeze at 1700 UTC15:48
apwogasawara, hrm 15:48
apwi presume they ahve been waiting for the mesa/untity fixes15:48
tgardnerogasawara, so I still have time to upload ti-omap4 ?15:49
diwicso if I want to get a fix into libffado + udev within the next two hours, who should I bug about that? :-)15:49
bjfdiwic: talk to the hand15:49
diwicbjf, the hand? If you mean myself, I'm not a MOTU.15:50
apwdidn't think that was going to translate15:50
tgardnerogasawara, nm, mpoirier's patch is for maverick master15:50
bjfdiwic: http://en.wikipedia.org/wiki/Talk_to_the_hand15:50
ogasawaraapw: not sure, but it sounded like Daviey would appreciate a few extra mins to get a quick fix.15:50
ogasawaraapw: so robbie said he'd hold off till 170015:50
ogranah,. robbie was bribed with a kettle full of beer it seems15:51
apwi can't see us wanting to spin master at this point either way15:51
ogasawarayah, I'd like to avoid a respin of master if we can help it15:51
apwthe bug here is that macpros need noveau.noaccel to boot on the live CDs with this kernel, seems we dropped the fixes from lucid (likely resonably)15:52
apwso its release notable anyhow15:52
apwand i don't have confirmation that putting the patches back helps yet, so i can't even suggest we put it in15:52
ogasawaraapw: doesn't cooloney or cnd have a macpro?15:53
diwicbjf, aha :-) Just like I thank my editor for "keeping tabs" instead of converting them to spaces...15:53
apwogasawara, yeah ... strange neither of them has mentioned it15:57
bjfapw, are you sure they are dogfooding?16:05
apwbjf, likely not16:06
tgardnerapw, I blasted HEAD on ubuntu-maverick-meta ti-omap416:06
=== ivoks-afk is now known as ivoks
apwtgardner, ack16:10
apwtgardner, what did i do, push the tag and not the branch or something silly?16:12
tgardnerapw, I homogenized the commit log entry and redid the tag16:13
=== diwic is now known as diwic_afk
=== yofel_ is now known as yofel
=== jj-afk is now known as jjohansen
tgardnerJFo, bug chat?17:07
JFoooh, yes17:07
JFosorry was distracted17:07
* tgardner lunches19:01
* jjohansen -> lunch20:08
* ogasawara lunch20:25
vanhoofdoes anyone know off hand the max memory ubuntu will support?21:15
vanhoof10.10. specifically, i386+pae and amd6421:15
tgardnervanhoof, I don't think there is a practical upper limit, though PAE will incur some overhead.21:17
vanhooftgardner: gotcha ... looking at a machine that can scale up to 192gb :)21:19
tgardnervanhoof, I have some amd64 servers with 132GB21:20
jcrigbytgardner, is there a way to override module checking for just one modules?21:22
vanhooftgardner: cool, this would typically call for i386, which has me fearful 21:22
achiangvanhoof: unlike cpus, there's no hard coded limit in .config for memory21:22
vanhoofachiang: well im wondering max vs supported, along w/ factoring in this might require i38621:23
vanhoofi386 seems like a bad idea here21:23
achiangyes, i386 would be bad21:23
tgardnerjcrigby, yep, lemme check.21:23
tgardnervanhoof, i386 is definitely a bad idea21:25
tgardnerjcrigby, perhaps not. I was thinking perm-blacklist, but excludes symbols from the ABI check. Maybe you could just hack out the module name from the ABI module file?21:27
tgardnerthat excludes*21:27
jcrigbytgardner, the hack will work.  I had to move a driver from m to y21:28
tgardnerjcrigby, you can always add an ignore.modules file21:28
jcrigbytgardner, maybe I'll just do that21:29
tgardnerbut that ignores the whole module check21:29
jcrigbytgardner, while I have you here I'll mention that I have a new kernel coming.  Just a sync with last ubuntu21:29
jcrigbyI know the freeze is on so I'll let the important people figure out how to get it through21:30
tgardnerjcrigby, ok.21:30
ogasawarajcrigby: https://wiki.ubuntu.com/KernelTeam/KernelMaintenance#Overriding module check failures21:41
ogasawarajcrigby: so I think if you create a modules.ignore file and add the name of the module to that file it should ignore it in the checks21:42
jcrigbyogasawara, thanks21:43
jcrigbyogasawara, ok dumb question do I put it in the new or old abi directory?21:43
jcrigbyogasawara, its got to be old right since new is generated21:44
tgardnerjcryour new abi directory doesn't exisat until prepare time21:44
lagHas anyone else been taken into #ubuntu-unregged?21:44
ogasawarajcrigby: add it to the old21:44
jcrigbytgardner, ogasawara: ok thanks21:44
smoseranyone have thoughts : http://paste.ubuntu.com/494924/ (bug 567334)21:45
ubot2Launchpad bug 567334 in linux (Ubuntu) (and 1 other project) "blocked tasks delay cloud-init for 240 seconds (affects: 2) (heat: 31)" [Medium,Triaged] https://launchpad.net/bugs/56733421:45
smoserwhat could cause the "blocked for more than 120 seconds." messages ?21:46
tgardnersmoser, a really high load average, or the host has an incorrect concept of time.21:47
smoserhm.. well, it isn't time being bad like skipping 120 seconds. its not htat bad.21:47
tgardnersmoser, a really high load average?21:48
smoseri've seen it at boot on ec2, this is someone seeing it long after boot.  by design boot should be as high load average as possible, but doesn't normally last 120 seconds.21:48
tgardnersmoser, if the hypervisor is over subscribed it might happen21:49
smoserwell, yeah, i thought you might say that.21:49
smoserand of course a.) it *is* oversubscribed, and b.) theres nothing i can do about it.21:49
smoserbut i just can't imagein its that over subscribeed, to where performance was unable to boot in 120 seconds or something.21:50
tgardnersmoser, I assume your instance came up eventually and stopped puking in the log?21:50
smoserthe times i've waited, yeah, ssh server eventually does come up21:50
tgardnersmoser, have you reproduced this since your plymouth hack?21:51
tgardnerconsole hack, I mean21:51
smoserpersonally no.21:51
smoserlet me see if the person who just did today was using an image from today21:51
tgardnersmoser, when these tasks recover its always been load related21:52
tgardnersmoser, I can reproduce it on bare metal using 'stress'21:52
smoserhm..21:52
smoserso, the person reported it just now was running apache, ~ 30 minutes after boot, but not with console=hvc0 on cmdline21:53
tgardnersmoser, thats more likely to have an impact at boot time.21:54
ogasawaratgardner: your lts backports kernel blueprint... can I postpone the "interlock with QA to set support levels" and the "investigate MIR" work items?22:18
ogasawarabah, I just missed him22:19
keesogasawara: did maverick get smb's fixes for mlock + the new stack guard page?22:35
ogasawarakees: I believe so, http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-maverick.git;a=commit;h=1ccc5359a8f055b153a2e0cfec02a594a844336022:37
ogasawarakees: ^^ that commit correct?22:37
keeslooks like it, yeah22:37
keesweird. which build did that make it into?22:37
keesI'm running Ubuntu 2.6.35-20.29-generic 2.6.35.422:38
keesand it seems to be failing22:38
ogasawarakees: I think it just got into the most recent, 2.6.35-22.3222:39
keesah-ha! I will go reboot again22:39
ogasawarakees: as I recall he mentioned he had a last minute patch for me before freeze22:39
keesogasawara: excellent.22:40
=== bjf is now known as bjf[afk]
undriedseaHey everyone, I am having trouble calling set_pages_rw (from <asm/cacheflush.h>) in my kernel module (I get Unknown symbol set_pages_rw). Does the kernel not export this function? Is there a way to find out what the kernel version of a kernel is exporting?23:35
undriedseaShould I just read the address for the function from System.mapxxx?23:37
achiangundriedsea: it sounds like you're writing an out-of-tree module?23:49
undriedseayes23:49
achiangundriedsea: anyway, it also sounds like you shouldn't be using that API anyway, based on comments in the header file23:49
achiangand reading the address from System.map is a *really* bad idea23:49
undriedseawhy is that?23:49
achiangundriedsea: in general, the kernel is specific about what it exports. if it's not exporting a symbol, there's usually a good reason for it, such as proper encapsulation, not wanting out-of-tree modules to become dependent on it, etc.23:51
achiangundriedsea: in any case, what's wrong with using set_memory_rw ?23:51
achiangthat symbol is exported GPL23:51
undriedseaI am working on a project that requires my kernel module to modify the system call table. Since it is no longer exported, I was using System.map to find it and I was setting it to writable so I can make my modifications 23:52
undriedseais it, let me double check something23:52
mjg59undriedsea: If you're working on something that wants to modify the system call table then you can implement it in any way you want - upstream is never going to approve23:52
mjg59There's no "correct" way to do it23:52
achiangright. i was thinking about how to say that... ;)23:53
undriedseaI have no intent of it getting accepted, I only want my end users to be able to load it23:53
mjg59You have no guarantee that any method you use will continue working with even minor kernel updates23:54
mjg59So just ship your end users a modified kernel23:54
mjg59It's the only way to be sure23:54
undriedseareally-- :( thanks23:55
undriedseaIf I forgot to put MODULE_LICENSE ("GPL"); in my mod, would that by why  set_pages_rw was not working?23:55
achiangyeah, i guess just EXPORT_SYMBOL(set_pages_rw)23:55
undriedseawhy is reading from the System.map a bad idea?23:56

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!