sleep from invalid context in aa_move_mount
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Tim Gardner | ||
Wily |
Fix Released
|
Undecided
|
John Johansen | ||
Xenial |
Fix Released
|
Medium
|
Tim Gardner |
Bug Description
In xenial master-next, when I cp /bin/mount /home/ubuntu/mount, define the following policy:
#include <tunables/global>
/home/ubuntu/mount {
#include <abstractions/base>
#include <abstractions/
capability,
network,
mount,
/** mkrwixr,
}
And then run the following script under sudo from ~/ubuntu:
#!/bin/sh
apparmor_parser -r /home/ubuntu/
umount -l a/b
umount -l a/a
umount -l a
rm -rf a
mkdir a
mount --bind a a
mount --make-slave a
mkdir a/a a/b
mount -t tmpfs tmpfs a/a
/home/ubuntu/mount --move a/a a/b
I get the following kernel warning:
Jan 29 02:36:06 seth kernel: audit: type=1400 audit(145403496
Jan 29 02:36:06 seth kernel: BUG: sleeping function called from invalid context at mm/slub.c:1287
Jan 29 02:36:06 seth kernel: in_atomic(): 1, irqs_disabled(): 0, pid: 1189, name: mount
Jan 29 02:36:06 seth kernel: no locks held by mount/1189.
Jan 29 02:36:06 seth kernel: CPU: 0 PID: 1189 Comm: mount Not tainted 4.4.0+ #4
Jan 29 02:36:06 seth kernel: Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011
Jan 29 02:36:06 seth kernel: 0000000000000000 00000000a02414bf ffff88007784fc28 ffffffff81449309
Jan 29 02:36:06 seth kernel: ffff880079129580 ffff88007784fc50 ffffffff810b5789 ffffffff81ce0e60
Jan 29 02:36:06 seth kernel: 0000000000000507 0000000000000000 ffff88007784fc78 ffffffff810b5889
Jan 29 02:36:06 seth kernel: Call Trace:
Jan 29 02:36:06 seth kernel: [<ffffffff81449
Jan 29 02:36:06 seth kernel: [<ffffffff810b5
Jan 29 02:36:06 seth kernel: [<ffffffff810b5
Jan 29 02:36:06 seth kernel: [<ffffffff81258
Jan 29 02:36:06 seth kernel: [<ffffffff81221
Jan 29 02:36:06 seth kernel: [<ffffffff81258
Jan 29 02:36:06 seth kernel: [<ffffffff81258
Jan 29 02:36:06 seth kernel: [<ffffffff813e9
Jan 29 02:36:06 seth kernel: [<ffffffff813df
Jan 29 02:36:06 seth kernel: [<ffffffff81392
Jan 29 02:36:06 seth kernel: [<ffffffff8126f
Jan 29 02:36:06 seth kernel: [<ffffffff811f0
Jan 29 02:36:06 seth kernel: [<ffffffff811de
Jan 29 02:36:06 seth kernel: [<ffffffff81270
Jan 29 02:36:06 seth kernel: [<ffffffff818d0
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Wily): | |
assignee: | nobody → John Johansen (jjohansen) |
status: | New → Fix Committed |
Changed in linux (Ubuntu Xenial): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
status: | Incomplete → Fix Committed |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1539349
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.