WSL icon indicating copy to clipboard operation
WSL copied to clipboard

dmesg: read kernel buffer failed: Function not implemented

Open spoiledsport opened this issue 9 years ago • 10 comments

I am getting this error when running dmesg on the latest version of Creators Edition. THis was working before. I uninstalled and reinstalled WSL to no avail.

Is this a known issue?

spoiledsport avatar Apr 12 '17 02:04 spoiledsport

Can you please fill out the template? For this issue we would need a strace to see what syscall is failing.

stehufntdev avatar Apr 13 '17 16:04 stehufntdev

strace.dmesg.txt

  • Expected results printing of the boot up information

  • Actual results (with terminal output if applicable) dmesg: read kernel buffer failed: Function not implemented

  • Your Windows build number Microsoft Windows [Version 10.0.15063]

  • Steps / All commands required to reproduce the error from a brand new installation 1.- run bash on Ubuntu for windows 2.- run dmesg

  • Strace of the failing command

spoiledsport avatar Apr 13 '17 20:04 spoiledsport

Thanks for the strace! Looks like it is failing because it wasn't able to read from kmsg, which looks like a duplicate of #1321. Can you please confirm?

open("/dev/kmsg", O_RDONLY|O_NONBLOCK) = 3 lseek(3, 0, SEEK_DATA) = -1 EINVAL (Invalid argument) read(3, 0x60c3e0, 8191) = -1 EAGAIN (Resource temporarily unavailable) close(3) = 0

stehufntdev avatar Apr 13 '17 21:04 stehufntdev

Reproduced. Same output from strace. Writing something to /dev/kmsg makes dmesg work.

larsbrinkhoff avatar Oct 13 '17 11:10 larsbrinkhoff

I am hitting this also. Any updates?

dman777 avatar Feb 05 '18 15:02 dman777

Only that this is dupe #1321. It was pinged three weeks ago (message).

therealkenc avatar Feb 05 '18 15:02 therealkenc

Same here... 😕

almdrx avatar Feb 13 '18 20:02 almdrx

Same here. Encountered trying to install something with apt-get, and now I can't run any apt-get commands.

bcyphers avatar Sep 19 '18 22:09 bcyphers

It's fixed now. Please upgrade WSL.

kenorb avatar Oct 04 '18 16:10 kenorb

I have followed all of upgrade WSL and nothing changed. Does anybody have a real fix for this problem?

Starnovice avatar Aug 03 '19 18:08 Starnovice