public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
From: Bronek Kozicki <brok-CgwIDsGnGWjby3iVrkZq2A@public.gmane.org>
To: vcaputo-IiWei5kqaphBDgjK7y7TUQ@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: PROBLEM: NULL pointer dereference in kernel 4.14.6
Date: Mon, 18 Dec 2017 19:56:17 +0000	[thread overview]
Message-ID: <95d82ae1-fe4c-4eee-8e94-fa0df3e25532@incorrekt.com> (raw)
In-Reply-To: <20171217232448.yfaxxew2ijaay7iu-5Y5FpTStZqUl8ZggnyUIT4tm+1EbUQKi@public.gmane.org>

On 17/12/2017 23:24, vcaputo-IiWei5kqaphBDgjK7y7TUQ@public.gmane.org wrote:
> On Sun, Dec 17, 2017 at 05:49:44PM +0000, Bronek Kozicki wrote:
>> I just upgraded to 4.14.7 and tried to reproduce this error, this time under strace. As you can see this happens when systemctl tries to read a specific entry under /sys/fs . In case this matters, the entry is for a small virtual machine running under qemu/kvm and managed by libvirt.
>>
>> open("/sys/fs/cgroup/unified/machine.slice", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5
>> fstat(5, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
>> getdents(5, /* 12 entries */, 32768)    = 464
>> openat(AT_FDCWD, "/sys/fs/cgroup/unified/machine.slice/machine-qemu\\x2d1\\x2dkartuzy\\x2dspice.scope/cgroup.procs", O_RDONLY|O_CLOEXEC) = 8
>> fstat(8, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
>> read(8,  <unfinished ...>)              = ?
>> +++ killed by SIGKILL +++
>> [1]    12078 killed     strace -- systemctl status
>>
>>
> 
> This recently came through lkml, may be related:
> https://marc.info/?l=linux-kernel&m=151320108922415&w=2

thank you, it certainly seems related. Is there some debugging option I could enable, or patch I could apply, which would make the point of data corruption easier to find? I'm ok taking untested patches, if that helps finding the location of the bug.


B.

  parent reply	other threads:[~2017-12-18 19:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1513512885.3653140.1207725096.395A9CCC@webmail.messagingengine.com>
     [not found] ` <eccdc57d-d5ea-ddc5-9f07-269e4a6786ae@incorrekt.com>
     [not found]   ` <08995310-d853-ee77-ed1f-26cc336a4a30@incorrekt.com>
     [not found]     ` <08995310-d853-ee77-ed1f-26cc336a4a30-CgwIDsGnGWjby3iVrkZq2A@public.gmane.org>
2017-12-17 18:25       ` PROBLEM: NULL pointer dereference in kernel 4.14.6 Randy Dunlap
     [not found]         ` <54a16e07-70e6-adda-ebdb-06349b4f8e86-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2017-12-17 18:30           ` Bronek Kozicki
     [not found]             ` <04a4e27d-e291-66c3-ab88-e1343c6955f2-CgwIDsGnGWjby3iVrkZq2A@public.gmane.org>
2017-12-17 18:31               ` Randy Dunlap
2017-12-17 18:48           ` Bronek Kozicki
     [not found]     ` <20171217232448.yfaxxew2ijaay7iu@shells.gnugeneration.com>
     [not found]       ` <20171217232448.yfaxxew2ijaay7iu-5Y5FpTStZqUl8ZggnyUIT4tm+1EbUQKi@public.gmane.org>
2017-12-18 19:56         ` Bronek Kozicki [this message]
2017-12-18 20:17 George Amanakis
     [not found] ` <1513628274.1378.1.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-12-19 22:37   ` Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=95d82ae1-fe4c-4eee-8e94-fa0df3e25532@incorrekt.com \
    --to=brok-cgwidsgngwjby3ivrkzq2a@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=vcaputo-IiWei5kqaphBDgjK7y7TUQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox