Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp700719yba; Thu, 16 May 2019 07:36:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgtLKzzm1/zSwrS0pZBybKOy40Rzv2pa1iq3/uHOAdWNATtShHKmITE3Bwc/VHJvKPCnFm X-Received: by 2002:a17:902:7610:: with SMTP id k16mr15482956pll.177.1558017419531; Thu, 16 May 2019 07:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558017419; cv=none; d=google.com; s=arc-20160816; b=e40uOF2I5yaVPHWjFTIVmkD2NDrRO6v4V8YGtWyLTMzfBba8rEwu0MqvERfm09iaWW VmtgmiJ2eYkxKwfv/RI5mAVXqEH+IKxSeeBL/ETdI03g2Xy1+WugefNDjhq+b4GZKGcu 6v5KHLSI639yjiMYlEmDQQJzgAPRK91gj9Ow9fSzkzMirqjWW5TzaK5guTH3F4TTp/Np j9Fo/BYId9RU7OXe3NAnTW6ok+PGTjKXhuwBnNfXGgXqMYAzWRQTxC3lY+v3NTZtW7cI XTDZMKUJbpy4oPn0korI80OZ/AWD6vFUK/VJOO6Wrgen9/Ng53WFT6K9ukelwmaPocVD dX1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Slihxl2vu/lw+Vj+9GO27pAncTe7JgO+/vPnKvGqTt8=; b=VrGvOtnP6Wqlmz/ZKem0v+sKMNYMNR5DYfK+Rf7mbpW4vTojlMsRES4QlAAg6p16lM w83FgQvJX4sYC+i43xaCHcNbsZgupAuvuuVpBrivDV/tCULwt8x8iQkmASobtIyT4fHR ssaovtkVQLOGlipmI8ETW8HhTLl7RGM0ocRO1vaG0ZGAZVD2HKq2S9lG01oRkNsw00+3 5A7dv24Hrr/QO0mlAb5WE7GfWJycWIrZkWRtGXbQnsrpjjJMLUL+EFgVXxCgKZh/So7p mt3f77Vf9QXWUy0lw3BHDngH7DWd55K0VFgbt466HknCmAGSfUj3rfDSpxZ0vNXFM0BW V1kQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c142si5848150pfc.194.2019.05.16.07.36.43; Thu, 16 May 2019 07:36:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726917AbfEPOdx (ORCPT + 99 others); Thu, 16 May 2019 10:33:53 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:39232 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726742AbfEPOdw (ORCPT ); Thu, 16 May 2019 10:33:52 -0400 Received: by mail-vs1-f67.google.com with SMTP id m1so2451021vsr.6 for ; Thu, 16 May 2019 07:33:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Slihxl2vu/lw+Vj+9GO27pAncTe7JgO+/vPnKvGqTt8=; b=P+WAajyHxtrheJmQBtpCzmFJDAq4xJj57p+ROllFvDuQCwWUfXdV7355eKHFj8Dalc XrQYQst69cQGWcX7TFmGNErrjo34vgWauycVsE2Oj8/eQ2gZefJpOMaGX8IOOsE2MLcs znt/CGUnSuDtPe/+BbT8ekK4zoSgENM1e0mbi/s0Kt6EtPoDNxNeLI0c78cy+oVpm6lP wntWw1WDGVRB+7Sc/nqShe/gvzEPcsmOX4cQDA0x6l7xDxh9nhaoYNWXLFsAKUZcKFIS K87uKuKlFj+LcH0bIgR05nnprGvuqIWc4rHVp4GJ3oLHM0lppFkzbngzhRmudC/zVVVR PiUQ== X-Gm-Message-State: APjAAAUVJb+BCgso084iNT9Yd7gqTIgTs0wln1fFr7TewDV2YLUY672P TKrkSxhADKZTONpSyO2gh7x0tUtgYcfr7iLY/HOjPXboxls= X-Received: by 2002:a67:f309:: with SMTP id p9mr22751634vsf.216.1558017231720; Thu, 16 May 2019 07:33:51 -0700 (PDT) MIME-Version: 1.0 References: <20190426145946.26537-1-ghalat@redhat.com> In-Reply-To: <20190426145946.26537-1-ghalat@redhat.com> From: Grzegorz Halat Date: Thu, 16 May 2019 16:33:40 +0200 Message-ID: Subject: Re: [PATCH] vt/fbcon: deinitialize resources in visual_init() after failed memory allocation To: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: Bartlomiej Zolnierkiewicz , Greg Kroah-Hartman , Jiri Slaby , Oleksandr Natalenko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Grzegorz Halat