Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4802027pxj; Wed, 9 Jun 2021 02:06:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwosoKrlzd7RrdLiWCWmPRdyk5VB1TMspHQaeH0t6W+tV7vp/1msSreE6wf3esmtOVwrRs X-Received: by 2002:a05:6402:22f7:: with SMTP id dn23mr30170148edb.136.1623229592221; Wed, 09 Jun 2021 02:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623229592; cv=none; d=google.com; s=arc-20160816; b=c6aDqjlc6cKPP4nkETvAUQnbahkEqvp5dWUfU7i1fUYB8ELb8LNGhlkwaICKm20gSj FHbGyZPnRLuo6NNQWGNchbH1QhgPVXqHzjPDqK57V0z3cSryP62MY0WWmuuyGjme51XA D70l1rYalGYS7Cbs59cOqAPFmfiAlNLB+/5NuYqkMeZGhS/BKMON/7qJaN0b/V4j6cKt 7GzTtWIe8M0K7USre1hsD3BU9Bc8iFQQBaSwfa/b4hHvJRuutu++75wblKu+BhPi39Sz sEplYHjcontoff2z9PFTq/CnJma5tQPF4wIau+dK52FRD+kOTgMRF7MtHVCrfnDP+XXu 7e5w== 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=C757UiCRJuhzKWy/FSAO97OFut+Va0pxHAY3Tf6qDK4=; b=cXZpT5oU/ywEJ8pzHedyiXpW4Lvysfu/OBs40hUU32GQHpUbNPl6YpH8zjnBWqYn9K QnDaLYLdPKh+8PZ74fMeW3PaL8ktiO4mFIsC4E0nuIZVlup7g1VuMRmbozSYP5vqxpVq RpRnz9JjVdt7pH4MhLiiFiC0erUzg8E3K3v0sczxVitNz6VkZeTK5oSjODjdIZ5nSnQ7 FNHz22XSB5tZKbV6e0zo1LNAoJc9yhtvEcR24sc+TIaAc0O0AbztYqBBLU1J10Az64sp 2Xv2ejNaEdwJ6V53G7auRSqvx1BPM1E5+8Taftfmgo6l4iJV3B98VZjkEvD/wdvBA4Un orTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ex5A948q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si1795572ejm.512.2021.06.09.02.06.08; Wed, 09 Jun 2021 02:06:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ex5A948q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234392AbhFHSdT (ORCPT + 99 others); Tue, 8 Jun 2021 14:33:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:57406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234389AbhFHScV (ORCPT ); Tue, 8 Jun 2021 14:32:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2DF86613CC; Tue, 8 Jun 2021 18:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177015; bh=MmRXoHVfQm9eZj+KJphfdg8lo9nB1RfG2eYSEECiXdw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ex5A948qXJSTqTFNaXkmRlofkSTQw7ak6GzUF6FhFv3u0pMu3GIJfBQNfzZZxzSYI vberP4B2HW21eSfLv28Kl71DL8b7UWUm40H1dkp+U5qBlznZ5gDbXJvkbF0FmllIj8 SNbYSoVbwSwRuWoaoUtI2qHOh9cLFMW6Ci9OW17w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Will Deacon , Michael Weiser , Arnd Bergmann Subject: [PATCH 4.9 28/29] arm64: Remove unimplemented syscall log message Date: Tue, 8 Jun 2021 20:27:22 +0200 Message-Id: <20210608175928.730163589@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175927.821075974@linuxfoundation.org> References: <20210608175927.821075974@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Weiser commit 1962682d2b2fbe6cfa995a85c53c069fadda473e upstream. Stop printing a (ratelimited) kernel message for each instance of an unimplemented syscall being called. Userland making an unimplemented syscall is not necessarily misbehaviour and to be expected with a current userland running on an older kernel. Also, the current message looks scary to users but does not actually indicate a real problem nor help them narrow down the cause. Just rely on sys_ni_syscall() to return -ENOSYS. Cc: Acked-by: Will Deacon Signed-off-by: Michael Weiser Signed-off-by: Will Deacon Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kernel/traps.c | 8 -------- 1 file changed, 8 deletions(-) --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -543,14 +543,6 @@ asmlinkage long do_ni_syscall(struct pt_ } #endif - if (show_unhandled_signals_ratelimited()) { - pr_info("%s[%d]: syscall %d\n", current->comm, - task_pid_nr(current), (int)regs->syscallno); - dump_instr("", regs); - if (user_mode(regs)) - __show_regs(regs); - } - return sys_ni_syscall(); }