From patchwork Fri Oct 14 08:49:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Elo, Matias \(Nokia - FI/Espoo\)" X-Patchwork-Id: 77647 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp196829qge; Fri, 14 Oct 2016 01:50:58 -0700 (PDT) X-Received: by 10.200.46.226 with SMTP id i31mr11003328qta.13.1476435058812; Fri, 14 Oct 2016 01:50:58 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s84si9049148qks.32.2016.10.14.01.50.58; Fri, 14 Oct 2016 01:50:58 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE dis=NONE) header.from=nokia.com Received: by lists.linaro.org (Postfix, from userid 109) id 7E73661B85; Fri, 14 Oct 2016 08:50:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id C262B61B90; Fri, 14 Oct 2016 08:49:39 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A382261B93; Fri, 14 Oct 2016 08:49:35 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0110.outbound.protection.outlook.com [104.47.2.110]) by lists.linaro.org (Postfix) with ESMTPS id 7B240609FB for ; Fri, 14 Oct 2016 08:49:28 +0000 (UTC) Received: from HE1PR0701CA0065.eurprd07.prod.outlook.com (10.168.191.33) by HE1PR0701MB2266.eurprd07.prod.outlook.com (10.168.36.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.5; Fri, 14 Oct 2016 08:49:26 +0000 Received: from AM1FFO11OLC005.protection.gbl (2a01:111:f400:7e00::155) by HE1PR0701CA0065.outlook.office365.com (2603:10a6:3:9e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.5 via Frontend Transport; Fri, 14 Oct 2016 08:49:26 +0000 Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.241 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.241; helo=fihe3nok0735.emea.nsn-net.net; Received: from fihe3nok0735.emea.nsn-net.net (131.228.2.241) by AM1FFO11OLC005.mail.protection.outlook.com (10.174.64.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7 via Frontend Transport; Fri, 14 Oct 2016 08:49:25 +0000 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u9E8nCa6005821 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 14 Oct 2016 11:49:12 +0300 Received: from 10.144.19.15 ([10.144.104.92]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u9E8nCVn005806 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Fri, 14 Oct 2016 11:49:12 +0300 X-HPESVCS-Source-Ip: 10.144.104.92 From: Matias Elo To: Date: Fri, 14 Oct 2016 11:49:10 +0300 Message-ID: <1476434952-8282-4-git-send-email-matias.elo@nokia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476434952-8282-1-git-send-email-matias.elo@nokia.com> References: <1476434952-8282-1-git-send-email-matias.elo@nokia.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.241; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(48376002)(92566002)(97736004)(2906002)(50466002)(110136003)(19580405001)(7846002)(77096005)(87936001)(2351001)(229853001)(106466001)(19580395003)(305945005)(11100500001)(2950100002)(6916009)(42882006)(50986999)(76176999)(33646002)(107886002)(5003940100001)(586003)(36756003)(189998001)(50226002)(68736007)(450100001)(81166006)(81156014)(8936002)(8676002)(5660300001)(356003)(47776003)(626004)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB2266; H:fihe3nok0735.emea.nsn-net.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11OLC005; 1:LsCA/z06XiA7W/YhnHIZ+YoKpzD7NY6e4Mq0/3n/q095rjnz3x4h6N1To1ehfT5vSwFnZ6JFKIOuo39AUrCS0wJ5c1yS6pes2BB4pROXl+/h+b7ou/BB9TQkr+hZVz9MsK3hHgmmrVCW1MXpVfI2KOeIeQeIkVAgurQRW+ObsihB0w2BMAwxV29ePsP4uQ4vfRbLcI0kuLO5IIsTF/dlxZSjtEhZ5OGaijOrNw8Mri9tuIY0ihDHpWrEwiuokem8MYl9ghF3TFtRoDmlzGTb5S9TbamSZVZUgj9G51BRLhPkwAn1BiNlWCAD7P3o7ytKliyOiORTqkxteTWbDlHoPqDUZO0s4C34jFMgyKltJBwJGTk5xiV/2ZdEcjPaCCO4EmsWUpcdSP/V5jIqefsdZpZ+apYRQepLpxQx83UsrtFoc4n7I1Mz6KldRFGlx1ccDvSXupyNlTKBvTfjj4hwkqXR4WlzUJfB3mk3U2f4HKdfX2kNdE9Zglsia/FfqyTW MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 3e724b30-0572-41ec-e276-08d3f40f0097 X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2266; 2:3fDJCg+GRrEKqX5YZpoRI+PuZj43ao10EH+z6gW52wbDTxRk2PNK+Nuct1dATcSSw7Lleq5jN/GJby317ifbVdj9g+fCd0+9ML7mGSemINUAqjv9x2F2JnAb+3rz+SJoMKfpF+iHNFbf/pf0GqEL1Go8Vzm7u5+13bzdh/7G4HhkvYHnWTpi/D+Ntr8FqMX13w1TTFu0188ffjHJLho2qA==; 3:uJd1DD0u0NDExb6XE/ON/kIHTOnzkqjT9AXFs6SpWd3+rbovSer6kTfXNyOU5UB0YmCyycbUx4j29GGOdSoDfDpX/UxflqwJGcBGUP4kBocqguGKOcHFDe9tUtkYUFYsnSEq7gUjv61hpj67uh12uMZbHY27ORauTGJsW2UCGIj4njr3O3IotqY9ltgYvfMOtGqrmLbSEM5XA4wVhITwWvFgjoJ8T3n249Fc6WpldEVMZ8lVHEuJEenCF9CWRqlORHXmxYYHy0jO1DPPv2HSIUjygJo6tMkYP2vgo+mEmB8= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:HE1PR0701MB2266; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2266; 25:CsdVyamYbw2xK7xjyH2TrVc9/Y5wSjenE/7bfTCSK+wVr81S+4ApMxsESj6/EM8tOS9o5cyGBdXtS0iOFXRJarIC6HAbfK9ukNmxcg9brKYcJOEbwX9xaRov3YltVQbK3VBp/R4sUpTrkH8emjnCeTS8MfCSgsTBjKIP+19KQhwrdoAGFOb3aaLEyDO8P9gfQ31nvTiP1r+F7sOQF+QBqj6I1Pob10NQgiW3RYIPbKCr4SUE0Eq+p1ZWSi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aUzP4AnwVHzCQORqlgKYnN1to6OJSA3B7Hgp9Fge7b8cjptgakd3NvFDB8Y9AHUK6OkABgXA4VS7WgaJWIsIFhTdk6Lxway4KTYCC/OwZtYMv+R9TwJnW5+7qtqynKnVMWcH5CLdKVPr3pohIg2hWt2pq2Qr9dUGnJYa7USzs7docLx2BMGwLjr9BXGNxK7mVE13VNjk6eUfDP82VM0UUX2341GstsEGjYNEXj/ajzGOxiW0kxFNTQikA1ApLNa7eDgLjldXW7omRVV7Ub6GVLPiyqZSSQAC55Sr/wqisgiORmG0UIe2nAg1tTWlh00FMgIaBaj4QZeOkPeYAbQFpFZXXs6klJiK+/KWaQsf3v+R8Yg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(82608151540597)(22766785571888); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(10201501046)(3002001)(6055026); SRVR:HE1PR0701MB2266; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0701MB2266; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2266; 4:eMwqLep/VxabOdg3L5wXBiOuk6kcqpkUDAcr48EQeTB3WF1cSY/Sodok2fuadKbazZyE1Q7VZWPHXL4ab9ul35vJfGHBOOKsxFRfIsx2a6kX/+Nd4Fl5jafTzB2YGVilypEVVEltDV9BXltTN97mINP7tvNlAWkF6im7lM5CEPd4xJiHCa7YoY2FvgZykQoWyuT9sMiMAm7EegXA32HkNamRx+YimUEG/mKbqRxMdttFKpCAMy6zvULXOafMa6FludPgkmednvbopwJFSxrxXt+Uj+/TisBAA1MWAjluLw8uD9b35qYhB1VhlHOMqzugisdfPiRmfS332vF39rgSsWHo/0/J7JFVpPFHG+WEDcdcqVOKAQh4M8u1wBCkP00qluBQatN3liJl985wq3HFNWeQTK/2AQk3W3nIoxGI01r0W+IDUeo4YdUq+RbQlNj12D3Ley+Eqr1f8GAJrJiVclAIwY1/zEVTNfnU4aCGwjx7XIbZk6RtcQRDbm4SzjVL+xMkIabBic4H855latZFy0lwj9qsLSAq3bLWU4DfzO0= X-Forefront-PRVS: 0095BCF226 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0701MB2266; 23:8xXNQuXfZIrGSB9sbHmizEgI0K5ArRNSfhdf0YA?= =?us-ascii?Q?qa94b+Fr1MtO52esO9QR14MXzP70kptbR4+JttcYWihJdfdSARWsw17uD6u6?= =?us-ascii?Q?I1fpJksM8uCWjGPzNLlKgpZPSse4TOe1R6rQBRJ7ctMwdlnnuT4WnmOwx9MB?= =?us-ascii?Q?isx14SGataBEmuEGqAfGgT1cIejsdcLiOf3ja7wzJXz3X7TsLyrdET9epCbX?= =?us-ascii?Q?5akRKPrfgXSNGBbuib0H5AkTjQWDjKx/sAANPtz/aTchJJia88YewPC+kG4O?= =?us-ascii?Q?1ANMgWMjwtPTBL1rU8prNJGCNOYCbHhr9qwn2ZXHpjc1gEvZEHusz2O+D47j?= =?us-ascii?Q?DWIKzJ1mu2716EwtHCYIOTuQ/ofU03xqi5BVdDEIDhWeXPVQXlewjZz205mk?= =?us-ascii?Q?0IOTGcTemGlKpC7CM2gx+OHCqFCBxQWGbQVeJQ+AffDT3a1Zwtqj7cRS1qB9?= =?us-ascii?Q?SwDU89FWQVw+g5ODYquCM3OCwhNq0eSaUFo+BmaEVllVZ+hSdWuCjPPtnc/T?= =?us-ascii?Q?vxTPms6D14x7k0mVoeaumGVrHVvBuCQpi7ywQ3u3Zgg7pK+vP6pQoQuDdBbb?= =?us-ascii?Q?6VVBqf9enryFNQzHfpjYwNTZm/v/9YPz8FCB3Rb1tb9uXzw8aD5VBdUy8jKZ?= =?us-ascii?Q?aseq/tmCvyQeUTyH4yL+7zL3r9KpQ/YSK9Z+z1rmhZ5K7cs7BWjIPhrGJPGj?= =?us-ascii?Q?YMyd46/QYtaDEnGIF+6tIP9v4mx7ZxqQ3LmJiJS+4zEzepjhtPf6ipQhtNJS?=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qc0Ct0LlUS4znlwOUftxxssO5eOGWzfhKzMbVw1klLyP08nC9Pn6RoN+dnMWEQMk+FthNPrYftIsHlYqr0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2266; 7:czG2INb7/LCyWBywzesVvW/hUKNLxYKgjsecTCIjUfcq8dkUs3so/lMHVZ66gM9CSofLa5MHdEPRVSYVxZTgkQhY9XP22iSvOqWW3U5xpVaKXQjuM7908dXofAuESxUpfvw2drghHS6vNyK+rJgivTCDwO0GAIygzEEKqXkL59VEYNj74gffJP1ByVZfIMXa7KK9PNOhoG0hemj/Nc/P95tC9LlnCI7zw+oQAy0tmCj3XSp1ExyAFZ9TsWdHHetgbHBWE5L6iuyl/bihl3fVe8cCj/uL2/7yPaJsxl7HpMWqk9BR953GodnZMLnHCfvJtzilLHAlndcY4OpkRrOd4TkW5BzcmuVCE+hOjxdBlWk= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2016 08:49:25.6020 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.241]; Helo=[fihe3nok0735.emea.nsn-net.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2266 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 3/5] linux-gen: queue: fix creating queue with no name X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Previously trying to create a queue with no name (=NULL) caused a segfault. Fix this and test it in the validation suite. Signed-off-by: Matias Elo --- platform/linux-generic/odp_queue.c | 8 ++++++-- test/common_plat/validation/api/queue/queue.c | 10 +++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index bec1e51..7af2515 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -86,8 +86,12 @@ queue_entry_t *get_qentry(uint32_t queue_id) static int queue_init(queue_entry_t *queue, const char *name, const odp_queue_param_t *param) { - strncpy(queue->s.name, name, ODP_QUEUE_NAME_LEN - 1); - + if (name == NULL) { + queue->s.name[0] = 0; + } else { + strncpy(queue->s.name, name, ODP_QUEUE_NAME_LEN - 1); + queue->s.name[ODP_QUEUE_NAME_LEN - 1] = 0; + } memcpy(&queue->s.param, param, sizeof(odp_queue_param_t)); if (queue->s.param.sched.lock_count > SCHEDULE_ORDERED_LOCKS_PER_QUEUE) diff --git a/test/common_plat/validation/api/queue/queue.c b/test/common_plat/validation/api/queue/queue.c index dc3a977..1f7913a 100644 --- a/test/common_plat/validation/api/queue/queue.c +++ b/test/common_plat/validation/api/queue/queue.c @@ -137,7 +137,7 @@ void queue_test_mode(void) void queue_test_param(void) { - odp_queue_t queue; + odp_queue_t queue, null_queue; odp_event_t enev[MAX_BUFFER_QUEUE]; odp_event_t deev[MAX_BUFFER_QUEUE]; odp_buffer_t buf; @@ -173,6 +173,11 @@ void queue_test_param(void) CU_ASSERT(&queue_context == odp_queue_context(queue)); CU_ASSERT(odp_queue_destroy(queue) == 0); + /* Create queue with no name */ + odp_queue_param_init(&qparams); + null_queue = odp_queue_create(NULL, &qparams); + CU_ASSERT(ODP_QUEUE_INVALID != null_queue); + /* Plain type queue */ odp_queue_param_init(&qparams); qparams.type = ODP_QUEUE_TYPE_PLAIN; @@ -185,6 +190,9 @@ void queue_test_param(void) CU_ASSERT(ODP_QUEUE_TYPE_PLAIN == odp_queue_type(queue)); CU_ASSERT(&queue_context == odp_queue_context(queue)); + /* Destroy queue with no name */ + CU_ASSERT(odp_queue_destroy(null_queue) == 0); + msg_pool = odp_pool_lookup("msg_pool"); buf = odp_buffer_alloc(msg_pool); CU_ASSERT_FATAL(buf != ODP_BUFFER_INVALID);