Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3410478rwa; Tue, 23 Aug 2022 04:26:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR6LPDrahqsd79duhz/g+cw39uPOc4Adr3jQRx00fo5qbPT/RIv3XJAQjg0aB+LTu+OCqUm5 X-Received: by 2002:a17:90b:38c6:b0:1f7:35d8:26e2 with SMTP id nn6-20020a17090b38c600b001f735d826e2mr2919842pjb.168.1661253865724; Tue, 23 Aug 2022 04:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253865; cv=none; d=google.com; s=arc-20160816; b=V1cCk/QjH8lOxrkt7WcvMLdQxx6lui6RkMOzxKuzuJ3ujph5UlIIZbmUr+ZZ4l0R7R MWAmxF3hT2TfTnBr3YjWsPxE9nKnDup/g8y2cNHI3aj5Lyv7bjYJ5zkPn33hTc+gR017 XmqDMMbmEdE40/tceTRDzt/cX3JNRj245WaqMZiQlbM4HnIovOalZC8LEBmN+EzymChF mQ7kKR4biQglH/PT1xD5LVwTKgDJRBlm/VtHDpgiS3uOTqETSIy3LK1Nv9zS8SyaBF3C zTwVie8ujl66DfCdo+d3XWG/xGQNEve67TZ/+QhFHuUheohSox8lKq033HMSTljpS+Jz Wl6A== 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=mET1rxkvBEOFqhoVq3vZn5Yi9j5WDg61aMat/AbrZk3Fwv7HSCFo/2mxBuxAx9ktsA AVvoWjPRU2KAiweg1AWV6KXYx74d3sbu1reegqPHP6aYYgFrZcWDDYai9CEAE/psp8h2 MGNyCjV7gvkoBXTTfr0tY6cV12xx1LFZ2dBa30DHC4gV+DjutMwJ1Kby122h5AK1G9FE bJhv4JerMH0dz5jeMZ/TvvTl2FkyXscAj/7hTPL7AM3Hj4+DEj0zD9uwjTwqGm35xjnX gV1zq66m9xeX6KIhpeIIBl7yB70XXbFHMIrjeaRnllQWf9talyDc2RYEhzIB/XlP/8jO BT7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="QKGQhJG/"; 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 c5-20020a170903234500b0016ec623eac3si16149327plh.239.2022.08.23.04.24.14; Tue, 23 Aug 2022 04:24:25 -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="QKGQhJG/"; 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 S1352889AbiHWKG0 (ORCPT + 99 others); Tue, 23 Aug 2022 06:06:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352261AbiHWKBd (ORCPT ); Tue, 23 Aug 2022 06:01:33 -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 42D107B79B; Tue, 23 Aug 2022 01:49:10 -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 5575E6122F; Tue, 23 Aug 2022 08:49:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 446A5C433D6; Tue, 23 Aug 2022 08:49:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244549; bh=EkgEL8VNg3xEP7YC4/zdUsjn0OhSMPb/3b8UAiUZx84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QKGQhJG/sLxl5Xl5TzviSP9G84n7LL2fT6m8RXOUZUStORKoAe1Dxhvn7GmrKJtV0 z5gG8dCsQDkkNEX7MMDmodtctXKJB7a7XAPk0hZB89Ct1/OHJLVFmx6jkV/tH5GaBZ 4tPuNig/eJlirqhC8h13gJJKN6RCYpcgeU/Gp1Eo= 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.15 110/244] nios2: dont leave NULLs in sys_call_table[] Date: Tue, 23 Aug 2022 10:24:29 +0200 Message-Id: <20220823080102.700405674@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080059.091088642@linuxfoundation.org> References: <20220823080059.091088642@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 };