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: 1476667 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=CPPnKBi9; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=fqmg9vnH; 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 desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (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 4Ff8Bp6q5Pz9sWp for ; Tue, 11 May 2021 04:06:42 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rLRJrK8OcY5cFDaajBVW8m57bwzhIYK11ZeKqDaKFh8=; b=CPPnKBi9/nYhSN0Q0DFFH9OkO aUM20xa6mQ6pI5RCCrcagTlJXQfURMGzP2U04sNOLpbURKe0QFeGJ8j3B9Gmc/WHZjDmOf5RpwVtV AVsg/ozKRhHuffzspPu66/71UXIGiXj+UxoHQDQoR6kiQeukYEse7Z+szMWdDh/OFkg1LuRiIUE1K +3Plas4iUrOCKXDj+t+R1fk7OzBvye2/bLliv0gbd+FIX2XvDDnOzybjHmVMOJ855KQmbKqGdwtbC MTI6P+3dIslfOP9uiEoNNoyVecSdrDWQpAubSwYe6YwZIOIoY/VSVUAOTNOXIxrcgVOQmoqZJyODD TDhrJI+ZA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgAIh-00FMnu-LM; Mon, 10 May 2021 18:06:39 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgADK-00FKpM-R7 for linux-snps-arc@desiato.infradead.org; Mon, 10 May 2021 18:01:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=tvChVv/Ka9icV+wWat+02cQrf3gmwmHQJPsI6Iwga6A=; b=fqmg9vnH77SQcdlf7xoyK3jA4M ShpmdWUXbiT6Bbi/mFzbYBNsY7nB4L2jVO+xATZrH7t1wKGjZIdVwNj7sCgPBKQ79WUdzioltfJ54 woSZrlu82KshzwZnk9lD/lcl1fJtuCl/RUYLcxNf8JOGaRogXKmCZ6XOw/p2JaTqL16hRvzAiaY3y HGPqybJA3B1W8W4vtvJUwJanXebffgJnzwH5AomCm1rN1bnC7FM3NUpahWmXdNpLb2n/dTh1arMNA tnM9QdcyGIYOhM49CPYesMJCW13d6b5HplrDrqW9t64JpZxpqzb/XYXa2sFyN6W78MCQNCLQCol55 bB8c1imw==; Received: from smtprelay-out1.synopsys.com ([149.117.73.133]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgADG-0090zH-0v for linux-snps-arc@lists.infradead.org; Mon, 10 May 2021 18:01:05 +0000 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 From: Vineet Gupta To: buildroot@busybox.net Cc: Alexey.Brodkin@synopsys.com, Evgeniy.Didin@synopsys.com, linux-snps-arc@lists.infradead.org, Vineet Gupta Subject: [PATCH v3 4/4] lmbench: lat_rpc: fix stray pointer 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_110102_083859_369E86B6 X-CRM114-Status: GOOD ( 12.71 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: | # ./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 @ 0x0000 [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [149.117.73.133 listed in wl.mailspike.net] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org | # ./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 +