Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5906723pxb; Mon, 28 Mar 2022 19:52:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLcZ+jJBnt/f3oRw34yOLz1mbbvAMWwsHvX4XzJu1y9zRhrijA28yEbyrjFurtLSN/nUa/ X-Received: by 2002:a05:6871:79f:b0:db:1ebf:429d with SMTP id o31-20020a056871079f00b000db1ebf429dmr296202oap.146.1648522322230; Mon, 28 Mar 2022 19:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648522322; cv=none; d=google.com; s=arc-20160816; b=gr6xkpsFVRZrDa4PxR0WtCdZFc3kLtLAQmgbPuOO55pTcgV+/+W5EkZtfcxHyn3Rq0 6TLzp5rX9xnE29HYf4UOFr06TzU2uLu4N2LWhagQ43TvaQYt9EMu/oE27+a+Zt3XIO/b Zwi58LJ4+WEnovA0i4wDiftAQY5h5m7GCFgzOm1e1t++I4gtcSNmRMeH5KPZ+CxOkOO7 xa4CG66TeBEP9NWzoHoGfC0cG1DYldbiADMGAFvihzuw22OCQECDjjRsO4z2/FFtBIIt gwSyTaSrihRETZ4pHCOWyCvOS44eUF6jHEnrXijhQDLuA1G9e+tgs44x/vd0oV+utD89 RVrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=ZPkIZ/XPkzUw3GjYvyN+kAbsucuIGnV2jh6uGeU7IYw=; b=Xa7JWdc22EOIDqtakmjACtCZj3cs1stdc6Kav+6RxIoc6r08oXjJSB6YtrNOJp+2sU TZLv9Dj4CPPT3OKaZYAh0B6rD06bTwo46Ah7czcuWAtM0sjoNnf3KFNQXtsnUJxOHNHL a0EfaV4nNkDtl8yQBi1ZDDjt02qphi7rxqFY2Q/XJ46R1m3oKwJAcgGITGRl1WNGj01C Cc4r8lYqNcCZxREzfr7ccLJA51xLyYsS8KK77TiTZf/IwPWmK+bZ2fHKwT0etoVd74QQ DtAKY9lH9U1JS7vx6MGXqsbsokr4rupX8HYXUz6WqcvGxXtUh3U/H2z1evwZj6CcA/E/ ICAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Nqd4JoQK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bp19-20020a056808239300b002ef0c347609si14956585oib.137.2022.03.28.19.51.49; Mon, 28 Mar 2022 19:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Nqd4JoQK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbiC2CVh (ORCPT + 99 others); Mon, 28 Mar 2022 22:21:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbiC2CVg (ORCPT ); Mon, 28 Mar 2022 22:21:36 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89C992717D for ; Mon, 28 Mar 2022 19:19:54 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 49AF521985; Tue, 29 Mar 2022 02:19:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1648520392; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZPkIZ/XPkzUw3GjYvyN+kAbsucuIGnV2jh6uGeU7IYw=; b=Nqd4JoQK6yUWhkcVCPx/L2AnKtO3DnEXQc+fbSPNlZADjl1RQ/AnZKioJKNOMqj7uCYtte mlyfhrqR5G7T5aodZkGOTeXBCdZNP/AwPQmbqi5WUXVgRfnzaAuIRFfKGk65mptVqC2znn JkIyadYj/SBG+Zs/5tJVyDYX0u1jq4Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1648520392; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZPkIZ/XPkzUw3GjYvyN+kAbsucuIGnV2jh6uGeU7IYw=; b=DzeLs96G9pLdG7R6oZoAvgLb8XvdopgoKAISiuJ/595Gh3Qw9DQ58FbSPP1yZSrbGym2qc edOnjsVfueSeb7Dw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A0BED13A7E; Tue, 29 Mar 2022 02:19:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2eezE8dsQmLhNQAAMHmgww (envelope-from ); Tue, 29 Mar 2022 02:19:51 +0000 Date: Mon, 28 Mar 2022 23:19:41 -0300 From: Enzo Matsumiya To: CGEL Cc: rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com, paul@paul-moore.com, kbuild-all@lists.01.org, Zeal Robot , linux-kernel@vger.kernel.org, eparis@redhat.com, Yang Yang , linux-audit@redhat.com Subject: Re: [PATCH] audit: do a quick exit when syscall number is invalid Message-ID: <20220329021941.ai3d6fgrkyd5ylto@cyberdelia> References: <20220326094654.2361956-1-yang.yang29@zte.com.cn> <202203270449.WBYQF9X3-lkp@intel.com> <62426553.1c69fb81.bb808.345c@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <62426553.1c69fb81.bb808.345c@mx.google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/29, CGEL wrote: >> In file included from include/linux/init.h:5, >> from kernel/auditsc.c:34: >> kernel/auditsc.c: In function '__audit_syscall_exit': >> >> kernel/auditsc.c:2081:61: error: 'NR_syscalls' undeclared (first use in this function); did you mean 'si_syscall'? >> 2081 | unlikely(context->major < 0 || context->major > NR_syscalls)) >> | ^~~~~~~~~~~ > >Sorry could anybody give a hand to solve this? It works well on x86_64 and arm64. >I have no alpha environment and not familiar to this arch, much thanks! Sorry, no experience either, but from a quick look at arch/alpha/include/asm/unistd.h shows that it's called NR_SYSCALLS for alpha arch, for whatever reason. HTH Enzo