Hi,

I'm experiencing the same error with the newest kernel. I have this
issue when apparmor is reloading apache rules.


= Changed Local Profiles =

The following local profiles were changed.  Would you like to save them?

 [1 - /usr/sbin/apache2]

(S)ave Changes / [(V)iew Changes] / Abo(r)t
Writing updated profile for /usr/sbin/apache2.


It never returns the prompt, and the follow appears in /var/log/messages:


Feb 21 23:05:49 kernel: [ 4425.325653] CPU 0:
Feb 21 23:05:49 kernel: [ 4425.325655] Modules linked in: af_packet tun ipv6 
iptable_filter ip_tables x_tables quota_v2 parport_pc lp parport loop container 
button iTCO_wdt iTCO_vendor_support ev
dev pcspkr shpchp pci_hotplug ext3 jbd mbcache sg sr_mod cdrom sd_mod 
ata_generic usbhid hid ata_piix pata_acpi libata scsi_mod tg3 ehci_hcd uhci_hcd 
usbcore raid10 raid456 async_xor async_memcpy async_t
x xor raid1 raid0 multipath linear md_mod thermal processor fan fbcon tileblit 
font bitblit softcursor fuse
Feb 21 23:05:49 kernel: [ 4425.325699] Pid: 16690, comm: apparmor_parser Not 
tainted 2.6.24-23-server #1
Feb 21 23:05:49 kernel: [ 4425.325702] RIP: 0010:[<ffffffff80354f49>]  
[<ffffffff80354f49>] __write_lock_failed+0x9/0x20
Feb 21 23:05:49 kernel: [ 4425.325716] RSP: 0018:ffff81000bec3e58  EFLAGS: 
00000287
Feb 21 23:05:49 kernel: [ 4425.325718] RAX: ffff810000fa3c00 RBX: 
ffff81003ec05080 RCX: ffff81000ff6600c
Feb 21 23:05:49 kernel: [ 4425.325720] RDX: ffffc20000516128 RSI: 
0000000000000008 RDI: ffff81003ec050bc
Feb 21 23:05:49 kernel: [ 4425.325723] RBP: ffffc2000050f000 R08: 
000000000000066f R09: 0000000000000be2
Feb 21 23:05:49 kernel: [ 4425.325725] R10: 0000000000000be3 R11: 
ffff81001c3ac000 R12: 0000000000000023
Feb 21 23:05:49 kernel: [ 4425.325728] R13: ffff81000bec3e88 R14: 
ffffffff80338d24 R15: ffffffff8054a829
Feb 21 23:05:49 kernel: [ 4425.325731] FS:  00007f00a3ceb6f0(0000) 
GS:ffffffff805c5000(0000) knlGS:0000000000000000
Feb 21 23:05:49 kernel: [ 4425.325734] CS:  0010 DS: 0000 ES: 0000 CR0: 
000000008005003b
Feb 21 23:05:49 kernel: [ 4425.325736] CR2: 0000000000409fa0 CR3: 
000000000b95e000 CR4: 00000000000006e0
Feb 21 23:05:49 kernel: [ 4425.325738] DR0: 0000000000000000 DR1: 
0000000000000000 DR2: 0000000000000000
Feb 21 23:05:49 kernel: [ 4425.325741] DR3: 0000000000000000 DR6: 
00000000ffff0ff0 DR7: 0000000000000400
Feb 21 23:05:49 kernel: [ 4425.325743]
Feb 21 23:05:49 kernel: [ 4425.325743] Call Trace:
Feb 21 23:05:49 kernel: [ 4425.325751]  [<ffffffff804718ce>] 
_write_lock+0xe/0x10
Feb 21 23:05:49 kernel: [ 4425.325773]  [<ffffffff80338fea>] 
aa_replace_profile+0xca/0x420
Feb 21 23:05:49 kernel: [ 4425.325824]  [<ffffffff80338270>] 
aa_profile_replace+0x40/0x70
Feb 21 23:05:49 kernel: [ 4425.325828]  [<ffffffff802b5a3d>] 
vfs_write+0xed/0x190
Feb 21 23:05:49 kernel: [ 4425.325832]  [<ffffffff802b6143>] sys_write+0x53/0x90
Feb 21 23:05:49 kernel: [ 4425.325838]  [<ffffffff8020c39e>] 
system_call+0x7e/0x83
Feb 21 23:05:49 kernel: [ 4425.325844]


Some background info:

# uname -a
Linux 2.6.24-23-server #1 SMP Mon Jan 26 01:36:05 UTC 2009 x86_64 GNU/Linux

# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz
stepping        : 13
cpu MHz         : 1795.497
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm 
constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl est tm2 ssse3 
cx16 xtpr lahf_lm
bogomips        : 3593.41
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz
stepping        : 13
cpu MHz         : 1795.497
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm 
constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl est tm2 ssse3 
cx16 xtpr lahf_lm
bogomips        : 3591.02
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


# lsmod
Module                  Size  Used by
af_packet              34440  0 
tun                    21504  3 
ipv6                  326024  20 
iptable_filter         11776  0 
ip_tables              31720  1 iptable_filter
x_tables               30728  1 ip_tables
quota_v2               18432  10 
parport_pc             48296  0 
lp                     22084  0 
parport                51340  2 parport_pc,lp
loop                   28676  0 
container              13824  0 
button                 18080  0 
iTCO_wdt               22480  0 
iTCO_vendor_support    12932  1 iTCO_wdt
evdev                  22144  0 
pcspkr                 12160  0 
shpchp                 45340  0 
pci_hotplug            41776  1 shpchp
ext3                  156176  10 
jbd                    64168  1 ext3
mbcache                18560  1 ext3
sg                     48920  0 
sr_mod                 27300  0 
cdrom                  48680  1 sr_mod
sd_mod                 40448  27 
ata_generic            17156  0 
usbhid                 42848  0 
hid                    52160  1 usbhid
ata_piix               31364  23 
pata_acpi              17024  0 
libata                183728  3 ata_generic,ata_piix,pata_acpi
scsi_mod              185528  4 sg,sr_mod,sd_mod,libata
tg3                   131972  0 
ehci_hcd               49164  0 
uhci_hcd               37024  0 
usbcore               177072  4 usbhid,ehci_hcd,uhci_hcd
raid10                 33536  0 
raid456               138272  6 
async_xor              13312  1 raid456
async_memcpy           11776  1 raid456
async_tx               17652  3 raid456,async_xor,async_memcpy
xor                    14352  2 raid456,async_xor
raid1                  33920  0 
raid0                  16640  0 
multipath              18176  0 
linear                 14592  0 
md_mod                 95388  12 raid10,raid456,raid1,raid0,multipath,linear
thermal                26912  0 
processor              48712  1 thermal
fan                    13960  0 
fbcon                  53504  0 
tileblit               11264  1 fbcon
font                   17280  1 fbcon
bitblit                14592  1 fbcon
softcursor             10880  1 bitblit
fuse                   63280  1 

It's Hardy Server edition, all packages uptodate. I've just updated the
kernel today, the machine it up a bit more than 1 hour.

It's a server, so it's double pain. Only reboot helps -- but simple
"reboot" hangs, only "reboot -f -h" works. Or hard reset.

I'd be really grateful if you had some useful comments on this.

Yours,
Kamu

-- 
I'm using 140 apparmor HAT profiles with apache2 and mod_apparmor, when I tried 
to restart apparmor with apparmor_restart the kernel traced out, the process 
hanged, I wasnt even able to kill it with kill -9
https://bugs.launchpad.net/bugs/273928
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to