From patchwork Wed Apr 1 09:47:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 185134 Delivered-To: patch@linaro.org Received: by 2002:a92:de47:0:0:0:0:0 with SMTP id e7csp329639ilr; Wed, 1 Apr 2020 02:49:35 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuVIuRErqc6RAAtajKC8DyvgY8x4ljmwF+K8q6A43cUaXpwPoYqTvZRayfhNaYzRZgKYqGZ X-Received: by 2002:a05:620a:120b:: with SMTP id u11mr8916909qkj.55.1585734575288; Wed, 01 Apr 2020 02:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585734575; cv=none; d=google.com; s=arc-20160816; b=CN2pdKksFBgkRcs5BnoHq4uaBKU1hOVqlpVgMJvfbFGtA+WSWISBYP1sNQhv5wBuTQ 2awqS7OYqUXaSrNIe7XR+NEhDLYYrC76rI0o2n0XWv3A9+mXror1s8Yb77jdTrhcdmpk ScRo52Eu+zIvZJi/4nrGkj3XSiThV9ntZkLIW5YN/BScCJskn3FtIe3b9tgCEtxlYQje +uCcCfOAOev+znIIiWBPpj4SrAgPFOFYLMabILy19iDkBE3yTJBuB/PL7j+cqUiLGRk7 hmvbrUnePQvn4IXI/xCfHz+P+ETB6at2GRnfNnxjvxcrYgEaWgVnS46WSoMxMf7W0iXi j5wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=YOymoiYKg8zfvksmzTC/HgGcGdDABmXsN+Kp7tifL6w=; b=DoCcPV6rYE7NseP6Xt25n6sGAbwvBuuylmqqotFURKRQ8cINmhyDXhzlTeNDz3qze7 mUQICL1Z+hVE3KABLAdA+C3WlNWoD1Hw5WWC73uNQQAfEZ3E6tH8j4cogr+BfQwhj781 EHRxQguTowWT+WWIWNb1A/xFoCxtqkoIszoN4ZKcy6w+EwCi3OWaktkgjF7qb2aQTNo7 SK8QOzrM9l71uhjWHO+rxAa3CUQMPef3MbVElhIghSqqP2kjkcdmj+sH7sqwuzgBe5zG W/ZRlMM5GdMRLNClseah+/8YV3G6I9Btjdlj+ccrcTHY44XjdB1b8iC0+Gy/IzeW093c fBcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FtOVOPBL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r23si838208qke.2.2020.04.01.02.49.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Apr 2020 02:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FtOVOPBL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJa06-0007Ox-PG for patch@linaro.org; Wed, 01 Apr 2020 05:49:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38386) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJZyf-0004BI-Ah for qemu-devel@nongnu.org; Wed, 01 Apr 2020 05:48:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJZyd-00028o-TC for qemu-devel@nongnu.org; Wed, 01 Apr 2020 05:48:05 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:37549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJZyd-00027m-JC for qemu-devel@nongnu.org; Wed, 01 Apr 2020 05:48:03 -0400 Received: by mail-wr1-x431.google.com with SMTP id w10so29836201wrm.4 for ; Wed, 01 Apr 2020 02:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YOymoiYKg8zfvksmzTC/HgGcGdDABmXsN+Kp7tifL6w=; b=FtOVOPBLifclokzug9eZWlA7I8vUXEu0GO/6wq1Wkzsj0LnB0LkXklXipGXvYHGigB bgtFtpOH6nzPogVGPniygEBhqLE1jacUMLARDf+0LgNHbDvYRiZ4eOhNVpn6j1KkBcPw VU0rIzN4oyHqbXFAhm9uWFxTrMTMQGzkgl7BzlkghK4OsidcZImE3LOgp4oaoXi0zaWP LxNv1GCajZJjvRhBlt53VbiI90TUmI9o7r3CCVrMZHf8ws24yBaJt5UZY7gePGxIajR2 K5ilSJQFuTtpaNSAS4sP9dh+YP0jZBsdnoMajD2esUkBjUsJUHTiJtOvWMVw3CR5cN0+ CSRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YOymoiYKg8zfvksmzTC/HgGcGdDABmXsN+Kp7tifL6w=; b=eMrfa45DTktEn85bzbHsSzb14RT1mRSLJtYvQJt4M05+59zc3yZmT63da0RA0kqKyA kIOCG2LyRQ3zmgTEGCoetIdTo2VTU82JRDoDuHL62NH4LZdyMwSDfwTbv7MXd6fVTLij vJCsHMOHuMbuTTgN5hvUUiRSyI5ANTCjMN39iSl0+KpLqMYKbqLCw48pMEWfeYX+T16y I1gkPgclCBHXTK40KD6wpBZaR87qmbgSBA9xdLFj9wMEESXXcA/4PDWkNxDLrZea2T24 /FtJZbYMiYJG4Io55dDx/pBgWg+zFsso4brP0yKqDKNYRgO4KEeOhvVfcL25TZiMLW0X 7CYw== X-Gm-Message-State: ANhLgQ1bwuo4waiq3/epuHQyTA23x615oICTysXyJ8E1m+qASnvtPg33 BejOASCgQ5pcjn1yvndQgGhX0A== X-Received: by 2002:adf:e942:: with SMTP id m2mr24772950wrn.364.1585734481991; Wed, 01 Apr 2020 02:48:01 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z129sm1973940wmb.7.2020.04.01.02.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 02:48:00 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B1FC61FF7E; Wed, 1 Apr 2020 10:47:59 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH for 5.0 v2 00/10] A selection of sanitiser fixes Date: Wed, 1 Apr 2020 10:47:49 +0100 Message-Id: <20200401094759.5835-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::431 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, Here is version 2 of my random fixes series. I've swapped out my fix to softfloat for Richard's better targeted fix. I also did a re-factor to init_guest_space so we can use the sanitizer builds on more of the guests. Initial testing is showing up a few more issues but I didn't want to hold up review of the changes to date so I can put them in a PR this week. The following need review: - linux-user: completely re-write init_guest_space - linux-user: clean-up padding on /proc/self/maps - linux-user: factor out reading of /proc/self/maps - target/xtensa: add FIXME for translation memory leak Alex Bennée (8): elf-ops: bail out if we have no function symbols linux-user: protect fcntl64 with an #ifdef tests/tcg: remove extraneous pasting macros linux-user: more debug for init_guest_space target/xtensa: add FIXME for translation memory leak linux-user: factor out reading of /proc/self/maps linux-user: clean-up padding on /proc/self/maps linux-user: completely re-write init_guest_space Denis Plotnikov (1): gdbstub: fix compiler complaining Richard Henderson (1): softfloat: Fix BAD_SHIFT from normalizeFloatx80Subnormal include/hw/elf_ops.h | 7 +- include/qemu/selfmap.h | 44 ++++++ fpu/softfloat.c | 3 + gdbstub.c | 4 +- linux-user/elfload.c | 273 +++++++++++++++------------------ linux-user/syscall.c | 80 +++++----- target/xtensa/translate.c | 5 + util/selfmap.c | 74 +++++++++ tests/tcg/x86_64/system/boot.S | 5 +- util/Makefile.objs | 1 + 10 files changed, 303 insertions(+), 193 deletions(-) create mode 100644 include/qemu/selfmap.h create mode 100644 util/selfmap.c -- 2.20.1