From nobody Fri Nov 7 12:35:13 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 15392113232821020.7267448308061; Wed, 10 Oct 2018 15:42:03 -0700 (PDT) Received: from localhost ([::1]:59451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gANB4-0005vl-44 for importer@patchew.org; Wed, 10 Oct 2018 18:42:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAN6K-0002dh-Li for qemu-devel@nongnu.org; Wed, 10 Oct 2018 18:37:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAN6H-0000J9-TI for qemu-devel@nongnu.org; Wed, 10 Oct 2018 18:37:08 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:36302) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAN6G-0000I4-KB for qemu-devel@nongnu.org; Wed, 10 Oct 2018 18:37:05 -0400 Received: by mail-wm1-x32e.google.com with SMTP id a8-v6so7318473wmf.1 for ; Wed, 10 Oct 2018 15:37:04 -0700 (PDT) Received: from x1.local (26.red-83-32-208.dynamicip.rima-tde.net. [83.32.208.26]) by smtp.gmail.com with ESMTPSA id q77-v6sm10344886wmd.33.2018.10.10.15.37.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 15:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YYHzCMBLWBqfoBZPbPvnMrKs+40SHNKrFAhfcyF3gjk=; b=UyXze8pf+zGc4f2VWKYHMO17KfvUdp7fpTCh1cVYEMUXOg4kakOofgiA0W8rUrcEXg 6jKEhmtKhtR5x0tsVdhOfxqeBqW4GHc855LHTGYnHtPiMjxSQ3V4IR8F0onMpR9h3XTS Bj2TeS1PGaZG1xIve4fPeOIbvJ+G0CBQsYcaATcQ0Q6UuDjj8eEzFG+dNzx3ypamvcYU 9BZJkT6kwQoopWpMC1I/VK2e6aEJZtUUCiuvh9KalPGNCHlUAI9+LtUXNB4SI6bPmW4f eVEH82mmbn7rEapOhCKlIhdr3yfQKBTypkyLyJOKhJ6mUzeBo2ki+z9PApSvlIKmIt2o 13FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=YYHzCMBLWBqfoBZPbPvnMrKs+40SHNKrFAhfcyF3gjk=; b=sERnceL13P5QjmPI274/Gjw17H/Nzh+GhhjL6oxX/2lqqV9PCwAwOBO84ApxMw097R 9+1BOZFt+k2H1o2opSBAR8BgroDBrq7hHAjER/zWnqlKIw/mbLofSo5C6UT1pLfX2XGH YKYX8rusoeSC0KeDC2CCzxTyp1g9kxjFhNdvIVHXx0E4BWsQKbkjI2Lf+fxtx+1mpxPL 7IAUsFyFcGWr3YpDf/V3FrQv+1OXceWm55M90EaYd1lh1E2UzucZGCwi4g1zk++ChhoI 6cMo3RICZImwjvee2TBUtBI7iiIccHEnERNTy7lD4uCj0ouz/xkmN8iTbPi4tWwVrh7Z 26gQ== X-Gm-Message-State: ABuFfoguyLvIEOIL6bGJXB4RALOp/91lvvxNzJVUxt6e2fTw3KJ4gzxM sYQ/lZK42/n1lmQuCba6FX4= X-Google-Smtp-Source: ACcGV63V6wMvwfeJcd7jyNfzy+Z9EMXqqlOwCfSncJHYvPnCpNN7QGfOhaBivZJ4BNIKZLnxrVKkIA== X-Received: by 2002:a1c:6783:: with SMTP id b125-v6mr2425243wmc.142.1539211023108; Wed, 10 Oct 2018 15:37:03 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Laurent Vivier Date: Thu, 11 Oct 2018 00:36:48 +0200 Message-Id: <20181010223656.31632-3-f4bug@amsat.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181010223656.31632-1-f4bug@amsat.org> References: <20181010223656.31632-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32e Subject: [Qemu-devel] [PATCH v5 02/10] linux-user/strace: Display invalid pointer in print_timeval() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Guido=20G=C3=BCnther?= , Riku Voipio , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Suggested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- linux-user/strace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 33f4a506a2..c95557bf83 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -1173,8 +1173,10 @@ print_timeval(abi_ulong tv_addr, int last) struct target_timeval *tv; =20 tv =3D lock_user(VERIFY_READ, tv_addr, sizeof(*tv), 1); - if (!tv) + if (!tv) { + print_pointer(tv_addr, last); return; + } gemu_log("{" TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "}%s", tswapal(tv->tv_sec), tswapal(tv->tv_usec), get_comma(last)); unlock_user(tv, tv_addr, 0); --=20 2.19.1