Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9926137ybi; Wed, 24 Jul 2019 12:27:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxc4nnKGOxPtZFNkUDk363DUkngi8jboxV6dCcLIW/Qk0dQIgaAj/ctllXBSDFMMveHe3MV X-Received: by 2002:a17:902:3103:: with SMTP id w3mr88912892plb.84.1563996432771; Wed, 24 Jul 2019 12:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563996432; cv=none; d=google.com; s=arc-20160816; b=QeK+L22vI8/XPvApSte0KbOF0A5c/Vxxykp+/Z9uKBcYJwotIxLtdvqOR6cmZEP/Dd vHaPnVDGhWGB4KADqz26BVR4B2jcSrAN/FiNy4PzKuH+6sLUCFyHLuksLFQr52pYzPE7 p5cUOSb9cAyTpEFlhDEeqpzIuI40krJq+pmKVjnpfelw9xFVr4rtw+QskfJeIZuVTTvz 6//yMIRKOaaQwdIuMHof7QZAMpBd+k4ff8u89/ISDt3QCHDWfpsKkzvtFywkXuZKfY0y MzO/1uX6Hn9ZoIleA9IQDZG2cmCR722CrXQjJdir1M2pFIMOFbE57tOkxEcR6qReOnxE imDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=IU8gVzvTj4FEVS/hFTH3haKdySYx9nqdy5hJ7NOTgWI=; b=O5MFoG3UVdYL8KTJDMjZDpA8C5lOCKdU5Pdpf0mPhtmAe4UHdT04oGzpEjV+Ax/RKq Y+qJbNvcXgj94cOIk/i+N84/cx90bv67TWeozzvmPfksDOf++0eQAZ6rsYgV8pD3OALj gMAhyLeeD9HaUjXs1GCITUDh/1XodgR6A7lVHIfp2iMCdpm7Ze7svpLgJN9ULH8A24mW fHmEYTJgtkYzAhZvZNht4g1eeb3E6kA8cxeVSQ2UgLzho7TtHuYF5y7ldt3uCymIukFy 8YWlRDLhCucoMQUQ3VzEQ4WiHSFaxQ2qjeicUTln1kdeK3NY/8+tOWf8Cq/c45ZQxcKU y8gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GcqJod7p; 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=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si17794573pfa.91.2019.07.24.12.26.58; Wed, 24 Jul 2019 12:27:12 -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=@google.com header.s=20161025 header.b=GcqJod7p; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728645AbfGXSpS (ORCPT + 99 others); Wed, 24 Jul 2019 14:45:18 -0400 Received: from mail-vk1-f202.google.com ([209.85.221.202]:51250 "EHLO mail-vk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726770AbfGXSpR (ORCPT ); Wed, 24 Jul 2019 14:45:17 -0400 Received: by mail-vk1-f202.google.com with SMTP id s145so20669651vke.18 for ; Wed, 24 Jul 2019 11:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=IU8gVzvTj4FEVS/hFTH3haKdySYx9nqdy5hJ7NOTgWI=; b=GcqJod7p+JyIflNNvAqktW8ugP3/sfvE8IsvT3hluVA5YIjA12SPjYoF1x008F5fly nXgKE4GywMEa2Mdgog2yacskN7Gq9k5P7QPk1/tvMHmz1DGSc/71S2hGaniOiJTBgzmN CA0a30McFwbyg+410YQbNL3izq522zsjwqH26Ra2Ct44Jgh7bQm459lMpdLuJwWiVWqj D6vO/G3Q2GcP+cfF53eeBVZgjFvUnvzsD2HXpH9rvPT84bCMaFnZr99vhO51FL6ukgAR qozS0BeX0hhMi6zY9Y7ennbBAw4jDL6gMTQ8MJR9AJ9TXBsMxAjeq1PmRjn4jvN/qh1E ihTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=IU8gVzvTj4FEVS/hFTH3haKdySYx9nqdy5hJ7NOTgWI=; b=au114XYywHQfXV0djVNS5l9U/tVXuE+9fjUvF0GTbYUiRlXI6aUaN3o9F+wXBlCZkV 6/gddEqbyf8HHj493PPRfA/+cRVL7bnRJQ2ew/oSbOcaFOslv/ZhgOuv1/2ifHsDllCl gSD+eKGKgdZBx1YIIvQt6Lss84iQYIP8qJQA3U8o8uYoNKE6A10tbIjjVFRWFM0h8Xyh +WxcLjltOZZ/e+3QRLEFhHijk5A/AM5OwSnMKPkOhdDM1WHbzwonMXei/1K+tvtqy+XM AaDsTIhB0YnCRJGALGhL+vUWlBS3StSk+UFw1P06lgDKnCxdYzJp133owD1vNimJyyg0 Ck5w== X-Gm-Message-State: APjAAAXa8ScFTuS38bMAhubpzxQD2QMpLOQ/d4ewf+uXWSc+OWircF0T 9HF/KftCmd3SN1L9J2XtpqNJh5m4 X-Received: by 2002:a1f:2909:: with SMTP id p9mr32218026vkp.23.1563993916312; Wed, 24 Jul 2019 11:45:16 -0700 (PDT) Date: Wed, 24 Jul 2019 11:45:09 -0700 Message-Id: <20190724184512.162887-1-nums@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.22.0.657.g960e92d24f-goog Subject: [PATCH 0/3] Perf UBsan Patches From: Numfor Mbiziwo-Tiapo To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, songliubraving@fb.com, mbd@fb.com Cc: linux-kernel@vger.kernel.org, irogers@google.com, eranian@google.com, Numfor Mbiziwo-Tiapo 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 These patches are all errors found by running perf test with the ubsan (undefined behavior sanitizer version of perf). To repro the bug fixed in the "Fix insn.c misaligned address error" patch you must first apply the changes in the Fix backward-ring-buffer.c format-truncation error and Fix ordered-events.c array-bounds error patches since these are necessary to get the ubsan version of perf to build. To build the ubsan version, run: make -C tools/perf USE_CLANG=1 EXTRA_CFLAGS="-fsanitize=undefined" Numfor Mbiziwo-Tiapo (3): Fix backward-ring-buffer.c format-truncation error Fix ordered-events.c array-bounds error Fix insn.c misaligned address error tools/perf/tests/backward-ring-buffer.c | 2 +- tools/perf/util/intel-pt-decoder/insn.c | 3 ++- tools/perf/util/ordered-events.c | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) -- 2.22.0.657.g960e92d24f-goog