Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4101imu; Fri, 14 Dec 2018 12:27:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/VhL0I2sSa7ulDzJgHhCQaSIEzqfovhjfJzU87iWruNJRY+VkG+O9glnnf74qGy4cZPxWqj X-Received: by 2002:a62:f54f:: with SMTP id n76mr4166642pfh.59.1544819224750; Fri, 14 Dec 2018 12:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544819224; cv=none; d=google.com; s=arc-20160816; b=J86KIZm/ciMQ5O2HCbnbJfFnpbJQZusXIazGNyByEGEiq/PCS/MRAIWTptLEm9Krgt 2hWLcgrZfGbUsGfE9t9Srg3iyDx+LHajmqdpeR46OG+lyQ5RyJZ6gszltQOm7iwJsoTQ 1Js0wgZQFQo4eJmMYet4WOx6MqLHFoZaUIQsT9A0Cnwj1DwOifXawqg5FFdDtszcgv2J dqJVPmLPj3WP9DafqnAsJPAfdhI9L8UqXV5QCwPXJhx3sC2TiyaRgRYaVMgqPjsoGjKH u0sDzYUuV4hWFTQqWRuPcTrWTUXhzg8Bu/Tm42jwGucLts3TZ0M3PLf6twRIMvKmbiG8 HDfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Gm5cxsWSVEV/ThlxMkaaYEa3j2W/OwiuPA8Z7t+b30w=; b=D3Ti8nQ7ocLsW4bpim5xwRZwMQTxb+XK7sPLcQX4yxJoVO6h1osj+9/IMr0OoMA3Hz C+NZyZtJrWRKiWNGTMqFPj9iEFi3tlUo67XG8DQfYtvOViz8K3piNZ4Ao+G8Jje04/J9 tqX9KrlY2wM+aKBmS/wWYtPw9106NgcSXAi0sVfH+7pR3iBM9zEz1S/9Q1tq451XdtBx ivFtTUCaDMfuwfV98weuHzKc/xLW0jxe1qiFYU3kyfmNEYVjjzkICjVMdDG1FsFd1gUC T6ttO94dMYnpJTtZN4GNkw3RaYe9zM3IiOOy7vBA019sPpwL5JzuVsL5lZbDGnfafnkH 9wkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Sbotano6; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si4938907plk.61.2018.12.14.12.26.50; Fri, 14 Dec 2018 12:27:04 -0800 (PST) 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; dkim=pass header.i=@alien8.de header.s=dkim header.b=Sbotano6; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730781AbeLNUYO (ORCPT + 99 others); Fri, 14 Dec 2018 15:24:14 -0500 Received: from mail.skyhub.de ([5.9.137.197]:58098 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730123AbeLNUYO (ORCPT ); Fri, 14 Dec 2018 15:24:14 -0500 Received: from zn.tnic (p200300EC2BCFEF006DA1B19390C695FF.dip0.t-ipconnect.de [IPv6:2003:ec:2bcf:ef00:6da1:b193:90c6:95ff]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id AE2841EC0B7A; Fri, 14 Dec 2018 21:24:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1544819052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Gm5cxsWSVEV/ThlxMkaaYEa3j2W/OwiuPA8Z7t+b30w=; b=Sbotano6Uh88Drn2iCrxx1mZPeHpXGsWCc8VLXJWhvwYSS0xsNqhCQ4mMbefLejVez9Y+e XORVypZiqmChN02omnWTLufSoCADut34v0dJwQQ2e9syvMpf3KZWKPH/Ga6z8oxq18tn77 3oddrXQKWCaP1xX3UE23h2Vhz6PSCH0= Date: Fri, 14 Dec 2018 21:24:06 +0100 From: Borislav Petkov To: Thomas Schoebel-Theuer Cc: linux-kernel@vger.kernel.org, Laura Abbott , "Rafael J. Wysocki" , Len Brown , Tony Luck , linux-acpi@vger.kernel.org Subject: Re: [PATCH] acpi / apei: fix NULL deref during init Message-ID: <20181214202406.GI11710@zn.tnic> References: <20181214181514.29891-1-tst@schoebel-theuer.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181214181514.29891-1-tst@schoebel-theuer.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2018 at 07:15:14PM +0100, Thomas Schoebel-Theuer wrote: > Reason is a conditional initialization of variable arch_res, which happens > only under a specific precondition. When the condition is false, the > variable remains uninitialized. Are you talking about the precondition if (arch_apei_filter_addr) ? Because apei_resources_fini() happens under the same condition check and if arch_apei_filter_addr was false, it should not become true, all of a sudden. Or? Or does that function ptr get set in the meantime on your machine? I.e., this hackery: #define set_apei_filter() (arch_apei_filter_addr = pci_mmcfg_for_each_region) being called in pci_mmcfg_early_init()... ? Hmmm. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.