[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53EA297F.1040107@nod.at>
Date: Tue, 12 Aug 2014 16:49:35 +0200
From: Richard Weinberger <richard@....at>
To: Vivek Goyal <vgoyal@...hat.com>,
linux kernel mailing list <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>
CC: Daniel Walter <sahne@...0.at>,
Toralf Förster <toralf.foerster@....de>,
user-mode-linux-devel <user-mode-linux-devel@...ts.sourceforge.net>
Subject: Re: [PATCH] resource: Fix the case of null pointer access
Am 12.08.2014 16:46, schrieb Vivek Goyal:
> Richard and Daniel reported that UML is broken due to changes to resource
> traversal functions. Problem is that iomem_resource.child can be null
> and new code does not consider that possibility. Old code used a for loop
> and that loop will not even execute if p was null.
>
> Revert back to for() loop logic and bail out if p is null.
>
> I also moved sibling_only check out of resource_lock. There is no
> reason to keep it inside the lock.
>
> Following is backtrace of the UML crash.
Shall I pickup this patch and route it via my uml tree to Linus?
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists