Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3412495rwa; Tue, 23 Aug 2022 04:28:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR5liW7BMZsrtnqiZHTQMBHQUlPSq1ycdUx75fWkw5CvftNRTYHJpI1mvd+d20c2+pyNAerS X-Received: by 2002:a17:902:d411:b0:172:c718:60c0 with SMTP id b17-20020a170902d41100b00172c71860c0mr17817507ple.80.1661254123448; Tue, 23 Aug 2022 04:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661254123; cv=none; d=google.com; s=arc-20160816; b=XKylfWlsQlvoNbyroO/SHea2ojo3lP8/PVERq2dwz+7ABZihCzmqtEOuhDyaMg93IU q0G20v/gCPy8u1XYuh1+lmXGSC80R6Alk6CZx3LZBJ6njJCqhNMZ2uoAU+5fPkHkEdFf C1B5ALObiUuUmTHd59p/3m2gTe1jhkLl+XgwLYJsjP2bgPubLRYjxkGO3cKgF5kUEEIM AdnNcK/+0sM8+ggK38uNqECYhdTFYP9jY/tS4ILHwC5nG9/qc3r19ntjFxXwK27gSAya z6ph2yPkuoYiXEY669aHQPoEF7/tVXh22nljOCH9mrORAhDkEd2mKDoZBSrKY7hFkIbN s6mA== 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=hBGl1jhVss8/72/XTXT/S9b5WTm5ahbceG9m/Q7J/n7He6jBd+MmJKIRcV7gnhmz3D a9CVHoefeOSNXxwR0dX1t3hN63G7bUgue/2A6DEHoOWVV96UY1Tym8zF6zD+3K+PWQ2P 3j1C+s6zGWFuvqil08KuNmMJaXtI173lA2alOq+vcjKES7WN+s0KCjZerpeevbMDltiB 9/+hMPBuZczt2/mEIGCmH70TR9D0FjLKCUao3nFE+KrFLq9lPjKhUpI1+zRK48gZneaK AVTWhvlbe0prqLMG4f8GH2/C4ZsC5brA1p3Zy1u5icYIsqEXMulvcb76KgwH6s1CvXZ9 dQsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oz4GWj0q; 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 u24-20020a631418000000b0041d041a83d0si14781865pgl.351.2022.08.23.04.28.32; Tue, 23 Aug 2022 04:28: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=oz4GWj0q; 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 S1353989AbiHWKQb (ORCPT + 99 others); Tue, 23 Aug 2022 06:16:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351945AbiHWKGl (ORCPT ); Tue, 23 Aug 2022 06:06:41 -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 B52B73B963; Tue, 23 Aug 2022 01:53:52 -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 4F48CB81C3B; Tue, 23 Aug 2022 08:53:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F385C433C1; Tue, 23 Aug 2022 08:53:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244830; bh=ZhkPRONPRsdklvEmDO5ZqnezVhTgjCAugxYUuo/Z7Lg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oz4GWj0q2h25/wJGgiHghE+UUVrWL9EqPVfkUcP0wTl82W8J2gGF3zPIW2E+2We0K yB2O3qnRkhMqf4lbP1G4Ns3BL7UEuruNF/JCPf3lRX6TkPzH0Gh1KCRcvSgJ+LmDru TXYEITS2A/OtVBixMva97IgNHRMDdCqcWxFRtBP4= 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.14 198/229] nios2: dont leave NULLs in sys_call_table[] Date: Tue, 23 Aug 2022 10:25:59 +0200 Message-Id: <20220823080100.713752961@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080053.202747790@linuxfoundation.org> References: <20220823080053.202747790@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 };