/srv/irclogs.ubuntu.com/2005/09/22/#ubuntu-kernel.txt

=== zookofamilytime is now known as zooko
=== jorgp3 [n=jorgp@bnet-dial-47.bartnet.net] has joined #ubuntu-kernel
=== crimsun [n=crimsun@sh.nu] has joined #ubuntu-kernel
persiaI'm trying to track down Malone bug #379.  The reporter indicates that when a USB drive is attached to the system, it fails to mount, and in the error message is the partition map.  I've encountered this with my own /dev/hdc1 (/boot) and suspect a kernel issue rather than an issue with gnome-volume-manager, but wanted to solicit confirmation from someone who understood the kernel better than I.03:34
=== lamont [n=lamont@15.238.5.82] has joined #ubuntu-kernel
=== persia [n=persia@p3101-ipbf412marunouchi.tokyo.ocn.ne.jp] has joined #ubuntu-kernel
fabbioneBenC: ping?06:12
BenCpong06:13
fabbioneBenC: it is indeed a security patch that changes ABI on sparc06:14
fabbione    - Add patch stolen-from-head_CAN-2005-2490.dpatch.06:14
fabbionethis on06:14
fabbionee06:14
fabbione-extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, unsigned char *,06:14
fabbione+extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *, unsigned char *,06:14
fabbione                int);06:14
BenCthat wasn't from me, was it?06:14
fabbioneno no06:15
fabbioneit was from upstream to fix a CAN06:15
BenCwhere did it come from?06:15
fabbionewhat i don't understand yet is why it does affect sparc only06:15
fabbioneBenC: upstream crack via pitti06:15
fabbioneeither the patch is not complete06:15
fabbioneor i am missing something obvious06:16
fabbioneiirc amd64 uses CONFIG_COMPAT06:16
fabbionethat should pull it net/compat.h too06:16
fabbionebut it doesn't break the abi06:16
fabbioneit's not a big deal06:17
fabbionewe can workaround it easily06:17
fabbionenobody run sparc except me and a few peoplw06:17
fabbionepeople even06:17
fabbioneso even if we change the abi without bumping it06:17
fabbioneit's not a big effect like killing i38606:18
BenCplus, it's an unsupported arch, and I don't think there are any external modules for it06:18
BenCok, odd though06:18
BenCamd64 and ppc64 should be pulling in compat layer06:18
fabbionei am pretty sure they do06:19
fabbionebut than.. why didn't they get the abi change?06:19
BenCnot sure, I checked the ppc64 directly06:19
BenCdid a compile here06:19
fabbionearch/sparc64/kernel/sparc64_ksyms.c:#include <net/compat.h>06:20
fabbionearch/sparc64/kernel/sys_sunos32.c:#include <net/compat.h>06:20
fabbionearch/sparc64/solaris/socket.c:#include <net/compat.h>06:20
BenCI did an 8.12 compile for amd64 abi too, so the buildd would have failed with 8.13 auto build06:20
fabbionenope06:20
fabbioneit's only sparc using it06:20
fabbionenet/compat.c:#include <net/compat.h>06:20
fabbionenet/core/scm.c:#include <net/compat.h>06:20
fabbionenet/socket.c:#include <net/compat.h>06:20
fabbionethat explain...06:21
fabbioneso for net/compat.h just include net/sock.h06:22
fabbioneit's a sparc only change that won't hurt anybody06:22
fabbionei am going to give you the new ABI files soon06:22
fabbionethat we will need to put in the 8.13 directory06:22
fabbioneso that 8.14 will match06:22
BenCok06:22
fabbionebut i would like to test build 8.14 before you release06:23
BenCno problem06:23
fabbioneyou need to tell me when it is ready for that :)06:23
BenCshould be early next week06:30
fabbioneok..  i am checking out so i can add stuff directly if you want me to06:32
fabbionein a few hours i should get the new workstations :)06:33
fabbioneX again!06:33
fabbioneworking on console isn't exactly my favourite when i could have 3 heads :)06:34
persiaI'm tracking down an issue with Malone bug #379.  This is a report that sometimes usb drives do not mount.  I have experienced this problem on an IDE drive on my workstation with the same error message.  This behavior is new to Breezy: Hoary did not have this issue, and the Hoary livecd does not today.  Would anyone be willing to verify for me whether this is a kernel or userspace bug?07:03
fabbionepersia: full url to the bug pleasE?07:05
persiafabbione: https://launchpad.net/malone/bugs/379.  This does not include my local experience with /dev/hdc1.07:11
fabbioneuserland problem07:12
fabbionethe dmesg shows clearly that the kernel has recognized the device07:12
fabbioneApr 13 10:18:57 localhost scsi.agent[19294] : disk at /devices/pci0000:00/0000:00:0c.0/usb1/1-2/1-2:1.0/host5/target5:0:0/5:0:0:007:13
fabbionethis shows that the kernel did inform userland about the new device07:13
fabbioneafter that it's not kernel business anymore07:13
persiafabbione: My local experience with mount is that when it works it is silent, and when it fails, the /dev/scsi/host5/bus0/target0/lun0: p1 (or in my case /dev/ide/...) line prints to console.  Is this just userland failing to catch the report?07:14
fabbionepossibly07:15
fabbioneit depends from the error07:15
fabbioneyour problem might not be related to 379 at all07:16
persiaFor me, I get no error reported through dmesg: just many repeats of "/dev/ide/host0/bus1/target0/lun0: p1" with timestamps.  It may not be related, but when it was first discussed on ubuntu-bugs, it was suggested I ask here, both about the bug, and about my issue, and whether they were related.07:17
persiaJust for fun, my latest run of `sudo mount /boot` generated the following in dmesg "[ 9297.537247]   /dev/ide/host0/bus1/target0/lun0: p1".07:19
fabbionepersia: i need to see the full dmesg07:23
fabbionethat kind of msg is in dmesg too07:23
persia /join #ubuntu07:23
persiasorry: misplaced space...looking for pastebibn...07:24
fabbioneBenC: i committed the sparc fixes to baz. i still need to hack the abi files07:25
fabbionewaiting to complete the build07:25
persiaFull dmesg is available from http://paste.ubuntulinux.nl/2243.  The tun/tap is from a vpnc run earlier.07:25
fabbionepersia: what device is connected to hdc ?07:29
persiaIt's an IDE->CF converter with a flash card installed.07:29
persiaThe manufacturer claims no drivers are required, regardless of OS.07:30
fabbioneso you have /boot on the flash?07:31
fabbionein theory there is no need of any driver.. that's correct..07:31
persiaYep.  /boot is on flash.  Worked perfectly under Hoary.  Problems started around 2.6.12-4-?, but I don't remember exactly.  Hoary livecd works perfectly today.07:31
fabbionelivecd doesn't use /boot from flash..07:32
fabbionebut the machine boots fine with that setup, right?07:32
fabbionei mean.. you can boot and you can mount /boot ?07:32
persiaNo, but the livecd can mount the drive every time.  With current Breezy I have success about 1 time in 10.07:32
fabbioneoh i see...07:32
fabbionedoes the boot stop because it cannot mount /boot, right?07:33
persiaThe machine boots fine, and /boot rarely mounts.  I usually go through a cycle of `ls /boot`, `sudo mount ./boot` to get it to mount.07:33
fabbioneok07:33
fabbionecan you try something for me?07:33
persiaSure.  What shall I try?07:33
fabbioneyou first need to boot in breezy07:34
persiaDone.  Shall I reboot?07:34
fabbioneno07:34
fabbionenot yet :)07:34
fabbionegive me a second that i need to search what you need to change exactly.07:34
fabbioneas root go to /usr/sbin07:35
fabbionecp mkinitramfs mkinitramfs.backup07:35
fabbioneedit mkinitramfs07:35
fabbionemeh no07:35
fabbionesorry.. wrong file :)07:35
persia`sudo su -`; `cd /usr/sbin`; `cp mkinitramfs mkinitramfs.backup`.  OK.  deleting the backup...07:36
fabbionecd /usr/share/initramfs-tools/scripts07:36
fabbionecp functions functions.backup07:36
fabbione(just in case :)07:36
persiaOK.07:37
fabbioneedit functions07:37
fabbionego to line 22607:37
persiaError: no "edit" mailcap rules found for type "application/*"07:37
fabbioneand look for ide_boot_events07:37
persiaI'm using vi instead.07:37
fabbioneyeah edit = use your favourite text editor :)07:37
fabbionevi is fine ;)07:37
fabbionearound line 22607:38
persiaide_boot_events() { [ -e /proc/ide ]  || return ...07:38
fabbioneide_boot_events07:38
fabbionesecond.. i have an old file..07:38
persiaI'm on line 146 on the current file.07:39
fabbione226 please07:39
persiaThere's also an entry on line 226.07:39
persia226 it is.07:39
fabbionethe line after ide_boot_events07:40
fabbioneadd sleep 1007:40
fabbioneso that looks like:07:40
persiaDone.07:40
fabbione        ide_boot_events07:40
fabbione        sleep 1007:40
fabbione        scsi_boot_events07:40
persiaI have a space between the sleep line and the scsi_boot_events line.  It shouldn't matter, should it?07:41
fabbioneno it doesn't matter07:41
fabbionethan as root:07:41
persiadpkg-reconfigure linux-kernel-whatever?07:42
fabbionemkinitramfs -o /boot/initrd.img-`uname -r` `uname -r`07:42
persiaAh.  Processing in the same root session...07:42
fabbioneyou need to have /boot mounted to do that07:43
persiaHold on - it'll take me a little while to get it mounted...07:43
fabbionesure07:43
persiaOK.  Mounted.  Remounted RW, mkinitramfs run.07:44
fabbioneonce it is finished, you should reboot the machine07:44
fabbioneand see if it can mount /boot07:45
persiaOK.  It's the machine on which I'm here, so I'll be back in a bit.07:45
fabbionebasically the sleep 10 will give more time to the device to settle after initizializa07:45
fabbioneif this work, i will tell you what to do next07:45
persiaIf the device sometimes doesn't settle for over 10000 seconds, I'm not sure 10 will help, but trying anyway...07:45
fabbioneit will take a few seconds more to boot07:46
=== persia [n=persia@p3101-ipbf412marunouchi.tokyo.ocn.ne.jp] has joined #ubuntu-kernel
persiaThe mount of /boot failed.  BTW, thanks for looking into this now.07:48
fabbionepersia: one second..07:49
fabbionecan you give me ls -las /boot ?07:49
persiaNo worries.  I'm not in a hurry.07:49
fabbionesleep 10 might not be enough...07:50
persiatotal 207:50
persia1 drwxr-xr-x   2 root root 1024 2005-08-21 19:08 .07:50
persia1 drwxr-xr-x  23 root root 1024 2005-09-13 19:37 ..07:50
fabbionewell i need the mounted /boot07:50
fabbionenot the empty one ;)07:50
persiaSometimes it won't mount after a day of settling in, so I'm not sure sleep is the right fix.07:50
fabbionehmm in that case no07:51
persiaOK.  Trying to mount (repeated tries seem to help).07:51
fabbionedid you ever try such device in windows?07:51
fabbioneor with another OS?07:51
persiaThe device worked fine with Hoary, and also when I first tried the Breezy repositories (my joystick requires 2.6.13)07:52
fabbionei see...07:52
fabbioneok last test...07:52
fabbionestill as root07:52
fabbionemkinitrd -o /boot/initrd.img-`uname -r` `uname -r`07:52
fabbioneof course you still need /boot mounted07:53
fabbioneafter that do another reboot07:53
persia`ls -las /boot` output for mounted /boot is in http://paste.ubuntulinux.nl/224507:53
persiaDo you want to look at that before I do the mkinitrd?07:54
fabbionedone.. it's fine07:54
fabbionei had to check only the timestamps on a file07:54
fabbioneplease try the mkinitrd07:54
persiaI don't have mkinitrd installed.  Let me find it in the archive.  Apologies for the delay.07:55
fabbioneapt-get install mkinitrd-tools should do07:55
persiaI use aptitude, but yep...07:55
persiaOK.  initrd created.  Rebooting again.07:56
fabbioneok07:56
=== persia [n=persia@p3101-ipbf412marunouchi.tokyo.ocn.ne.jp] has joined #ubuntu-kernel
persiaWith the initrd, /boot mounted.  Does this indicate a clear userspace issue, or have I just gotten lucky this time?07:59
fabbioneyou need to try it a few times :(08:00
fabbioneif it works it's an issue with initrams08:00
persiaOK.  I'll be back in a while.08:00
fabbioneinitramfs08:00
fabbioneok take your time08:00
=== persia [n=persia@p3101-ipbf412marunouchi.tokyo.ocn.ne.jp] has joined #ubuntu-kernel
persiaI can repeatedly mount /boot with the initrd.  Does this indicate the kernel is happy and userspace is broken?08:05
fabbioneyeps08:06
fabbionenow go to bugzilla.ubuntu.com08:06
fabbionefile a bug to component initramfs-tools08:06
fabbioneexplain all the setup in details08:06
fabbioneand you can copy&paste from this IRC session08:06
fabbioneso that jbailey can look into it asap08:06
fabbioneseverity is major08:07
persiaWell thanks a lot for helping me understand that.  I'm still chasing Malone #379, so I'll try to find someone to hit both of them as part of Bug Day before I add to the 3000+ entries in bugzilla, but it will get documented sometime soon.08:07
fabbione379 is something else tho08:07
fabbionepersia: i still suggest you file a bug asap08:07
fabbionenobody in #ubuntu-bugs other than jbailey will ever upload initramgs08:08
fabbioneinitramfs08:08
fabbionei can tell you that :)08:08
persiaAre you sure?  It looks like the same "mount is not getting the device issue".  When it was discussed about 10 hours ago, we thought they were the same.  I'll put something in bugzilla now just in case, but I'm still not sure it's not something about mount rather than just initramfs.08:08
persiaThanks again :)08:08
fabbionepersia: i am sure it's not the same :)08:08
fabbionebecause the usb is already with a booted system08:09
fabbionethe device is recognized byt the kernel08:09
fabbioneit is not automounted08:09
fabbionein your case, it's not mounted even if it should (given the entry in fstab)08:09
fabbioneso trust me, they are different bugs08:09
persiaOK.  The issue I have with a fresh boot is different, and being logged to bugzilla.  The issue I had mounting it later appears the same to me, but I'm not worried about it, and am trusting you.08:09
fabbionemounting it later is not the same08:10
fabbionethe 379 is talking about automount08:10
fabbionethat is different from mounting it later manually08:10
fabbionebbl08:10
fabbionei need to wake up my wife08:11
fabbionepersia: thanks a lot for your testing08:11
fabbionepretty much appreciated08:11
persiafabbione: It's bugzillla bug  15637, for your reference.  Have a good day.08:15
=== persia [n=persia@p3101-ipbf412marunouchi.tokyo.ocn.ne.jp] has left #ubuntu-kernel []
=== doko_ [n=doko@dsl-084-059-088-000.arcor-ip.net] has joined #ubuntu-kernel
=== jorgp2 [n=jorgp@bnet-dial-122.bartnet.net] has joined #ubuntu-kernel
mjg59Did we get the ndiswrapper amd64 build fix thing sorted?04:36
=== jorgp3 [n=jorgp@bnet-dial2-249.bartnet.net] has joined #ubuntu-kernel
=== airox [n=Gijs`@unaffiliated/airox] has joined #ubuntu-kernel
airoxHi06:41
airoxI seem to have a kernel panic after updating my SMP kernel on breezy preview yesterday. Known issue ?06:42
=== airox [n=Gijs`@unaffiliated/airox] has left #ubuntu-kernel ["Leaving"]
BenCairox: what does the panic say?07:05
BenCdamn, missed him07:05
=== Seveas [n=seveas@seveas.demon.nl] has joined #ubuntu-kernel
=== Seveas [n=seveas@seveas.demon.nl] has joined #ubuntu-kernel
=== Seveas [n=seveas@seveas.demon.nl] has joined #ubuntu-kernel

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