Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3293251rwa; Tue, 23 Aug 2022 02:08:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR4633v28oVbeE7Qm86mnBrBODaJX8varNM2u17nG7qjyErgUmCzada00osiP1AOGo8hUfOD X-Received: by 2002:a17:907:2854:b0:73d:7de1:6c89 with SMTP id el20-20020a170907285400b0073d7de16c89mr6567027ejc.604.1661245723921; Tue, 23 Aug 2022 02:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661245723; cv=none; d=google.com; s=arc-20160816; b=IeaCSIw3pcH2ScCWx+ptsJLM9Xn661Q6Z9ao8sxTQftPLPGt+xg/hiPxG4Tvj/KzCG pf9JaHN7OFlc5MliT6TxPPe0R1DHXaosOh81PnD6/aWNLCNrZ2wMFDkCcuxIwi//vYhv 5BFCe05WYVBc0mNvYU1+fIl7eDexFBUNNydq6c8GqDvULRsuysztS+NOSKZ3z0WS8oTp ZXozJN2uRWrBlZ8S5KOesWaLEFJdx1R9+YyQZheZr6jPyCwlFZH4GjnEs/TpgMNS+zFA hsLCtt8PaemBsHEhWaUfARbZtxyyA45u2Hkqa6uGktQXJNFAugrsv3VEWEV68cdTS3JL 7Irw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PuKc28kJIRyeSMhOLen7+YABXScPjiHsOrdccJr5vvk=; b=iyMFrxGin1zmjD+iY4GULAhFPeiMlhYQpWjO/OaVoVWZBvW2p/810eurTn86lZdYDn D67vi8QpGKyYxnCLhOVCGj59oM6Nzwaz43VEdHD4EF6xxtL2UPWtkZnSVp7j47e+kwa9 jPqcAbaF8V/CVRRp7gIiNpWwlDqnS4QXUf46tfZLcBWN7eDyJabRBEQbjuIP/p1vfqKh YMdqnzJtuNTqu7IhkBjtKILijkThz/jWH8LJK0injFQ/qvEogrW72aJ7xqMBuaxVb+ph tJt+xW/3Z5FjmqNb0fUEAQ8UZ0M1x31Ra9ePpigkgUXFK9xp9aRqUCmcGBtY0KnecE6w G7DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=byYYsYGC; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd1-20020a1709076e0100b00730824744dasi12481427ejc.507.2022.08.23.02.08.16; Tue, 23 Aug 2022 02:08:43 -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=@linuxfoundation.org header.s=korg header.b=byYYsYGC; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241372AbiHWIpO (ORCPT + 99 others); Tue, 23 Aug 2022 04:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347018AbiHWInR (ORCPT ); Tue, 23 Aug 2022 04:43:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A14F37B28D; Tue, 23 Aug 2022 01:20:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2FDDE61347; Tue, 23 Aug 2022 08:19:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FC14C433D6; Tue, 23 Aug 2022 08:19:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661242788; bh=EkgEL8VNg3xEP7YC4/zdUsjn0OhSMPb/3b8UAiUZx84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=byYYsYGCHVyOg33WUQSBzZmpLgFDbrD0ReTMaXvj4KvcZDlDyIeKF8v9L0YRZYHCe C6Iv1eaO+QbkmF0MQtwrDp8udsXyw4rR7/ePbl2sPGcOxJ18PKia6jO/SWiAS+w3Zk Y6hxU+yP0OM1uruX/QhY4lMv5N34YoAai7fBLBbw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Al Viro , Dinh Nguyen Subject: [PATCH 5.19 167/365] nios2: dont leave NULLs in sys_call_table[] Date: Tue, 23 Aug 2022 10:01:08 +0200 Message-Id: <20220823080125.196317360@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Al Viro commit 45ec746c65097c25e77d24eae8fee0def5b6cc5d upstream. fill the gaps in there with sys_ni_syscall, as everyone does... Fixes: 82ed08dd1b0e ("nios2: Exception handling") Signed-off-by: Al Viro Signed-off-by: Dinh Nguyen Signed-off-by: Greg Kroah-Hartman --- arch/nios2/kernel/entry.S | 1 - arch/nios2/kernel/syscall_table.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) --- a/arch/nios2/kernel/entry.S +++ b/arch/nios2/kernel/entry.S @@ -193,7 +193,6 @@ local_restart: movhi r11, %hiadj(sys_call_table) add r1, r1, r11 ldw r1, %lo(sys_call_table)(r1) - beq r1, r0, ret_invsyscall /* Check if we are being traced */ GET_THREAD_INFO r11 --- a/arch/nios2/kernel/syscall_table.c +++ b/arch/nios2/kernel/syscall_table.c @@ -13,5 +13,6 @@ #define __SYSCALL(nr, call) [nr] = (call), void *sys_call_table[__NR_syscalls] = { + [0 ... __NR_syscalls-1] = sys_ni_syscall, #include };