kernel crash when doing `rm -rf /root`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
to make a persistent /root, I'd usually like to rm -rf /root and make it a symlink to somewhere on the harddrive, when I run with the Ubuntu Studio 15.10 (Wily Werewolf) Daily Build, it just crashed the kernel, this crash didn't happen of my last visit ubuntu14.10
http://
then I can reproduce this within VM, with Ubuntu 15.10 daily build (current is 09-Jun-2015), from serial console I run strace \rm -rvf /root and see kernel panic messages:
root@ubuntu-
root@ubuntu-
execve("/bin/rm", ["rm", "-rvf", "/root"], [/* 19 vars */]) = 0
brk(0) = 0x2090000
access(
mmap(NULL, 8192, PROT_READ|
access(
open("/
fstat(3, {st_mode=
mmap(NULL, 123268, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f91151c5000
close(3) = 0
access(
open("/
read(3, "\177ELF\
fstat(3, {st_mode=
mmap(NULL, 3972864, PROT_READ|
mprotect(
mmap(0x7f9114fb
mmap(0x7f9114fb
close(3) = 0
mmap(NULL, 4096, PROT_READ|
mmap(NULL, 4096, PROT_READ|
mmap(NULL, 4096, PROT_READ|
arch_prctl(
mprotect(
mprotect(0x60d000, 4096, PROT_READ) = 0
mprotect(
munmap(
brk(0) = 0x2090000
brk(0x20b1000) = 0x20b1000
open("/
fstat(3, {st_mode=
mmap(NULL, 2919792, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9114930000
close(3) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_
lstat("/", {st_mode=
newfstatat(
openat(AT_FDCWD, "/root", O_RDONLY|
fstat(3, {st_mode=
fcntl(3, F_GETFL) = 0x38800 (flags O_RDONLY|
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 5 entries */, 32768) = 144
close(3) = 0
openat(AT_FDCWD, "/root", O_RDONLY|
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=
fcntl(3, F_GETFL) = 0x38800 (flags O_RDONLY|
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fcntl(3, F_DUPFD, 3) = 4
fcntl(4, F_GETFD) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 5 entries */, 32768) = 144
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
unlinkat(4, ".bashrc", 0) = 0
open("/
fstat(3, {st_mode=
mmap(NULL, 4096, PROT_READ|
read(3, "# Locale name alias data base.\n#"..., 1024) = 1024
read(3, " entries are case independent.
read(3, "R\nko_
read(3, "", 1024) = 0
close(3) = 0
munmap(
open("/
open("/
open("/
open("/
open("/
open("/
open("/
open("/
open("/
open("/
open("/
open("/
fstat(3, {st_mode=
mmap(NULL, 619, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f91151e3000
close(3) = 0
open("/
fstat(1, {st_mode=
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_
mmap(NULL, 4096, PROT_READ|
write(1, "removed \342\200\
) = 28
unlinkat(4, ".profile", 0) = 0
write(1, "removed \342\200\
) = 29
newfstatat(4, ".cache", {st_mode=
openat(4, ".cache", O_RDONLY|
fstat(3, {st_mode=
fcntl(3, F_GETFL) = 0x38800 (flags O_RDONLY|
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 3 entries */, 32768) = 88
close(3) = 0
openat(4, ".cache", O_RDONLY|
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=
fcntl(3, F_GETFL) = 0x38800 (flags O_RDONLY|
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fcntl(3, F_DUPFD, 3) = 5
fcntl(5, F_GETFD) = 0
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 3 entries */, 32768) = 88
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
unlinkat(5, "motd.legal-
write(1, "removed \342\200\
) = 48
close(5) = 0
unlinkat(4, ".cache", AT_REMOVEDIR) = 0
write(1, "removed directory: \342\200\
) = 38
close(4) = 0
unlinkat(AT_FDCWD, "/root", AT_REMOVEDIR[ 77.975408] BUG: unable to handle kernel NULL pointer dereference at 0000000000000016
[ 77.976006] IP: [<ffffffff81219
[ 77.976006] PGD 127fa067 PUD 112cd067 PMD 0
[ 77.976006] Oops: 0000 [#1] PREEMPT SMP
[ 77.976006] Modules linked in: kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd dm_multipath scsi_dh serio_raw i2c_piix4 cfg80211 8250_fintek mac_hid cuse parport_pc ppdev lp parport autofs4 squashfs overlay nls_utf8 isofs dm_mirror dm_region_hash dm_log psmouse e1000 pata_acpi floppy
[ 77.976006] CPU: 0 PID: 2308 Comm: rm Not tainted 3.19.0-
[ 77.976006] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.8.1-20150604_
[ 77.976006] task: ffff880006db09f0 ti: ffff880011310000 task.ti: ffff880011310000
[ 77.976006] RIP: 0010:[<
[ 77.976006] RSP: 0018:ffff880011
[ 77.976006] RAX: 0000000026842684 RBX: fffffffffffffffe RCX: 000000000000000c
[ 77.976006] RDX: 0000000000002684 RSI: ffffffffffffffff RDI: ffffffff81c0c4c4
[ 77.976006] RBP: ffff880011313e48 R08: 0000000000000000 R09: 0000000000000246
[ 77.976006] R10: ffffffff81198297 R11: ffff8800051d4c00 R12: ffff88003305f718
[ 77.976006] R13: ffff880053323cd8 R14: 00000000ffffff9c R15: 0000000000000000
[ 77.976006] FS: 00007f91151c370
[ 77.976006] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 77.976006] CR2: 0000000000000016 CR3: 000000001240f000 CR4: 00000000001407f0
[ 77.976006] Stack:
[ 77.976006] ffff880011313e48 ffff88003305f6c0 ffff880011313e78 ffffffff81202a7f
[ 77.976006] ffff880011313e68 ffff88001f427000 0000000000000000 00000000020910c0
[ 77.976006] ffff880011313f68 ffffffff812083f3 ffff88003305f6c0 ffff880011313ea8
[ 77.976006] Call Trace:
[ 77.976006] [<ffffffff81202
[ 77.976006] [<ffffffff81208
[ 77.976006] [<ffffffff81025
[ 77.976006] [<ffffffff81025
[ 77.976006] [<ffffffff81209
[ 77.976006] [<ffffffff817cf
[ 77.976006] Code: 83 ec 08 e8 93 3b 5b 00 48 89 df e8 eb d2 ff ff 48 85 c0 48 89 c3 74 55 48 c7 c7 c4 c4 c0 81 e8 77 58 5b 00 83 05 20 29 9f 00 01 <48> 8b 53 18 48 85 d2 74 1e 0f 1f 80 00 00 00 00 48 8d ba 10 ff
[ 77.976006] RIP [<ffffffff81219
[ 77.976006] RSP <ffff880011313e38>
[ 77.976006] CR2: 0000000000000016
[ 77.976006] ---[ end trace ba33e07ed00b256d ]---
[ 77.976006] note: rm[2308] exited with preempt_count 1
telnet> send brk # here I tried to send a break for SysRq, but the kernel is not responding at the moment,
[ 104.042006] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [rm:2308]
[ 104.042006] Modules linked in: kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd dm_multipath scsi_dh serio_raw i2c_piix4 cfg80211 8250_fintek mac_hid cuse parport_pc ppdev lp parport autofs4 squashfs overlay nls_utf8 isofs dm_mirror dm_region_hash dm_log psmouse e1000 pata_acpi floppy
[ 104.042006] CPU: 0 PID: 2308 Comm: rm Tainted: G D 3.19.0-
[ 104.042006] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.8.1-20150604_
[ 104.042006] task: ffff880006db09f0 ti: ffff880011310000 task.ti: ffff880011310000
[ 104.042006] RIP: 0010:[<
[ 104.042006] RSP: 0018:ffff880011
[ 104.042006] RAX: 0000000000002685 RBX: 0100000000000000 RCX: 0000000000075898
[ 104.042006] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff8800560ed000
[ 104.042006] RBP: ffff880011313910 R08: 0000000000000004 R09: 0000000000000246
[ 104.042006] R10: ffffffff8119f621 R11: 0000000000000000 R12: ffff8800560f1780
[ 104.042006] R13: ffffea000044b3c0 R14: ffffffff811d7255 R15: ffff880011313918
[ 104.042006] FS: 000000000000000
[ 104.042006] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 104.042006] CR2: 0000000000000016 CR3: 0000000001c13000 CR4: 00000000001407f0
[ 104.042006] Stack:
[ 104.042006] ffff880011313960 ffffffff8105cb8c ffffffff811d76d6 00002686113139b8
[ 104.042006] ffff8800051d0a80 ffff88004f5c7280 0000000040000010 ffff8800127c6a98
[ 104.042006] ffff8800051a5a80 ffff88004f5c72a0 ffff8800113139b8 ffffffff8105be51
[ 104.042006] Call Trace:
[ 104.042006] [<ffffffff8105c
[ 104.042006] [<ffffffff811d7
[ 104.042006] [<ffffffff8105b
[ 104.042006] [<ffffffff8119f
[ 104.042006] [<ffffffff817cf
[ 104.042006] [<ffffffff81218
[ 104.042006] [<ffffffff81218
[ 104.042006] [<ffffffff811f8
[ 104.042006] [<ffffffff811f8
[ 104.042006] [<ffffffff81094
[ 104.042006] [<ffffffff81079
[ 104.042006] [<ffffffff810ce
[ 104.042006] [<ffffffff81019
[ 104.042006] [<ffffffff81063
[ 104.042006] [<ffffffff81211
[ 104.042006] [<ffffffff81080
[ 104.042006] [<ffffffff81063
[ 104.042006] [<ffffffff81211
[ 104.042006] [<ffffffff81063
[ 104.042006] [<ffffffff81064
[ 104.042006] [<ffffffff810da
[ 104.042006] [<ffffffff81194
[ 104.042006] [<ffffffff81064
[ 104.042006] [<ffffffff8105c
[ 104.042006] [<ffffffff817d1
[ 104.042006] [<ffffffff81198
[ 104.042006] [<ffffffff81219
[ 104.042006] [<ffffffff81219
[ 104.042006] [<ffffffff81202
[ 104.042006] [<ffffffff81208
[ 104.042006] [<ffffffff81025
[ 104.042006] [<ffffffff81025
[ 104.042006] [<ffffffff81209
[ 104.042006] [<ffffffff817cf
[ 104.042006] Code: 00 00 00 00 00 55 48 89 e5 fa 5d c3 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 fb 5d c3 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 fb f4 <5d> c3 0f 1f 84 00 00 00 00 00 55 48 89 e5 f4 5d c3 66 0f 1f 84
QEMU 2.3.0 monitor - type 'help' for more information
(qemu) quit
Connection closed by foreign host.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: linux-image-
ProcVersionSign
Uname: Linux 3.19.0-
NonfreeKernelMo
ApportVersion: 2.17.3-0ubuntu4
Architecture: amd64
CasperVersion: 1.361
CurrentDesktop: XFCE
Date: Sun Jun 28 18:38:29 2015
LiveMediaBuild: Ubuntu-Studio 15.10 "Wily Werewolf" - Alpha amd64 (20150623)
MachineType: Apple Inc. MacBookPro11,2
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.144
SourcePackage: linux
StagingDrivers: r8188eu
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/07/2015
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP112.
dmi.board.
dmi.board.name: Mac-3CBD00234E5
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro11,2
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.
dmi.modalias: dmi:bvnAppleInc
dmi.product.name: MacBookPro11,2
dmi.product.
dmi.sys.vendor: Apple Inc.
Changed in linux (Ubuntu): | |
status: | Incomplete → Opinion |
status: | Opinion → Confirmed |
This change was made by a bot.