From patchwork Mon May 10 18:00:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1476660 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=e6CCCFEy; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Ff8543nHRz9sWp for ; Tue, 11 May 2021 04:01:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5E18584347; Mon, 10 May 2021 18:01:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gp4IbSx7XodR; Mon, 10 May 2021 18:01:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id C0E2484345; Mon, 10 May 2021 18:01:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2AF221BF3BE for ; Mon, 10 May 2021 18:01:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C0FE7842E5 for ; Mon, 10 May 2021 18:00:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XyTLdwhoZ5ZR for ; Mon, 10 May 2021 18:00:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.73.133]) by smtp1.osuosl.org (Postfix) with ESMTPS id 8FAE2842C4 for ; Mon, 10 May 2021 18:00:58 +0000 (UTC) Received: from mailhost.synopsys.com (sv1-mailhost1.synopsys.com [10.205.2.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id C06634013E; Mon, 10 May 2021 18:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620669657; bh=urN/mJuwk0h+dcZ1c31Vk5tLLFzY3xPVEQbIgdFnw7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e6CCCFEyQgOgj3ayF+Fbh2N0jhHDb9qrcP2p/ugKn8jz8L36Go/9cw0qTlfhmYyGs k2Fle26gG1pCE+RXvvQAIZYmQ2xzIQc30GRxOfmjvwN4S22UYr+W1dUNV9SYXZ2SIS L6mEoyKCV2xLJke75uPjhslyqcd3Pa5vbIKJDR/IXrM96AvjSOp2ZoJ/1QvEdZArKF /wYqLJP4LfUL7w5Lh38wuolxoOXXwgaIlhbL9vRXCGMoeV64nxuTBq9nQ8VlZIpaEH U76g2uHN+ue2AGQ62Qj2awz1XGBst9YkCDxjAjB4gGand0bzSZ5mkGfSCWonfCx1Lc 1bfLPiuPlHZSw== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 5295CA0068; Mon, 10 May 2021 18:00:56 +0000 (UTC) X-SNPS-Relay: synopsys.com To: buildroot@busybox.net Date: Mon, 10 May 2021 11:00:49 -0700 Message-Id: <20210510180049.61421-6-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510180049.61421-1-vgupta@synopsys.com> References: <20210510180049.61421-1-vgupta@synopsys.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 4/4] lmbench: lat_rpc: fix stray pointer X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vineet Gupta via buildroot Reply-To: Vineet Gupta Cc: Evgeniy.Didin@synopsys.com, linux-snps-arc@lists.infradead.org, Vineet Gupta , Alexey.Brodkin@synopsys.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" | # ./lat_rpc -S localhost | potentially unexpected fatal signal 11. | Path: /lmbench/bin/arc64/lat_rpc | CPU: 0 PID: 62 Comm: lat_rpc Not tainted 5.6.0-00224-g8e1b159f529e #39 | Invalid Read @ 0x00000001 by insn @ 0x2011f110 | @off 0x6c110 in [/lib/libc-2.32.so] VMA: 0x200b3000 to 0x201b8000 | ECR: 0x00050100 EFA: 0x00000001 ERET: 0x2011f110 | STAT32: 0x80081082 [IE U ] BTA: 0x2011b87c | SP: 0x5fffefe8 FP: 0x00000000 BLK: 0x20103242 | r00: 0x00000001 r01: 0x00000002 r02: 0x00000001 | r03: 0x20101eb0 r04: 0x00000001 r05: 0x00000001 | r06: 0x00000000 r07: 0x00000000 r08: 0x00000001 | r09: 0x2019d8b0 r10: 0x20039fc4 r11: 0x5ffff0f0 | r12: 0x2019d6d0 r13: 0x2019d748 r14: 0x5ffff588 | r15: 0x00000000 r16: 0x00000000 r17: 0x5ffff708 | r18: 0x20039fc0 r19: 0xffffffff r20: 0x201ba010 | r21: 0x00000000 r22: 0x00000000 r23: 0x20039fc0 | r24: 0x00000bd0 r25: 0x00000073 Segmentation fault Signed-off-by: Vineet Gupta --- ...bage-pointer-for-lat_rpc-S-localhost.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch diff --git a/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch b/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch new file mode 100644 index 000000000000..619ec3861463 --- /dev/null +++ b/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch @@ -0,0 +1,25 @@ +From 3830453a06269912d2772fe8c31bae44f27bb131 Mon Sep 17 00:00:00 2001 +From: Vineet Gupta +Date: Fri, 8 May 2015 11:35:58 +0530 +Subject: [PATCH] Fix garbage pointer for lat_rpc -S localhost + +Signed-off-by: Vineet Gupta +--- + src/lat_rpc.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/lat_rpc.c b/src/lat_rpc.c +index 9c021926d761..ff4380ff38f3 100644 +--- a/src/lat_rpc.c ++++ b/src/lat_rpc.c +@@ -101,6 +101,7 @@ main(int ac, char **av) + char *usage = "-s\n OR [-p ] [-P parallel] [-W ] [-N ] serverhost\n OR -S serverhost\n"; + + state.msize = 1; ++ state.server = NULL; + + while (( c = getopt(ac, av, "sS:m:p:P:W:N:")) != EOF) { + switch(c) { +-- +2.25.1 +