regression: "df: `/sys/kernel/debug': Function not implemented" with 3.2.0-85.122
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | linux (Ubuntu) |
High
|
Joseph Salisbury | ||
| | Precise |
Undecided
|
Unassigned | ||
Bug Description
$ cat /proc/version_
Ubuntu 3.2.0-84.
$ df | head -3
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 7481832 4262872 2838904 61% /
udev 371920 4 371916 1% /dev
$ cat /proc/version_
Ubuntu 3.2.0-85.
$ df | head -3
df: `/sys/kernel/
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 7481832 4263012 2838764 61% /
udev 371920 4 371916 1% /dev
This is confirmed in an amd64 VM and on an amd64 system. It doesn't make a difference if I use sudo.
| Jamie Strandboge (jdstrand) wrote : | #1 |
| Changed in linux (Ubuntu): | |
| status: | New → Confirmed |
| description: | updated |
| description: | updated |
| tags: | added: performing-bisect |
| Changed in linux (Ubuntu): | |
| importance: | Undecided → High |
| status: | Confirmed → In Progress |
| assignee: | nobody → Joseph Salisbury (jsalisbury) |
| Joseph Salisbury (jsalisbury) wrote : | #2 |
This bug may be due to one of these commits:
7b0f287 kdb: fix incorrect counts in KDB summary command output
df438af debugfs: leave freeing a symlink body until inode eviction
I'll build a test kernel with these two commits reverted before starting the bisect process. I'll post a link to the test kernel shortly.
| Joseph Salisbury (jsalisbury) wrote : | #3 |
I built a Precise test kernel with a revert of 7b0f287 and df438af. Can you test this kernel and see if it still exhibits the bug?
It can be downloaded from:
http://
| tags: | added: precise regression-update |
| Jamie Strandboge (jdstrand) wrote : | #4 |
This works as advertised in an amd64 VM.
$ cat /proc/version_
Ubuntu 3.2.0-85.
$ df | head -3
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 7481832 4264172 2837604 61% /
udev 371924 4 371920 1% /dev
| Joseph Salisbury (jsalisbury) wrote : | #5 |
Great, thanks, Jamie. I'll reproduce the bug and figure out which of these commits is the cause.
| Slavisa Djokic (djokic) wrote : | #6 |
Hi Joseph,
thanks for taking care. Looks like this bug might be related: https:/
We have here tivoli-
| Joseph Salisbury (jsalisbury) wrote : | #7 |
I built two more test kernels. One has commit df438af reverted and the other has df438af reverted. Can you test each of these kernels and see which one resolves the bug? The kernels can be downloaded from:
http://
and
http://
Thanks in advance!
| Luis Henriques (henrix) wrote : | #8 |
I can confirm that reverting df438afe2d93 ("debugfs: leave freeing a symlink body until inode eviction") fixes the issue on an i386 VM. But it would be great to have the original bug reporter to test that too.
| Luis Henriques (henrix) wrote : | #9 |
Here's some more detail:
running 'strace df' shows the following:
statfs64(
A quick test shows that adding '.statfs = simple_statfs' in the debugfs_
that's the right thing to do.
(This has been reported upstream: http://
| Jamie Strandboge (jdstrand) wrote : | #10 |
Reverting df438af seems to have fixed it.
$ cat /proc/version_
Ubuntu 3.2.0-86.
$ df | head -3
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 7481832 4735296 2366480 67% /
udev 371924 4 371920 1% /dev
| Agesp Anonymous (agespam) wrote : | #11 |
Please note, does this bug affect any other software but just df command?
(definitely kernel related, after update from 3.2.0-84 to 3.2.0-86)
My setup is also affected by this bug:
$ df -h
df: ”/sys/kernel/
Tiedostojärjestelmä Koko Käyt Vapaa Käy% Liitospiste
/dev/sda1 22G 4,2G 16G 21% /
...
$ LANG=C df -h
df: `/sys/kernel/
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 22G 4.2G 16G 21% /
...
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
$ uname -a
Linux machine 3.2.0-86-
| Changed in linux (Ubuntu Precise): | |
| status: | New → Fix Committed |
| Andy Zeigler (k-andy-s) wrote : | #12 |
Agesp: In response to your question about whether or not this impacts other software, I can tell you that it affects our Ruby on Rails app in production. I'm not sure what is triggering it -- it may be IRB, rails, or a gem that we have, but there is a constant stream of these messages on stderr when the rails console ('rails c') is loaded:
deploy@
Loading production environment (Rails 4.1.10)
20150622025515(
df: `/sys/kernel/
df: `/sys/kernel/
df: `/sys/kernel/
...
I get a message every few seconds without any user interaction.
Obviously there is a simple workaround here -- 'rails c 2>/dev/null`. But it would be nice to have stderr back at some point. :)
Thanks,
Andy
| mig5 (mig5) wrote : | #13 |
After upgrading 12.04 machines to
linux-
from
linux-
.. I still continue to get the same 'function not implemented', including after reboot.
For 12.04 machines running the Trusty HWE kernel 3.13.0-55-generic #94~precise1-Ubuntu SMP, and Trusty machines themselves, the issue appears resolved..
I wonder if it still affects machines on 3.2.0-86 *if* they had previously upgraded to the regression kernel last week? I haven't tested on a machine on 85->newest 86 yet.
| Luis Henriques (henrix) wrote : | #14 |
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/
| tags: | added: verification-needed-precise |
| mikelococo (mikelococo) wrote : | #15 |
Luis: The meaning of your last comment isn't clear to me (probably because I'm insufficiently familiar with the standard process between fix-committed and fix-released).
Are you calling for community testers to validate this bug in order to prevent the fix from being thrown away 5 days from now?
Or does the addition of the verification-
| Luis Henriques (henrix) wrote : | #16 |
mikelococo: this is a request for testing the Precise kernel that is currently in -proposed (kernel version 3.2.0-87.125). This kernel version should contain the fix for this bug, and I am asking the original bug reporter (or anyone else affected by this bug) to verify that it is indeed fixed.
If the bug is fixed by this kernel, the bug tag 'verification-
Anyway, since I was able to reproduce this bug, I will eventually verify it too but as I've worked on the fix it would be good to have someone else to double-check.
| mikelococo (mikelococo) wrote : | #17 |
I'm not the original reporter, but I am affected and the fix looks good to me. Details below (forgive any typos or abbreviations, copy/paste not setup for my test-vm)...
### First boot
$ uname -r
3.2.0-86-generic
$uname -v
#124-Ubuntu SMP Wed Jun 17 <... snip build time ...>
$ df
df: '/sys/kernel/
<... snip ...>
$ echo 'deb http://
$ sudo aptitude update
<... snip ...>
$ sudo aptitude upgrade # installs build-125
<... snip ...>
$ sudo reboot
### Second boot
$ uname -r
3.2.0-86-generic
$ uname -v
#125-Ubuntu SMP Wed Jun 19 <... snip build time ...>
$ df
<... snip ...> # No error with build-125
| tags: |
added: verification-done-precise removed: verification-needed-precise |
| mikelococo (mikelococo) wrote : | #18 |
verification-
verification-
| Jamie Strandboge (jdstrand) wrote : | #19 |
The kernel in precise-proposed fixes this for me.
$ cat /proc/version_
Ubuntu 3.2.0-87.
$ df | head -3
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 7481832 5146416 1955360 73% /
udev 371920 4 371916 1% /dev
| mig5 (mig5) wrote : | #20 |
Confirming 3.2.0-87-generic from precise-proposed fixes the issue for me also. Thanks
| pwolanin (pwolanin) wrote : | #21 |
I tested 3.2.0-87-virtual from precise-proposed on AWS and it fixes the df issue which we saw in our automated testing
| mikelococo (mikelococo) wrote : | #22 |
Any word on release schedule?
| Changed in linux (Ubuntu Precise): | |
| status: | Fix Committed → Fix Released |
| Jamie Strandboge (jdstrand) wrote : | #23 |
RiCh, 3.2.0-87.125 has not been published to precise-
| Changed in linux (Ubuntu Precise): | |
| status: | Fix Released → Fix Committed |
| mikelococo (mikelococo) wrote : | #24 |
Periodic reminder that some folks (minimally myself) are looking forward to the general availability of this fix with great anticipation. Lots of third-party scripts depend on the exit status of df.
| Jamie Strandboge (jdstrand) wrote : | #25 |
3.2.0-87.125 was published to precise-
$ apt-cache policy linux-image-
$ apt-cache policy linux-image-
linux-image-
Installed: 3.2.0-87.125
Candidate: 3.2.0-87.125
Version table:
*** 3.2.0-87.125 0
500 http://
500 http://
100 /var/lib/
$ cat /proc/version_
Ubuntu 3.2.0-87.
$ df | head -3
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 7481832 5147004 1954772 73% /
udev 371920 4 371916 1% /dev
Marking as Fix Released.
| Changed in linux (Ubuntu Precise): | |
| status: | Fix Committed → Fix Released |
| Changed in linux (Ubuntu): | |
| status: | In Progress → Fix Released |


Marking as confirmed since I was able to reproduce on two different systems.