I'm able to reproduce this on an amd64 guest with the lts-backport-trusty kernel installed, though I get a different signal:
ubuntu@sec-precise-amd64:~/tmp/apparmor-2.7.102/tests/regression/apparmor$ sudo sh -c 'VERBOSE=1 bash mount.sh'
ok: MOUNT (unconfined)
ok: UMOUNT (unconfined)
/home/ubuntu/tmp/apparmor-2.7.102/tests/regression/apparmor/prologue.inc: line 130: 1955 Segmentation fault $testexec "$@" > $outfile 2>&1
Error: mount failed. Test 'MOUNT (confined)' was expected to 'fail'. Reason for failure 'killed by signal 11'
/home/ubuntu/tmp/apparmor-2.7.102/tests/regression/apparmor/prologue.inc: line 130: 1983 Segmentation fault $testexec "$@" > $outfile 2>&1
Error: mount failed. Test 'MOUNT (confined)' was expected to 'fail'. Reason for failure 'killed by signal 11'
umount: /tmp/sdtest.1910-26089-jAP0bK/mountpoint: not mounted
Oddly, it does *not* reproduce on trusty with the trusty kernel. Checking dmesg, there are oops related to the failing tests:
I'm able to reproduce this on an amd64 guest with the lts-backport-trusty kernel installed, though I get a different signal:
ubuntu@ sec-precise- amd64:~ /tmp/apparmor- 2.7.102/ tests/regressio n/apparmor$ sudo sh -c 'VERBOSE=1 bash mount.sh' tmp/apparmor- 2.7.102/ tests/regressio n/apparmor/ prologue. inc: line 130: 1955 Segmentation fault $testexec "$@" > $outfile 2>&1 tmp/apparmor- 2.7.102/ tests/regressio n/apparmor/ prologue. inc: line 130: 1983 Segmentation fault $testexec "$@" > $outfile 2>&1 1910-26089- jAP0bK/ mountpoint: not mounted
ok: MOUNT (unconfined)
ok: UMOUNT (unconfined)
/home/ubuntu/
Error: mount failed. Test 'MOUNT (confined)' was expected to 'fail'. Reason for failure 'killed by signal 11'
/home/ubuntu/
Error: mount failed. Test 'MOUNT (confined)' was expected to 'fail'. Reason for failure 'killed by signal 11'
umount: /tmp/sdtest.
Oddly, it does *not* reproduce on trusty with the trusty kernel. Checking dmesg, there are oops related to the failing tests:
[ 149.340700] type=1400 audit(147992532 2.639:66) : apparmor="STATUS" operation= "profile_ load" profile= "unconfined" name="/ home/ubuntu/ tmp/apparmor- 2.7.102/ tests/regressio n/apparmor/ mount" pid=1951 comm="apparmor_ parser" Ubuntu 1.8.2-1ubuntu2 04/01/2014 ffffffff8133815 c>] [<ffffffff81338 15c>] aa_new_ mount+0x1ec/ 0x3f0 ddbda8 EFLAGS: 00010246 0(0000) GS:ffff88002fc0 0000(0000) knlGS:000000000 0000000 862>] ? do_path_ lookup+ 0x32/0x40 a00>] ? vfs_path_ lookup+ 0x20/0x70 d8d>] apparmor_ sb_mount+ 0x9d/0x110 f56>] security_ sb_mount+ 0x16/0x20 75d>] do_mount+0xcd/0x260 c70>] SyS_mount+0x90/0xe0 25d>] system_ call_fastpath+ 0x1a/0x1f 15c>] aa_new_ mount+0x1ec/ 0x3f0 2.711:67) : apparmor="STATUS" operation= "profile_ replace" profile= "unconfined" name="/ home/ubuntu/ tmp/apparmor- 2.7.102/ tests/regressio n/apparmor/ mount" pid=1978 comm="apparmor_ parser" Ubuntu 1.8.2-1ubuntu2 04/01/2014 ffffffff8133815 c>] [<ffffffff81338 15c>] aa_new_ mount+0x1ec/ 0x3f0 bdfda8 EFLAGS: 00010246 0(0000) GS:ffff88002fc0 0000(0000) knlGS:000000000 0000000 862>] ? do_path_ lookup+ 0x32/0x40 a00>] ? vfs_path_ lookup+ 0x20/0x70 d8d>] apparmor_ sb_mount+ 0x9d/0x110 f56>] security_ sb_mount+ 0x16/0x20 75d>] do_mount+0xcd/0x260 c70>] SyS_mount+0x90/0xe0 25d>] system_ call_fastpath+ 0x1a/0x1f 15c>] aa_new_ mount+0x1ec/ 0x3f0 2.735:68) : apparmor="STATUS" operation= "profile_ remove" profile= "unconfined" name="/ home/ubuntu/ tmp/apparmor- 2.7.102/ tests/regressio n/apparmor/ mount" pid=1990 comm="apparmor_ parser"
[ 149.347436] general protection fault: 0000 [#3] SMP
[ 149.347443] Modules linked in: snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_seq_device psmouse kvm_amd snd_timer serio_raw kvm snd soundcore snd_page_alloc vmwgfx ttm bnep drm mac_hid i2c_piix4 parport_pc ppdev rfcomm lp parport bluetooth floppy pata_acpi
[ 149.347461] CPU: 0 PID: 1955 Comm: mount Tainted: G D 3.13.0-102-generic #149~precise1-
[ 149.347464] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-
[ 149.347480] task: ffff88002b7be000 ti: ffff88002bdda000 task.ti: ffff88002bdda000
[ 149.347482] RIP: 0010:[<
[ 149.347488] RSP: 0018:ffff88002b
[ 149.347490] RAX: 70656c65742f6269 RBX: ffff88002c2cc830 RCX: ffff88002bddbe48
[ 149.347491] RDX: ffff88002d038000 RSI: 0000000000000000 RDI: ffff88002bddbe20
[ 149.347492] RBP: ffff88002bddbe88 R08: ffff88002bddbe50 R09: ffff88002bddbe50
[ 149.347494] R10: ffff88002d03a000 R11: 0000000000000005 R12: ffff88002d038000
[ 149.347495] R13: ffff88002eec0dd0 R14: ffff88002bddbed8 R15: 0000000000000001
[ 149.347509] FS: 00007fe19e83f70
[ 149.347511] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 149.347512] CR2: 00007fe19e2a8e80 CR3: 000000002ab22000 CR4: 00000000000007f0
[ 149.347515] Stack:
[ 149.347517] ffff88002bddbed8 ffff880029944020 0000000000000000 ffff880029dbf120
[ 149.347519] ffff88002bddbdf8 ffffffff811de862 ffff880029944020 0000000000000000
[ 149.347522] 0000000000000000 0000000000000000 ffff88002bddbeb8 ffffffff811dea00
[ 149.347524] Call Trace:
[ 149.347529] [<ffffffff811de
[ 149.347532] [<ffffffff811de
[ 149.347534] [<ffffffff8132e
[ 149.347538] [<ffffffff812f0
[ 149.347542] [<ffffffff811f2
[ 149.347544] [<ffffffff811f2
[ 149.347548] [<ffffffff8177b
[ 149.347549] Code: 8d 4d c8 74 69 f6 43 41 02 0f 84 ac 01 00 00 48 8b 45 a0 31 f6 4c 8d 4d c8 48 8d 4d c0 48 8d 7d 98 4c 89 e2 4d 89 c8 48 8b 40 30 <0f> b7 00 25 00 f0 00 00 3d 00 40 00 00 40 0f 94 c6 0b b3 98 00
[ 149.347569] RIP [<ffffffff81338
[ 149.347571] RSP <ffff88002bddbda8>
[ 149.347574] ---[ end trace 9d8309400bc67aeb ]---
[ 149.413362] type=1400 audit(147992532
[ 149.421641] general protection fault: 0000 [#4] SMP
[ 149.421648] Modules linked in: snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_seq_device psmouse kvm_amd snd_timer serio_raw kvm snd soundcore snd_page_alloc vmwgfx ttm bnep drm mac_hid i2c_piix4 parport_pc ppdev rfcomm lp parport bluetooth floppy pata_acpi
[ 149.421666] CPU: 0 PID: 1983 Comm: mount Tainted: G D 3.13.0-102-generic #149~precise1-
[ 149.421668] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-
[ 149.421671] task: ffff88002c2ec800 ti: ffff88002ebde000 task.ti: ffff88002ebde000
[ 149.421673] RIP: 0010:[<
[ 149.421679] RSP: 0018:ffff88002e
[ 149.421680] RAX: 70656c65742f6269 RBX: ffff88002eefd030 RCX: ffff88002ebdfe48
[ 149.421682] RDX: ffff88002d038000 RSI: 0000000000000000 RDI: ffff88002ebdfe20
[ 149.421683] RBP: ffff88002ebdfe88 R08: ffff88002ebdfe50 R09: ffff88002ebdfe50
[ 149.421685] R10: ffff88002d03a000 R11: 0000000000000005 R12: ffff88002d038000
[ 149.421686] R13: ffff88002eec0fb0 R14: ffff88002ebdfed8 R15: 0000000000000001
[ 149.421700] FS: 00007f5d7ca9e70
[ 149.421702] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 149.421703] CR2: 00007f5d7c507e80 CR3: 0000000029d99000 CR4: 00000000000007f0
[ 149.421706] Stack:
[ 149.421708] ffff88002ebdfed8 ffff8800297f7020 0000000000000000 ffff880029dbf190
[ 149.421711] ffff88002ebdfdf8 ffffffff811de862 ffff8800297f7020 0000000000000000
[ 149.421713] 0000000000000000 0000000000000000 ffff88002ebdfeb8 ffffffff811dea00
[ 149.421715] Call Trace:
[ 149.421720] [<ffffffff811de
[ 149.421735] [<ffffffff811de
[ 149.421738] [<ffffffff8132e
[ 149.421741] [<ffffffff812f0
[ 149.421745] [<ffffffff811f2
[ 149.421748] [<ffffffff811f2
[ 149.421752] [<ffffffff8177b
[ 149.421753] Code: 8d 4d c8 74 69 f6 43 41 02 0f 84 ac 01 00 00 48 8b 45 a0 31 f6 4c 8d 4d c8 48 8d 4d c0 48 8d 7d 98 4c 89 e2 4d 89 c8 48 8b 40 30 <0f> b7 00 25 00 f0 00 00 3d 00 40 00 00 40 0f 94 c6 0b b3 98 00
[ 149.421772] RIP [<ffffffff81338
[ 149.421775] RSP <ffff88002ebdfda8>
[ 149.421777] ---[ end trace 9d8309400bc67aec ]---
[ 149.439324] type=1400 audit(147992532