kernel bug when installing clamav-freshclam

Bug #124141 reported by Ralf Hildebrandt
122
Affects Status Importance Assigned to Milestone
linux-source-2.6.22 (Ubuntu)
Fix Released
High
Kyle McMartin

Bug Description

Binary package hint: linux-image-2.6.22-7-generic

When upgrading clamav-freshclam, the kernel would throw a bug:

[ 331.720000] ppdev: user-space parallel port driver
[ 350.188000] hub 3-0:1.0: PM: resume from 2, parent usb3 still 2
[ 572.384000] BUG: unable to handle kernel NULL pointer dereference at virtual address 00000030
[ 572.384000] printing eip:
[ 572.384000] c018870a
[ 572.384000] *pde = 00000000
[ 572.384000] Oops: 0000 [#1]
[ 572.384000] SMP
[ 572.384000] Modules linked in: binfmt_misc cpufreq_ondemand cpufreq_userspace cpufreq_powersave ppdev lp video sbs button dock battery container ac asus_acpi dm_crypt dm_mod powernow_k8 freq_table snd_intel8x0 snd_ac97_codec pcmcia ac97_bus snd_pcm_oss snd_mixer_oss ipv6 snd_pcm joydev bcm43xx ieee80211softmac ieee80211 ieee80211_crypt yenta_socket rsrc_nonstatic pcmcia_core parport_pc parport snd_seq_dummy pcspkr snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device psmouse k8temp serio_raw shpchp pci_hotplug snd usblp soundcore snd_page_alloc i2c_nforce2 i2c_core amd64_agp agpgart af_packet evdev ext3 jbd mbcache ide_cd cdrom ide_disk 8139too ata_generic libata scsi_mod usbhid hid 8139cp mii amd74xx ide_core ehci_hcd ohci_hcd usbcore thermal processor fan capability commoncap
[ 572.384000] CPU: 0
[ 572.384000] EIP: 0060:[<c018870a>] Not tainted VLI
[ 572.384000] EFLAGS: 00010202 (2.6.22-7-generic #1)
[ 572.384000] EIP is at permission+0x2a/0x120
[ 572.384000] eax: 00000000 ebx: d1ad4990 ecx: ce1d1f04 edx: 00006f6c
[ 572.384000] esi: fffffff3 edi: 00000002 ebp: ce1d1f04 esp: ce1d1ee8
[ 572.384000] ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
[ 572.384000] Process touch (pid: 7027, ti=ce1d0000 task=cdb88520 task.ti=ce1d0000)
[ 572.384000] Stack: d14ca838 fffffff3 00000000 ce092600 c01a0e55 c016d678 d1ad4990 ce092600
[ 572.384000] ffffff9c ce1d1f30 00000000 c017f595 ce092600 00000000 00008941 401090e4
[ 572.384000] c46d6630 cf18a380 00000424 cc8f5400 00000000 00000000 deeb213c 00000002
[ 572.384000] Call Trace:
[ 572.384000] [<c01a0e55>] do_utimes+0x1c5/0x1f0
[ 572.384000] [<c016d678>] __handle_mm_fault+0x288/0xb00
[ 572.384000] [<c017f595>] nameidata_to_filp+0x35/0x40
[ 572.384000] [<c02f482a>] do_page_fault+0x37a/0x680
[ 572.384000] [<c01a0f62>] sys_utimensat+0x22/0xa0
[ 572.384000] [<c02f44b0>] do_page_fault+0x0/0x680
[ 572.384000] [<c01041d2>] sysenter_past_esp+0x6b/0xa9
[ 572.384000] =======================
[ 572.384000] Code: 00 83 ec 10 89 7c 24 08 89 d7 f7 c7 02 00 00 00 89 1c 24 89 c3 89 6c 24 0c 89 cd 89 74 24 04 0f b7 50 6a 74 1c 8b 80 98 00 00 00 <f6> 40 30 01 0f 85 83 00 00 00 f6 83 3c 01 00 00 08 75 73 8d 76
[ 572.384000] EIP: [<c018870a>] permission+0x2a/0x120 SS:ESP 0068:ce1d1ee8

What I did:
* I rebooted and forced a full fsck (which completed without errors)
* I made sure the kernel was not tainted (specifically by not using the nvidia module)
* Then I tried :
  $ sudo apt-get upgrade
  and got:
  Do you want to continue [Y/n]? y
  Setting up clamav-freshclam (0.90.3-1ubuntu3) ...
  and then the oops I posted above

Tags: metabug gutsy
Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

I rebooted into 2.6.20-16-lowlatency, the kernel from feisty and clamav-freshclam would install with no hassle.

Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it, because your description doesn't yet have enough information.

Please include the following additional information using the kernel which bugs, if you have not already done so (please pay attention to lspci's additional options), as required by the Ubuntu Kernel Team:
1. Please include the output of the command "uname -a" in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command "dmesg > dmesg.log" and attach the resulting file "dmesg.log" to this bug report.
3. Please run the command "lspci -vvnn > lspci-vvnn.log" and attach the resulting file "lspci-vvnn.log" to this bug report.

For your reference, the full description of procedures for kernel-related bug reports is available at [WWW] http://wiki.ubuntu.com/KernelTeamBugPolicies. Thanks in advance!

Changed in linux-source-2.6.22:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

$ uname -a
Linux kasbah 2.6.22-7-generic #1 SMP Mon Jun 25 17:33:14 GMT 2007 i686 GNU/Linux

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

lspci-vvnn.log

Revision history for this message
Andrea Bravetti (andreabravetti) wrote :

i'm having the same problem and i'm on gutsy too...

root@kubra:~# uname -a
Linux kubra 2.6.22-7-generic #1 SMP Mon Jun 25 17:33:14 GMT 2007 i686 GNU/Linux

[ 9020.136000] BUG: unable to handle kernel paging request at virtual address 01a09b78
[ 9020.136000] printing eip:
[ 9020.136000] c018870a
[ 9020.136000] *pde = 00000000
[ 9020.136000] Oops: 0000 [#8]
[ 9020.136000] SMP
[ 9020.136000] Modules linked in: appletalk ax25 ipx p8023 vmnet(P) vmblock(P) vmmon(P) binfmt_misc rfcomm l2cap i915 drm ipv6 video sbs button dock battery container ac asus_acpi acpi_cpufreq cpufreq_userspace cpufreq_stats cpufreq_powersave cpufreq_ondemand freq_table cpufreq_conservative usbserial af_packet fuse parport_pc lp parport snd_hda_intel snd_pcm_oss snd_pcm snd_mixer_oss joydev pcmcia snd_seq_dummy hci_usb snd_seq_oss bluetooth sdhci snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd mmc_core sky2 psmouse yenta_socket rsrc_nonstatic pcmcia_core soundcore intel_agp snd_page_alloc iTCO_wdt iTCO_vendor_support serio_raw shpchp pci_hotplug agpgart evdev ext3 jbd mbcache sd_mod usbhid hid sg sr_mod cdrom ehci_hcd ahci ata_piix uhci_hcd usbcore ata_generic libata scsi_mod thermal processor fan capability commoncap
[ 9020.136000] CPU: 1
[ 9020.136000] EIP: 0060:[<c018870a>] Tainted: P VLI
[ 9020.136000] EFLAGS: 00210202 (2.6.22-7-generic #1)
[ 9020.136000] EIP is at permission+0x2a/0x120
[ 9020.136000] eax: 01a09b48 ebx: f3c9bf68 ecx: d2b6bf04 edx: 00006f6c
[ 9020.136000] esi: fffffff3 edi: 00000002 ebp: d2b6bf04 esp: d2b6bee8
[ 9020.136000] ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
[ 9020.136000] Process touch (pid: 19281, ti=d2b6a000 task=f2816f60 task.ti=d2b6a000)
[ 9020.136000] Stack: f3d07650 fffffff3 00000000 db681300 c01a0e55 c016d678 f3c9bf68 db681300
[ 9020.136000] ffffff9c d2b6bf30 00000000 c017f595 db681300 00000000 00008941 b7e820e4
[ 9020.136000] d241ab00 d5f42e00 00000a08 dd477b7c 00000000 00000000 f7c17ac4 00000002
[ 9020.136000] Call Trace:
[ 9020.136000] [<c01a0e55>] do_utimes+0x1c5/0x1f0
[ 9020.136000] [<c016d678>] __handle_mm_fault+0x288/0xb00
[ 9020.136000] [<c017f595>] nameidata_to_filp+0x35/0x40
[ 9020.136000] [<c02f482a>] do_page_fault+0x37a/0x680
[ 9020.136000] [<c01a0f62>] sys_utimensat+0x22/0xa0
[ 9020.136000] [<c02f44b0>] do_page_fault+0x0/0x680
[ 9020.136000] [<c01041d2>] sysenter_past_esp+0x6b/0xa9
[ 9020.136000] [<c02f0000>] iw_handler_get_private+0x40/0x80
[ 9020.136000] =======================
[ 9020.136000] Code: 00 83 ec 10 89 7c 24 08 89 d7 f7 c7 02 00 00 00 89 1c 24 89 c3 89 6c 24 0c 89 cd 89 74 24 04 0f b7 50 6a 74 1c 8b 80 98 00 00 00 <f6> 40 30 01 0f 85 83 00 00 00 f6 83 3c 01 00 00 08 75 73 8d 76
[ 9020.136000] EIP: [<c018870a>] permission+0x2a/0x120 SS:ESP 0068:d2b6bee8

bye,
Andrea

Revision history for this message
Andrea Bravetti (andreabravetti) wrote :
Changed in linux-source-2.6.22:
status: Incomplete → Confirmed
Changed in linux-source-2.6.22:
assignee: nobody → ubuntu-kernel-team
status: Confirmed → Triaged
Revision history for this message
Andrea Bravetti (andreabravetti) wrote :

I replaced /usr/bin/touch with self-made touch, and it work:
now clamav-freshclam install just fine (and it seems to work).

but the bug remain...

somebody know if it can be a bug related to touch and not to the kernel?

bye,
Andrea

Revision history for this message
grendelkhan (scottricketts) wrote :

Get the same crash on gutsy as well. I opened the deb and installed things myself just to get the functionality but having this package half installed stinks.

Revision history for this message
Andrea Bravetti (andreabravetti) wrote :

grendelkhan, you can try replacing /usr/bin/touch with something like this:

-------------
#!/bin/bash
printf "" >> $1
-------------

it should work...

Don't forget to restore the original "touch" after "apt-get upgrade"...

bye,
Andrea

Revision history for this message
grendelkhan (scottricketts) wrote : Re: [Bug 124141] Re: kernel bug when installing clamav-freshclam

I saw you put that in your notes, tried it and it worked like a champ!

Thanks so much for the workaround!

On 7/11/07, Andrea Bravetti <email address hidden> wrote:
>
> grendelkhan, you can try replacing /usr/bin/touch with something like
> this:
>
> -------------
> #!/bin/bash
> printf "" >> $1
> -------------
>
> it should work...
>
> Don't forget to restore the original "touch" after "apt-get upgrade"...
>
> bye,
> Andrea
>
> --
> kernel bug when installing clamav-freshclam
> https://bugs.launchpad.net/bugs/124141
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Scott Ricketts

"Woe to those who make unjust laws, to those who issue oppressive decrees,
to deprive the poor of their rights and withhold justice from the oppressed
of my people, making widows their prey and robbing the fatherless. What
will you do on the day of reckoning, when disaster comes from afar? To
whom will you run for help? Where will you leave your riches?" Isaiah
10:1-3

"The solution to Iraq — an Iraq that can govern itself, sustain itself and
defend itself — is more than a military mission. Precisely the reason why I
sent more troops into Baghdad." George W. Bush, Tue Apr 3 2007

Revision history for this message
Chris Cheney (ccheney) wrote :

Just wanted to note that I see this issue as well on my home machine, its turned off this week while I am at the gutsy sprint, but I can let someone have access if they need it.

Chris

Revision history for this message
Scott Kitterman (kitterman) wrote :

2.6.22-8.16 was just published within the last day and may resolve this problem. After the lastest kernel upgrade is installed, please report if the problem persists.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Bumping to High since I duped a High bug to this one.

Changed in linux-source-2.6.22:
importance: Medium → High
Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

This seems to be fixed in linux-image-2.6.22-8-generic 2.6.22-8.16. Today I tried updating clamv, and again it would cause the same error. I then upgraded to linux-image-2.6.22-8-generic, rebooted and after that I was able to install/upgrade clamav.

Changed in linux-source-2.6.22:
assignee: ubuntu-kernel-team → kyle
status: Triaged → Fix Released
Revision history for this message
Pavel Mlčoch (pavkamlc) wrote :
Download full text (4.7 KiB)

Ive similar problem when I upgrade update-manager:

pavka@pavka:~$ uname -a
Linux pavka 2.6.22-10-xen #1 SMP Wed Aug 22 09:44:46 GMT 2007 i686 GNU/Linux
pavka@pavka:~$ cat /var/log/syslog

...

Sep 6 09:07:00 pavka kernel: [87428.668308] ------------[ cut here ]------------
Sep 6 09:07:00 pavka kernel: [87428.668315] kernel BUG at /build/buildd/linux-source-2.6.22-2.6.22/debian/build/custom-source-xen/arch/i386/mm/hypervisor.c:186!
Sep 6 09:07:00 pavka kernel: [87428.668321] invalid opcode: 0000 [#1]
Sep 6 09:07:00 pavka kernel: [87428.668324] SMP
Sep 6 09:07:00 pavka gdm[7985]: WARNING: bind: Address already in use
Sep 6 09:07:00 pavka gdm[7985]: WARNING: bind: Address already in use
Sep 6 09:07:00 pavka gdm[7985]: WARNING: Could not create socket!
Sep 6 09:07:00 pavka kernel: [87428.668327] Modules linked in: snd_rtctimer binfmt_misc radeon drm agpgart rfcomm hidp l2cap bridge af_packet nfsd exportfs lockd sunrpc nbd ppdev capifs ac sbs container video button dock battery dm_crypt w83627ehf i2c_isa eeprom fuse sbp2 ieee1394 parport_pc lp parport snd_bt87x bt878 snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy tuner snd_seq_oss snd_seq_midi snd_rawmidi serio_raw psmouse snd_seq_midi_event k8temp serial_core pcspkr snd_seq xpad hci_usb bluetooth snd_timer snd_seq_device bttv snd video_buf ir_common compat_ioctl32 shpchp pci_hotplug i2c_algo_bit soundcore i2c_nforce2 btcx_risc tveeprom videodev v4l2_common v4l1_compat snd_page_alloc i2c_core ipv6 tsdev evdev ext3 jbd mbcache sg sd_mod usbhid hid usb_storage ide_cd cdrom libusual floppy sata_nv amd74xx forcedeth ata_generic libata scsi_mod ehci_hcd ohci_hcd usbcore raid10 raid456 xor raid1 raid0 multipath linear md_mod dm_mirror dm_snapshot dm_mod thermal processor fan capability commoncap fbc
Sep 6 09:07:00 pavka kernel: n tileblit font bitblit softcursor
Sep 6 09:07:00 pavka kernel: [87428.668459] CPU: 0
Sep 6 09:07:00 pavka kernel: [87428.668460] EIP: 0061:[xen_pgd_pin+96/112] Not tainted VLI
Sep 6 09:07:00 pavka kernel: [87428.668461] EFLAGS: 00010282 (2.6.22-10-xen #1)
Sep 6 09:07:00 pavka kernel: [87428.668471] EIP is at xen_pgd_pin+0x60/0x70
Sep 6 09:07:00 pavka gdm[15766]: WARNING: Název serveru '0' nenalezen; používám standardní server
Sep 6 09:07:00 pavka kernel: [87428.668475] eax: ffffffea ebx: ed111ee4 ecx: 00000001 edx: 00000000
Sep 6 09:07:00 pavka kernel: [87428.668480] esi: 00007ff0 edi: 00000000 ebp: e62a7030 esp: ed111ee4
Sep 6 09:07:00 pavka kernel: [87428.668484] ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0069
Sep 6 09:07:00 pavka kernel: [87428.668488] Process udevd (pid: 3342, ti=ed110000 task=c1d14a70 task.ti=ed110000)
Sep 6 09:07:00 pavka kernel: [87428.668492] Stack: 00000002 0009ade0 25be0000 004b7c00 d1821a14 c0114b8f e86c2740 c0114bc2
Sep 6 09:07:00 pavka kernel: [87428.668502] 01200011 c0120b86 d3568820 b7e00000 00000000 c055f774 e86c2774 e62a70ec
Sep 6 09:07:00 pavka kernel: [87428.668513] ed111fb8 bfbb0944 00000000 cd451740 e62a7030 e86c2740 c055f740 d1821a20
Sep 6 09:07:00 pavka kernel: [87428.668523] Call Trace:
Sep 6 09:07:00 pavka kernel: [87428.668538] [__pgd_pin+47/64] __pg...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.