From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Date: Fri, 24 May 2019 08:06:02 +0000 Subject: Re: [PATCH] vt/fbcon: deinitialize resources in visual_init() after failed memory allocation Message-Id: <20190524080602.GA19514@kroah.com> List-Id: References: <20190426145946.26537-1-ghalat@redhat.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Grzegorz Halat Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, Bartlomiej Zolnierkiewicz , Jiri Slaby , Oleksandr Natalenko On Thu, May 16, 2019 at 04:33:40PM +0200, Grzegorz Halat wrote: > On Fri, 26 Apr 2019 at 16:59, Grzegorz Halat wrote: > > > > After memory allocation failure vc_allocate() doesn't clean up data > > which has been initialized in visual_init(). In case of fbcon this > > leads to divide-by-0 in fbcon_init() on next open of the same tty. > > Hi, > A gentle reminder. Could you please review my patch? I've seen two > crashes caused by this bug. How? How are you triggering a memory allocation failure in a "normal" system? Anyway, I'll queue this up, but it really does not seem like anything anyone would see "in the wild". thanks, greg k-h