/srv/irclogs.ubuntu.com/2014/02/12/#ubuntu-kernel.txt

=== gerald is now known as Guest34543
=== mwhudson is now known as zz_mwhudson
ppisatimoin moin06:51
apwmoin07:24
=== lag` is now known as lag
ppisatii love the smell of kernel compilation in the morning...08:30
zequenceSmells like...08:30
smbburning copper08:31
apwheh ...that's a good description08:40
apwsmb, so what are you reproducing this on, is this your amd box ?09:12
apwsmb, i wonder if i should be trying to repro it on my kit, to see if there is a type of kit link09:13
smbapw, One... its the dell 152109:13
smbBut in bug 1268906 jodh has seen it on an i709:13
ubot2`Launchpad bug 1268906 in qemu-kvm (Ubuntu) "cpu soft lockup running kvm" [Medium,Confirmed] https://launchpad.net/bugs/126890609:13
apwok so that is intel and amd showing it?09:14
apwyou should let peter know the extent of the h/w you have seen it on09:15
smbapw, IF only you would read mail09:15
hvn2question: if I cross-compile a patched vanilla kernel using make-kpkg, ending up with a linux-image and linux-header, and I install it using dpkg, will Ubuntu treat it as an Ubuntu kernel or does it take more to be treated as such ? 09:15
hvn2my problem is that I've tried for 6 times now, and each time I get the message that it won't be written into flash09:17
apwhvn2, what is the message you get09:19
apwsmb, i have read email, once is enough, ever09:19
smbapw, Sometimes people do reply... :) So, yeah I did already let him know that09:20
apwsmb, and _that_ one i am not even copied on!09:21
jarkko_what should i do i get multiple of these on dmesg09:21
jarkko_7659.777995] ieee80211 phy0: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 0 in queue 209:21
jarkko_its known issue09:21
smbapw, Hm, I thought I did a reply all to his...09:21
hvn2apw: the exact message is that "kernel <..> does not match your subarchitecture omap, therefore not writing it into flash." Of course I configured the kernel for omap.09:21
smbapw, So no, you are not on that, but the initial email you were not either09:22
apwsmb, indeed and the search page on lkml does not auto update!09:23
apwso ner09:23
smbapw, stupid them then :)09:23
apwsmb, i note you are starting this with very little memory, i presume that is what is triggering the need to ipi a lot09:23
smbapw, Would it not do the opposite since the host is under less pressure?09:24
smbapw, Note that it is the qemu task on the host that runs into this09:25
smbhvn2, what does "file <kernel file>" say about that09:27
apwsmb, but it is the internel need for one cputhread in the guest to wake the other that triggers the need to add the TIF_ flag in the first place, so i would guess anything which makes CPU to CPU comms in the guest more comon would tickle this issue more09:27
smbapw, I don't think so. In some cases the softlockup happened even when still running isolinux or the bios which inside the guest is not SMP09:29
hvn2smb, that says "Debian binary package (format 2.0)"09:29
smbhvn2, That would be a deb package and not the kernel which I assume the flashing is right to refuse09:30
hvn2no, on the target I did "file" on the kernel I cross-compiled09:31
ppisatihvn2: so you have a .deb package, right?09:34
ppisatihvn2: my guess is that, the vmlinuz file and initrd were installed successfully, you can check it looking inside /boot for those two fiels09:34
ppisati*files09:35
ppisatihvn2: what is failing is flash-kernel, you are hitting the same bug as this one: https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/72114709:35
ubot2`Launchpad bug 721147 in flash-kernel (Ubuntu Natty) "flash-kernel subarch check fails with Linaro OMAP kernels" [Undecided,Fix committed]09:35
ppisatihvn2: after vmlinux and initrd are installed, there's a trigger to turn them into uImage and uInitrd files that uboot can understand09:36
ppisatihvn2: problem is, every board/arch is different, is tretaed differently and thus therte's a specific piece of code that deals with it09:36
ppisatihvn2: in your case when flash-kernel is invoked it doesn't understand for which arch/board your kernel was compiled for, and thus doesn't know how to handle it09:37
ppisatihvn2: anyhow09:37
ppisatihvn2: you just said that's a patched kernel, did you manually try to boot it?09:37
ppisatihvn2: does it work?09:37
hvn2ppisati: on x86 it installed and works perfectly, on this board it's given this message each time. Also, last time I tried to boot from the first attempt, it booted into the standard kernel. Since then I didn't boot since I got this message.09:41
ppisatihvn2: read the lp bug that i mentioned above, you are hitting the same problem09:43
ppisatihvn2: installing a kernel on an arm board it's (usually) a two step process09:43
ppisatihvn2: 1) tou install it (and create initrd) in /boot09:43
ppisatihvn2: 2) those files are converted in uImage/uInitrd files and copied somewhere09:44
ppisatihvn2: your package installation is failing point 209:44
ppisatihvn2: because flash-kernel doesn't know how to handle your package09:44
hvn2ppisati: ah ok..right now, I'm reinstalling my latest kernel version and will check on the uImage and uInitrd. Then will try to boot into it09:47
hvn2ppisati: I just check /boot, and the only files that have been created from this latest install are initramfs and initrd.img. From yesterdays attempt are System.map and vmlinuz. The fat32 partition does not contain new uImage or uInitrd.09:55
hvn2ppisati: So I guess I have to manually do step 209:56
hvn2ppisati: yes, that my problem is clearly according to that bug09:58
hvn2ppisati: I just found this for Karmic: mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n "Linux" -d ./vmlinuz-* ./uImage . Does this handle uInitrd as well ?10:29
ppisatihvn2: as the command says, it creates only uImage10:29
ppisatihvn2: if i would you, i would put some echo in flash-kernel and the reinstall an ubuntu kernel on that board10:30
ppisatihvn2: this way you can see what's going on10:30
ckingapw, did you get my email wrt thermad10:36
cking?10:36
hvn2ppisati: ok ty. I will check.10:39
=== gerald is now known as Guest89674
apwcking, yep saw it10:58
apwcking, i thin you are on the money, lets get it synced over10:59
apwcking, i assume we want -7 yes ?11:00
ckingapw, yep 11:05
caribouIs our signed kernel that boots in secure mode a totally separate kernel or some thing that sits on top of the regular one ?11:11
apwcaribou, it is exactly the same kernel, bit for bit, with a teensy signature attached11:12
* caribou is just trying to confirm that our signed kernel has kexec disabled11:12
apwcaribou, though it exercises different code during early boot if booted signed from efi11:13
caribouapw: ah, ok, hence the ./usr/lib/linux/vmlinuz-3.11.0-15-generic.efi.signature in the package11:13
apwcaribou, kexec is enabled11:13
caribouapw: ah ok, thought it was not11:13
apwcaribou, it is arguable if you have module signing enforced it should be, but it is not11:15
apwcaribou, we did however just add the commit below11:15
apwcommit 70a96bd309fc4ff7d07792057cda1ad89e64738811:15
apwAuthor: Kees Cook <keescook@chromium.org>11:15
apwDate:   Thu Jan 23 15:55:59 2014 -080011:15
apw    kexec: add sysctl to disable kexec_load11:15
apw    11:15
apwwhich allows you to permenantly diable it on boot, this lets you load a crash kernle and then stop it being changed11:15
caribouapw: yeah, I remember asking about this one recently11:22
caribouapw: thanks for the info11:22
apwhenrix, about to blow the autotriager into bits again11:38
henrixapw: ack11:38
ckingapw, i may have to do one more thermald upload as I've just been given a some patches to make it work with systemd11:48
apwcking, thats fine, we can sync again, if -7 is worth having now11:54
ckingwell -8 won't add much for us, , so -7 is fine for the mo, but I will get -8 up sometime today once I've sanity checked it11:55
apwcking, ok that is sync'd, built, and pending publication12:03
ckingta12:06
ckingapw, the next step I guess is to make it install on our kernel for x86 systems12:07
apwyeah i guess we make it an install dependancy of the kernel on x86, does it make sense anywhere else ?12:08
ckingapw, nope, just for x86 12:08
apwok, so we will trigger a component missmatch, so we need an MIR filing for that to get considered for inclusion12:19
zequenceapw: So, I was able to narrow down one clue to linux-lowlatency not booting - as it seems to freeze because of at least one type of wifi driver. I was thinking of doing more testing, and thinking since the diff is so small, it should be easy to narrow it down even more. 12:25
zequenceapw: So, I thought to try rebuild the kernel without the threadirqs parameter12:25
zequenceBut, maybe you guys already have an idea about what it could be?12:26
apwzequence, so joe has built kernels with preempt off, and you can test the thread thing by turning it off on the command line12:26
zequenceapw: Right12:27
zequenceOk. Will do some testing this evening12:27
apwliase with jsaulisbury as he has all the kernels et12:28
apwetc12:28
zequenceapw: Alright12:29
rtgcking, have you written a main inclusion request for thermald ?14:07
ckingrtg, nope, how does one go about that?14:07
rtgcking, um, I have to figure it out every time 'cause I don't do it that often.14:08
ckinghttps://wiki.ubuntu.com/MainInclusionProcess i guess14:08
rtgcking, that looks right14:08
caribouwhat value of /proc/meminfo would be good candidate to evaluate the memory available when booted in the kexec crash dump environment ?14:24
caribouI was thinking of MemTotal & MemFree14:24
apwcaribou, yep, those are the ones i would start with14:37
caribouapw: ok, thanks. I'm hoping to define a set of scripts that can be easily replayed. If I get good results, I'll write a blog post about it14:38
=== gerald is now known as Guest35371
jsalisburybjf, want me to apply the 3.11.10.4 updates to Saucy master-next ?14:58
bjfjsalisbury, yup, go for it14:59
jsalisburybjf, cool.  I'll push them to my git repo on zinc again and send a pointer14:59
jsalisburybjf, also, there was an update from the bug report on bug 1254091 but he didn't update the tags15:02
ubot2`Launchpad bug 1254091 in linux (Ubuntu Saucy) "intel_pstate no_turbo patch from upstream" [Medium,In progress] https://launchpad.net/bugs/125409115:02
hvn2question: after installation of a custom built kernel and rebooting, the tracking data shows the kernel image has bad data crc. How can I check beforehand if this is the case ?15:44
=== cmagina_ is now known as cmagina
jsalisburyhenrix, I was cross checking the v3.11.10.4 patches I'll be applying to Saucy with your emails for 3.11.10.4 -stable review.  16:08
jsalisburyhenrix, It seems this one is not in v3.11.10.4:16:08
jsalisbury[PATCH 3.11 233/233] ftrace: Have function graph only trace based on global_ops filters16:08
jsalisburyhenrix, was that dropped?16:08
=== vmesons is now known as vmeson
lagcking: Hey Colin16:13
ckinglag, yup16:13
jsalisburyhenrix, ahh, I think this explains it: http://www.spinics.net/lists/stable/msg34983.html16:13
lagcking: Just to let you know, there's been a slight change of plan16:15
lagcking: As your patch turned into a code clarity patch, rather than a BUG, I'm going to push it though -next instead of -fixes16:15
ckinglag, ok, sure, that makes sense16:15
lagcking: As your patch turned into a code clarity patch, rather than a BUG, I'm going to push it though -next instead of -fixes16:15
lagWhoops, wrong window to do (up + return)16:16
henrixjsalisbury: yep, it has been dropped (as you've already found out :) )16:19
jsalisburyhenrix, great, thanks.  Just wanted to confirm :-)16:20
=== kamal__ is now known as kamal
sforsheesmb: do you know if it's possible to run xen in a kvm guest?16:31
smbsforshee, not done that but with nested enabled on host ... theoretically16:32
sforsheesmb: just looking for a way to run xen without sacrificing a physical machine16:33
plarsbjf: psivaa and I are still seeing this test_010_proc_maps failures, at least on non-precise runs. Was there anything specific about the fix for that to precise?16:33
smbsforshee, Its not so much sacrificing... you still can boot normally after..16:34
smbI  just would fear an unknown amount of "nobody  tried that before" when trying to run inside a kvm VM16:35
bjfplars, can you look in the ubuntu_qrt_kernel_security.tar.bz2 tar file and see what the latest revno reported in the bzr.log file in that tar file is?16:36
bjfplars, it should be this: http://paste.ubuntu.com/6920824/16:43
plarsbjf: ah, that's not the results file16:43
plarsbjf: I was looking in the wrong thing, I don't know if I have that after the run, but I could wait for one running right now to finish and see what it has16:44
bjfplars, you should be able to look in your git repo16:44
plarsbjf: ok, at least in our tree that seems correct16:50
bjfplars, i'll add code to the tests so that shows up in the output results16:54
bjfsbeattie, it sounds like CI is still seeing issues with the security test. it looks like they are now running the latest version. i'll add code to the tests so they report what version they are running17:03
=== bjf is now known as [home-bjf]
hallynapw: hi, did i scare you away with the user.overlay.* idea for overlayfs? :)17:18
apwhallyn, i thought you decided you could make a big mess with that, removingwhiteouts17:39
hallynapw: I don't undestand, but I think the answer is no (i didn't decide that ,that is :)17:40
hallynapw: to remove a whiteout, the user would have to find the file on the writeable layer17:40
=== Trevinho_ is now known as Trevinho
jsalisburyhenrix, I noticed there may be a change missing in 3.11.10.4, which came in with patch: 18:06
jsalisbury[PATCH 3.11 148/233] mmc: sdhci-pci: Fix BYT sd card getting stuck in runtime suspend18:06
jsalisburyhenrix: The sdhci_intel_mrst_hc1_hc2 struct is missing the addition of  .own_cd_for_runtime_pm = true,18:06
henrixjsalisbury: checking...18:07
henrixjsalisbury: ah, i see what you mean18:07
henrixjsalisbury: so, that structure is actually on a different place in 3.1118:08
henrixjsalisbury: it is defined in drivers/mmc/host/sdhci-pci.c instead of rivers/mmc/host/sdhci-pci.h18:08
henrixjsalisbury: so, the change is still there, but in a different place18:09
henrixjsalisbury: does this makes sense to you?18:09
jsalisburyhenrix, hmm, I don't see the change in that file.  18:09
jsalisburyhenrix, I see that you backported that struct into drivers/mmc/host/sdhci-pci.c, which I'll have to move back to drivers/mmc/host/sdhci-pci.h for Saucy, heh18:10
henrixjsalisbury: you're talking about commit d097d786191a4cd882d622479a742a90605004c6 (in the stable tree), right?18:11
jsalisburyhenrix, I see the struct defined in drivers/mmc/host/sdhci-pci.c, but it seems to me missing the addition of own_cd_for_runtime_pm = true18:11
jsalisburystatic const struct sdhci_pci_fixes sdhci_intel_mrst_hc1_hc2 = {18:11
jsalisbury        .quirks         = SDHCI_QUIRK_BROKEN_ADMA | SDHCI_QUIRK_NO_HISPD_BIT,18:11
jsalisbury        .probe          = mrst_hc_probe,18:11
jsalisbury};18:11
henrixhmmm....18:12
jsalisburyhenrix, hmm, maybe a later commit dropped it?  18:13
henrixjsalisbury: ok, so 2 sdhci_pci_fixes struct instances are modified: sdhci_intel_mfd_sd and sdhci_intel_byt_sdio. correct?18:14
hallynoh no.  is lvm in trusty supposed to be working?18:14
henrixactually, sdhci_intel_mfd_sd and sdhci_intel_mfd_sdio18:14
henrixgah! i'm confused :)18:15
jsalisburyhenrix, for that commit, should be three:18:15
jsalisburysdhci_pci_fixes, sdhci_intel_mrst_hc1_hc2 and sdhci_intel_byt_sdio18:15
jsalisburywait18:16
henrixjsalisbury: sdhci_intel_mrst_hc1_hc2?18:17
hallynlvcreate/lvremove on trusty kernel on precise host is taking a long time;  acting like it is trying to dd all 50G (creating a snapshot) and not killable18:17
henrixjsalisbury: i'm looking at the original commit (77a0122e0838663795651aa0beb2325156f98c09) and it this is not modified18:17
hallynlooks like udev rules are causing a hang18:18
henrixjsalisbury: ah, maybe you're looking at the '@@ -225,6 +225,7 @@ static const struct sdhci_pci_fixes sdhci_intel_mrst_hc1_hc2 = {' line?18:18
jsalisburyhenrix, sorry, let me check again. 18:18
hallynthis rings a bell.18:18
jsalisburyhenrix, yes, I think that is what I'm doing18:18
jsalisburyhenrix, yeah, sorry to have caused the confusion.  I was looking at the wrong struct in the diff18:20
henrixjsalisbury: uff!  :)18:20
hallyni bet slangasek remembers this...18:21
henrixjsalisbury: anyway, thanks for reviewing.  these sort of mistakes have happen in the past, so...18:21
hallynmaybe udev changelog will jog my memory18:21
jsalisburyhenrix, that commit failed when applying to saucy.  It was due to the move of structs to the header file like you say.  mainline moved some structs to the header file, your 3.11.10.4 moves them back, then Saucy moves them back out.18:23
jsalisburyhenrix, thanks for reviewing and helping un-cross my eyes, heh18:24
henrixjsalisbury: heh.. anyway, its odd saucy has the struct in a different place. i guess a SAUCE patch (probably cherry-picked from 3.12+) has done that18:24
jsalisburyhenrix, yes, a SAUCE patch, cherry-picked from 3.14-rc1: 18:25
jsalisburyhttps://lists.ubuntu.com/archives/kernel-team/2014-January/038073.html18:25
henrixah, ok.  that would explain it :)18:27
hallynhm, was transient.  will wait till it happens again to open a new bug i guess18:28
=== chuck_ is now known as zul
slangasekhallyn: lvcreate/remove being slow doesn't ring a bell to me; there've been issues with udev rules in the past, but I think those were all resolved for precise19:23
hallynslangasek: hm, thanks.  I remember the udev rule thing having to do with watershed;  but don't recall the details or what we fixed.19:24
hallynI guess somehow I ended up having 'lvcreate' race with a udev rule for the lvm lock.  <shrug>  This is a trusty kernel on precise host, btw.19:25
hallyni'll file a bug if/when it happens again19:25
=== zz_mwhudson is now known as mwhudson
jsalisburybjf, sconklin, I finished applying the 3.11.10.4 updates to Saucy.  However, I'm getting an abi check error, when performing a test build:  20:14
jsalisburyhttps://pastebin.canonical.com/104737/20:14
sconklinlooking20:15
bjfjsalisbury, is there a "start new release" after the previous release and before your changes?20:15
jsalisburybjf, checking20:15
sconklinyeah, what he said20:15
hvn2question: how can I verify beforehand if a new uImage has a wrong crc ?20:16
jsalisburybjf, sconklin It does'nt look like there was a "Start new release".  The last one was before Ubuntu-3.11.0-17.31.  Here is the tip of the saucy tree I used:20:20
jsalisburyhttps://pastebin.canonical.com/104739/20:20
sconklinjsalisbury: right.20:20
bjfjsalisbury, ok, run maint-start-new-release in that tree then rebase that down to just after the commit for the last release20:20
jsalisburysconklin, bjf, ok, got it.  Thanks!20:21
sconklinThat's something you didn't know to look for. There should always be a start-new-release right after a release on master-next, but you have to wait to do it until the packages are built.20:21
sconklinsometimes some patches get applied to master-next in that window, and you have to go back and reorder things in master-next to 'insert' a start new release commit20:22
jsalisburysconklin, I knew to look for it when turning the crank, but not while applying stable updates20:22
sconklinack, ok20:22
jsalisburysconklin, now I know :-D20:22
bjfjsalisbury, it's all about bumping the abi20:23
jsalisburybjf, abi == "aggravating binary interface"20:24
jsalisbury:-)20:24
jsalisburybjf, sconklin, Hmm, do I need to do the 'start new release' before applying the stable updates?  It does'nt seem like it.20:42
bjfjsalisbury, no20:42
jsalisburybjf, I'm getting an error doing the rebase.  I'll see if I can figure it out20:43
=== SpamapS_ is now known as SpamapS
sconklinhey joe, would you like for me to put the startnewrelease on and rebase that so you have a clean tree with the right ABI files to apply the upstream?20:58
sconklinjsalisbury: ^^20:59
jsalisburysconklin, I don't think so.  I'll see if I can get it to work.  It will help me learn :-)  I'll ask you to do it if I can't get it to work.21:03
sconklincool, that's probably the right answer21:04
jsalisburysconklin, I'm going to grab some lunch, then start it from scratch to help memorize the steps.  I'll let you know if I get hung up.21:04
sconklinok, np21:05
jsalisburysconklin, thanks for the help!21:05
bjfsbeattie, did you see the earlier comment about the security test failing still?21:48
sbeattiebjf: I did not, sorry.21:48
bjfsbeattie, np21:48
bjfsbeattie, looks like we are now running the latest tests21:49
bjfsbeattie, plars has a test run he just recently did on saucy and it failed21:49
sbeattiebjf: got a pointer to the failure? I can never navigate the forest of jenkins servers you guys have21:50
bjfplars, ^21:50
plarssbeattie: https://jenkins.qa.ubuntu.com/job/sru_kernel-saucy-virtual_amd64-kvm-virtual/93/21:51
plarssbeattie: on the plus side, it does seem to be working ok on precise21:57
sbeattieplars: this looks like the same issue: either the QRT script is out of date, or else /usr/share/doc/linux-image-3.11.0-17-generic/changelog.Debian.gz doesn't contain a reference to CVE-2013-292922:00
plarssbeattie: bjf just made some changes to have it show which rev of the qrt tests its running, I need to update our copy and rerun, but given that it's pulling from the same source that our precise tests are pulling from (which now work) I think we have an updated qrt now22:02
sbeattiewell, it's the same failure, where a test is succeeding where it wasn't expected to, and the reason it's not expecting it to is because the kernel version is between a specific range and the test can't find that CVE number in the kernel's changelog.22:04
sbeattieplars: ohhhhh. the changelog gets reset each go around. Okay, I'm just going to assume that CVE-2013-2929's been fixed everywhere.22:31
plarssbeattie: I'm not sure I follow22:34
plarssbeattie: this is something you are scanning for in that changelog with qrt?22:34
sbeattieyes, I was changing the expectation of the test based on whether the kernel was claiming it had been fixed.22:36
sbeattieI'm ripping that out now, and will expect the test to pass.22:37
=== psivaa is now known as psivaa-afk
sbeattieplars, bjf: rev 2119 of QRT should cause things not to fail anymore.22:40
sbeattieplars: the saucy kernel should not be blocked on that test-kernel-security failure, if you don't want to re-run tests.22:40
plarssbeattie: ok, that's all that's failing on it so I'll mark it good then22:41
plarsbjf: any further thoughts on the btrfs test at https://bugs.launchpad.net/kernel-sru-workflow/regression-testing/+bug/1267469? Given that the proc maps thing is resolved and the config_debug_rodata is a known issue, I think we can mark that one good as long as you are comfortable that the btrfs test failure was just a timing thing?22:42
ubot2`Launchpad bug 1267469 in Kernel SRU Workflow regression-testing "linux-ti-omap4: 3.2.0-1443.62 -proposed tracker" [Medium,In progress]22:42
miseria"la verdadera felicidad de un ser humano, se logra cuando deja de ser esclavo, de la avaricia y la codicia" bienvenidos: http://castroruben.com *temo_a_un_ser_sin_rival*23:44

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