Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp511383ybi; Fri, 26 Jul 2019 13:48:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvbT/mWKY4C9WYYJD8YI0b9B699Me6sGR7gq1utEG+DvVtthubTBidXN7DKq15eNhav02C X-Received: by 2002:a63:1341:: with SMTP id 1mr8580091pgt.48.1564174080574; Fri, 26 Jul 2019 13:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564174080; cv=none; d=google.com; s=arc-20160816; b=ZvETSkoBL3kSdPi4EWGi/qftyZ5UXJcJS6txq54/KCa8QUZSwyDZPr6F5ThuRPTwpy OdAFK3EJUA7pxRPv3fc4Z7uA+/v7Um4R296ZQJOJ9YFl+yxXqeFQQIA7DDPQxMYzdQqf ujLSpmJqJeJfoBk0D4CDUDZAEj5Gt3F1Ss1Sdx7acuPkPSoUvdmJB1zcrYdj7fTDKgJC D4ZjcDLpnsAAdPZw7MqLw6+IXINtUeq9gU33/FTgsU9kK6Z1MEMtSB9QCUzJnNaFyPwu URiNN9G2367cyVpcjbzeimAkjP+gdUvY49exEG/NOiikxQEdNhj4MOPJb3J4+HaIOUkp FlGQ== 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:message-id :subject:cc:to:date:from:dkim-signature; bh=EkkYyzbKFCkkMpgaoYMPHhbpzI2gyifZuS1BV3t9ELc=; b=Eghx2zrH8oZHoANfZcTH80ucKsnGEliMJnCHSg3892Pi+lHUAQpmi9iR4Xox9tl2MZ LKdqLfdEL7e2gIH491kXRnpdTSq/NED2q1fvriwjvOVTjLxD8iRyxZEZnABQlliV4x20 O0blgum8oFYiWwkXtkWRclsblg/mzC4eK7y01VQCIOUzolbiCIjN1QHOrI/4aUt7v2AX bDZnn4chJv0wsW3PTVT4Hl8xHG/diG6YtXMfScXR1ZstQssAJZjuukQORHjgimIwIbxZ IQCha9D4+PuoYPQqZ0jRkCL2KDISYQXkvigYYVuOPjO2QJHTf+BxGT3IEznP0HIVwXmz +zpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=d41BIaTH; 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 i8si17329088pju.32.2019.07.26.13.47.45; Fri, 26 Jul 2019 13:48:00 -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; dkim=pass header.i=@maine.edu header.s=google header.b=d41BIaTH; 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 S1727801AbfGZUq6 (ORCPT + 99 others); Fri, 26 Jul 2019 16:46:58 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33666 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbfGZUq5 (ORCPT ); Fri, 26 Jul 2019 16:46:57 -0400 Received: by mail-qt1-f193.google.com with SMTP id r6so49723658qtt.0 for ; Fri, 26 Jul 2019 13:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; h=from:date:to:cc:subject:message-id:user-agent:mime-version; bh=EkkYyzbKFCkkMpgaoYMPHhbpzI2gyifZuS1BV3t9ELc=; b=d41BIaTHJGxt3X6jmm1ZiRmCWH3HgmROD5JE/8Y/Dlhw0fXAlsi+y4Paiin55JriCt aDf6CbiXAyC4ABcTDSiiAYf38ABXWtJ/MyNFWnewdNN0VcFzfLv/WPtAzjQpbQ31/xJP nXESVzSPK71H1Fi9VXpcwEEjxfmsrF55Fp9AE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:user-agent :mime-version; bh=EkkYyzbKFCkkMpgaoYMPHhbpzI2gyifZuS1BV3t9ELc=; b=A3V5uyUuBXrKooGjox3HE6KfuYnVyB84uOGFHuMIYGhSjIhwi9lA07cfUAm5D/EQO1 jgWQI0OGUz0PVV/Ti8aV1MfINnvx+hjDkt/DlAHnzLlID/Qa4qFNz0/j2wQ8COYav3pe 7eLyTwSqSY37mThwRhhpiYeGhHDcRbqpZ50UPlmyUq5+cyaBbh6zRVyhhqfUJTOM7W4w AU6+drmAsgwuvRxI/WYMx2RgsduSkw/Gegjrun7vRexqLhoqXFfnmXv0Kx4cMo+5OlfQ 8NGjfqBjzn/8QXRhP7Esw8qnnh2aRaeDCc/5N55ZGDajRNe2g8phnlr/vyNDWzUPohWw JkOw== X-Gm-Message-State: APjAAAUFhIzBO5ciLjJ+00AUycZSNG2gVwimJGVbA9GdnpZLxykCzRHr mswLIAtsUfdzQhC6rnMiBawRyA== X-Received: by 2002:aed:34a6:: with SMTP id x35mr67957114qtd.187.1564174016913; Fri, 26 Jul 2019 13:46:56 -0700 (PDT) Received: from macbook-air (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id b13sm33271374qtk.55.2019.07.26.13.46.55 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 13:46:55 -0700 (PDT) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Fri, 26 Jul 2019 16:46:51 -0400 (EDT) X-X-Sender: vince@macbook-air To: Arnaldo Carvalho de Melo cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim Subject: perf: perf report stuck in an infinite loop Message-ID: User-Agent: Alpine 2.21 (DEB 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 Currently the perf_data_fuzzer causes perf report to get stuck in an infinite loop. From what I can tell, the issue happens in reader__process_events() when an event is mapped using mmap(), but when it goes to process the event finds out the internal event header has the size (invalidly) set to something much larger than the mmap buffer size. This means fetch_mmaped_event() fails, which gotos remap: which tries again with the exact same mmap size, and this will loop forever. I haven't been able to puzzle out how to fix this, but maybe you have a better feel for what's going on here. Vince