Received: by 10.192.165.156 with SMTP id m28csp1734185imm; Tue, 17 Apr 2018 04:46:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx48nbXskzUcldMo1nCaXsVnZTqpjeENV2Y+RXMeEytcAACEBuOU00pqL1h8AGkmBdDJdyZmJ X-Received: by 10.98.152.5 with SMTP id q5mr1684855pfd.178.1523965606224; Tue, 17 Apr 2018 04:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523965606; cv=none; d=google.com; s=arc-20160816; b=f0wUk16Jp6n+2fM0Iva/c3LT4CgskYMnuFqQdRdSTbCMsKB5ODKXbn0H6R4BZvsut6 g0LKe9MjGNn3OJMYjRfkEwVItMWGWaJWhtq/E4qLJRbDxbFVupt2I+u5rJFrW6R9CwAS fKZ6aeiVaj0Po9Av5HFktDRs5I8q3WFZSOMW8E1OQrq5vB+Dho9a9RwNyC7ZsVAkENRc OUpXNrsaVcS6RbrD5JRvui4+jonELvMc+9CLq3fbNAzcJ2PHTF+qsfiK2MogvR8t5xkG v3PG5i001J/u5FB9c+48SaI3chw3rWbyMJ8BK0eHNbsfhzZhXV98bUCg6z6JFm5B+/XM 9kMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=9+cTRuR7TLq1rcdncduuplIFscPaiv4OaSEl+7AW+vg=; b=vXbPWdu6MgDqWwOEVz/CRl7rHjiRORiQwRWu5Vfj0Ki79GEwI/pqprryECVXKfxyQu eY3GuMSW4ICkTCBpCfToeCwi05cSV0m/rlRupyYDyhohVlozXFlNQtoX/gOYON0NmerR kM7wK/Y8qSTqrEzUUTa1N/eL+xaswtwNnIehN7bPZO+IZAlscnxHZ0f2B1k5Q0Zmmxum Z+npQQclFDMg/CcnDrOVH+/9lAubmekNAsZiB42F5bu/OorSTgLs63wrSXuAz9ZrCJhh 22Ph6g9kf2dqcTHQmJNuag7NZM86DwJv6Xaq7bvPcSi1/NZhYXnws8m4Jc77WOZX/Sbk lMzg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a21si12245672pfi.349.2018.04.17.04.46.32; Tue, 17 Apr 2018 04:46:46 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753052AbeDQLob (ORCPT + 99 others); Tue, 17 Apr 2018 07:44:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:37435 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752684AbeDQLoa (ORCPT ); Tue, 17 Apr 2018 07:44:30 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3BDC8AF04; Tue, 17 Apr 2018 11:44:29 +0000 (UTC) Date: Tue, 17 Apr 2018 13:44:28 +0200 (CEST) From: Jiri Kosina To: Petr Mladek cc: Josh Poimboeuf , Miroslav Benes , Joe Lawrence , Jessica Yu , Nicolai Stange , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/2] livepatch: Allocate and free shadow variables more safely In-Reply-To: <20180416113647.25288-1-pmladek@suse.com> Message-ID: References: <20180416113647.25288-1-pmladek@suse.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Apr 2018, Petr Mladek wrote: > Nikolai started to use shadow variables and found that list_head > is not initialized correctly using the existing API. > > The problem is that LIST_HEAD_INIT() set pointers to itself. > klp_shadow_alloc() then copies these pointers to another location. Queued in for-4.17/upstream-fixes. Thanks, -- Jiri Kosina SUSE Labs