Message ID | 20181010223656.31632-3-f4bug@amsat.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UyXze8pf"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42VpwW5XxQz9s7h for <incoming@patchwork.ozlabs.org>; Thu, 11 Oct 2018 09:40:59 +1100 (AEDT) Received: from localhost ([::1]:59447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1gANA1-00054j-5l for incoming@patchwork.ozlabs.org; Wed, 10 Oct 2018 18:40:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) 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 <philippe.mathieu.daude@gmail.com>) 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 <philippe.mathieu.daude@gmail.com>) 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 <qemu-devel@nongnu.org>; Wed, 10 Oct 2018 15:37:04 -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) 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) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> To: Laurent Vivier <laurent@vivier.eu> 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: 8bit 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>, Riku Voipio <riku.voipio@iki.fi>, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= <f4bug@amsat.org>, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
linux-user: strace improvements
|
expand
|
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; tv = 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);
Suggested-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- linux-user/strace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)