Received: by 10.192.165.148 with SMTP id m20csp826740imm; Fri, 27 Apr 2018 08:07:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp+hSxvVIs+MYSqNjS+4smAOWzNGohv2lbTXGnEbOzZb88xlVbIyX5KjqCbaEBi1vRocgoA X-Received: by 2002:a17:902:5952:: with SMTP id e18-v6mr2631848plj.351.1524841663217; Fri, 27 Apr 2018 08:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524841663; cv=none; d=google.com; s=arc-20160816; b=ArccZZ7azcjVI/blq6LYUv4W4cOOWqJILmWGzPj8exvT2nnDyydO07VQOmyimNPxfh uMoR8JS7XYqRe1iw47L9+F6AxTWGQfhOBqrm9MDDKnGfawgbHC+6tqH7TUZUgQxAe/GH ezfZro+hUu5i5b62lm7b34EmyGashJxk1D2Q3LdLipqanIA6fTtSiwQXCE15EFpSAOJd 5H99uCG5xQ1AJ9Y3vfJ+OaO1y2QXxqlsUp+rCOeMP4WHPSI4BkdGangm/u3RFZ8kwZYg DODTlFV+6wWZtl9Fs9txnV3Tlw8NJXLIFT+IQJANbVz/9nIe+2UOxpoCWxaBWmg32rbd VKjg== 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 :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=0DSueq/+gX0UD93NDbHZuGAKKJSmpKf5vj5eOCcKD4Y=; b=nUZFb+rdoErcpMapL+yMT7+iHNIkPyDfQMRZI37nEIuQ9f1qYHAPBu5Cckj0f9H2ZJ vZvSQeX2dbD+1Co/7XeWofXBMP+3MaodBEYMjTQ3NFYeGsETsa2th8FGWwRd/WheGq4a AQpUaCAUVslSq+d9xNlDK6UcasZdw0FdR+MO9w3ztWR9Z/kTE0uXEXN4U5yB9nnRksT8 DUvuguoEXgHQq6ftujWGbHNmXYdPDcCVgtxNshmEIQZ23+bYtt0MK0cb0fOUXvdTwv5d ExzT/Vqm8O1f1N6+kuANV8is6nuV62VMuN3bCgGiryeXMRbiDoPmOjtJBe9BY2i4C5MF 2/AQ== 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 h16si1409961pfi.117.2018.04.27.08.07.29; Fri, 27 Apr 2018 08:07:43 -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 S933766AbeD0OEq (ORCPT + 99 others); Fri, 27 Apr 2018 10:04:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:50978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933706AbeD0OEm (ORCPT ); Fri, 27 Apr 2018 10:04:42 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D466821890; Fri, 27 Apr 2018 14:04:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D466821890 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxime Hadjinlian , Akemi Yagi , Namhyung Kim , Jiri Olsa , Adrian Hunter , David Ahern , Peter Zijlstra , Wang Nan , kernel-team@lge.com, Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.9 18/74] Revert "perf tools: Decompress kernel module when reading DSO data" Date: Fri, 27 Apr 2018 15:58:08 +0200 Message-Id: <20180427135710.657081841@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135709.899303463@linuxfoundation.org> References: <20180427135709.899303463@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Greg Kroah-Hartman This reverts commit e2d054998b151e85b6305aa72264f67097bd78e9 which is commit 1d6b3c9ba756a5134fd7ad1959acac776d17404b upstream. It breaks the build, so obviously none of us actually tested it :( Reported-by: Maxime Hadjinlian Reported-by: Akemi Yagi Cc: Namhyung Kim Cc: Jiri Olsa Cc: Adrian Hunter Cc: David Ahern Cc: Peter Zijlstra Cc: Wang Nan Cc: kernel-team@lge.com Cc: Arnaldo Carvalho de Melo Cc: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/dso.c | 16 ---------------- 1 file changed, 16 deletions(-) --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c @@ -366,23 +366,7 @@ static int __open_dso(struct dso *dso, s if (!is_regular_file(name)) return -EINVAL; - if (dso__needs_decompress(dso)) { - char newpath[KMOD_DECOMP_LEN]; - size_t len = sizeof(newpath); - - if (dso__decompress_kmodule_path(dso, name, newpath, len) < 0) { - free(name); - return -dso->load_errno; - } - - strcpy(name, newpath); - } - fd = do_open(name); - - if (dso__needs_decompress(dso)) - unlink(name); - free(name); return fd; }