Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1141554ybh; Tue, 10 Mar 2020 15:43:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtf2eFqIFOdu+yXb3kPEsXf6kPEYWuHWAcLXbAVI1OYa4o2s5MmQi6urzNhjB+5UtyCuqcQ X-Received: by 2002:a9d:6443:: with SMTP id m3mr39048otl.20.1583880186594; Tue, 10 Mar 2020 15:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583880186; cv=none; d=google.com; s=arc-20160816; b=CIAkCmU4x+ysmbz1t157DgEY+3pi97S3+om6wqmi6yL2Ak/nU4H4PFZQn3C4249iUl avjsgnye6bFrlgMmuLlqs4wSMUVNpGYp2VPU2aJ1RHF8IODVx8bj3h2Xssqv9DfPoSGm rJuoJH1ueTKxU6PND0fxRsi41CH31jzyEuNfrwjSu6O+zWWTsp5WpCYkQQc8r4JQ3KPW MgMaQHAS239heU32GNNRkLxFAoVrNVqefdiBpYjdOAphNJ8GTJxl7E4Djbtb5kFijrxk wgd0DYL6nYuwz/B60pO/SRt89ImDW23ck9T9+o27Q3PZ78jpRwpoGekypzxoCJ8utdP1 YPQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=o5AxnRfPTcsAKxGRA1wb1UHySfKCRTZZKTvAVvSn40o=; b=T2lYCSTc9voXXn02eyRQ4c18DR6WEDil0rXd/Y2Pz/FuiNzSVJDQB0QGp1jrxMy34f +nkWZfJZPNNwCCX1OZ8udZJSeDwxhUsq76kzih/cUtTojYiwOsM4HCAF9NyHyGpErQjQ AP+oe4WOYiuy6tnWFBdv8IoqnA7J1YKeRggIugjipgkPHHjO+CWBRZCadmVnJqc7UB05 sUS7ZrPgcJfUjYvXRp6tv0u0zkh+qIDecK1elJ5mkbvUaZjEjJ14sPw6ABsBshFI5oHR 3K7OVQySKHfFBT9RaXXT4HgpR63P+QMN/HO02Sx0kREWYprogWKVgfqjBRovAJ+yFMUY a8yA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23si129835oii.20.2020.03.10.15.42.54; Tue, 10 Mar 2020 15:43:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727719AbgCJWlE (ORCPT + 99 others); Tue, 10 Mar 2020 18:41:04 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:58882 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbgCJWlE (ORCPT ); Tue, 10 Mar 2020 18:41:04 -0400 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 236F272CCF0; Wed, 11 Mar 2020 01:41:01 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 1A1F07CC7FF; Wed, 11 Mar 2020 01:41:01 +0300 (MSK) Date: Wed, 11 Mar 2020 01:41:01 +0300 From: "Dmitry V. Levin" To: Bernd Edlinger Cc: "Eric W. Biederman" , Christian Brauner , Kees Cook , Jann Horn , Jonathan Corbet , Alexander Viro , Andrew Morton , Alexey Dobriyan , Thomas Gleixner , Oleg Nesterov , Frederic Weisbecker , Andrei Vagin , Ingo Molnar , "Peter Zijlstra (Intel)" , Yuyang Du , David Hildenbrand , Sebastian Andrzej Siewior , Anshuman Khandual , David Howells , James Morris , Greg Kroah-Hartman , Shakeel Butt , Jason Gunthorpe , Christian Kellner , Andrea Arcangeli , Aleksa Sarai , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , "stable@vger.kernel.org" , "linux-api@vger.kernel.org" Subject: Re: [PATCH 2/4] selftests/ptrace: add test cases for dead-locks Message-ID: <20200310224100.GA1563@altlinux.org> References: <878sk94eay.fsf@x220.int.ebiederm.org> <87r1y12yc7.fsf@x220.int.ebiederm.org> <87k13t2xpd.fsf@x220.int.ebiederm.org> <87d09l2x5n.fsf@x220.int.ebiederm.org> <871rq12vxu.fsf@x220.int.ebiederm.org> <877dzt1fnf.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 02:44:01PM +0100, Bernd Edlinger wrote: > This adds test cases for ptrace deadlocks. > > Additionally fixes a compile problem in get_syscall_info.c, > observed with gcc-4.8.4: > > get_syscall_info.c: In function 'get_syscall_info': > get_syscall_info.c:93:3: error: 'for' loop initial declarations are only > allowed in C99 mode > for (unsigned int i = 0; i < ARRAY_SIZE(args); ++i) { > ^ > get_syscall_info.c:93:3: note: use option -std=c99 or -std=gnu99 to compile > your code [...] > @@ -1,6 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0-only > -CFLAGS += -iquote../../../../include/uapi -Wall > +CFLAGS += -std=c99 -pthread -iquote../../../../include/uapi -Wall Wouldn't it be better to choose -std=gnu99 over -std=c99? -- ldv