Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3418133rwa; Tue, 23 Aug 2022 04:34:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4dTqlC5JdnXtL79M0d2AtC+08D+dUEY0V+PcRg0VTpkgQNU6nRjgvD+7Jtb+vGu7DW9fQI X-Received: by 2002:a05:6402:2756:b0:443:4a6d:f05a with SMTP id z22-20020a056402275600b004434a6df05amr3281205edd.396.1661254458834; Tue, 23 Aug 2022 04:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661254458; cv=none; d=google.com; s=arc-20160816; b=uVIsqNi7N0G9e5eomvBVM4oadLJ7gcygbo9tP6DGGfW9mhyAoin2uXrFO6eE6JFUxY cbN6b/IRzJZX7A+1VrZRfxyTaDyyNk+wDi/p2zY42Di0Yd6KsFoT1k250YDj3JNQcbEr /9V7VcOaHq9JHzkPLqykhsqgBwRj0WQCzL2ctBCa43rrqh8r5AfISkc3zCSC31J6DkS0 6gJBj2ANx2MqaQzVzMbzpJdfphXT/cDqPmA2dLKk6HIMPReKGs1vleRb4sYrKn8VNEgS tgilyTRWK36vuWdx7b7AtYA3G+bhJnqTAB7R2ZotDIaECcnUaD3BhDvHoC4xuqpHqnTu d2rQ== 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=f59HdEkpeZYUVOm3GOhuGZxInsOn1u8cqjgohsWMHug=; b=z1Akx75DxLTZbp84G8EzxUkXNl70V2R9qh3lr/XG6NcJipJUwnOefZN7uhABBKoqrv 3M5W0ls41wiTbYFjj/QEBcOHSRaHeKFSB5BygLXVEoWDH1PgF5Xi2GekZk0QPYqOImAi jnuLbtIq6b5aAuz92X1zmk9iU+dhmiFeesNFcY1OZnGOdIEyDpIu5HjMMVsc41QfJdEr ieT1/956jPu7yG9e5X/Bp3o5ctiEQf8s7ThMhCaqvOtEo92j/rX3fiAcClHGI9j8/j8d Xf9Lo36seRK1NyHA83hlZmYjtwjg3CydVo1yV6nUFd/uyNULZoe3ylUd5up0v0tw1o74 4f0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TOwedi38; 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 i3-20020a1709064fc300b0072677faec75si14122289ejw.872.2022.08.23.04.33.51; Tue, 23 Aug 2022 04:34:18 -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=TOwedi38; 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 S244154AbiHWLDp (ORCPT + 99 others); Tue, 23 Aug 2022 07:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357167AbiHWLBd (ORCPT ); Tue, 23 Aug 2022 07:01:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3E2BAF0C5; Tue, 23 Aug 2022 02:14:29 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6F3BAB81C86; Tue, 23 Aug 2022 09:14:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8635C433D7; Tue, 23 Aug 2022 09:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661246060; bh=ZhkPRONPRsdklvEmDO5ZqnezVhTgjCAugxYUuo/Z7Lg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TOwedi38gOiukjScUoGb4UbgepABaSstzM5bK6HTiRLBn/KV4ydU+z4LfLY8T24qe /M00rXIbkokS4s2kZIs7v3boTb2GvNoQle1in8rROjEER0EeoIFf74XMf4WkJdeeoe 3w+4/YAYNteASgScvf4UvNH3wvJrFywtLa5Ki51g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Al Viro , Dinh Nguyen Subject: [PATCH 4.19 245/287] nios2: dont leave NULLs in sys_call_table[] Date: Tue, 23 Aug 2022 10:26:54 +0200 Message-Id: <20220823080109.378442317@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@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 @@ -25,5 +25,6 @@ #define __SYSCALL(nr, call) [nr] = (call), void *sys_call_table[__NR_syscalls] = { + [0 ... __NR_syscalls-1] = sys_ni_syscall, #include };