From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EE12C433ED for ; Mon, 26 Apr 2021 12:09:48 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE61D61090 for ; Mon, 26 Apr 2021 12:09:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE61D61090 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=windriver.com Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=linux-audit-bounces@redhat.com Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-535-ZUS7JXGzMzWmOIrMgMe1UQ-1; Mon, 26 Apr 2021 08:09:44 -0400 X-MC-Unique: ZUS7JXGzMzWmOIrMgMe1UQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D996718397A7; Mon, 26 Apr 2021 12:09:40 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8FF0160855; Mon, 26 Apr 2021 12:09:40 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 8D1D044A57; Mon, 26 Apr 2021 12:09:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 13Q9HC4a023859 for ; Mon, 26 Apr 2021 05:17:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5C98F111144B; Mon, 26 Apr 2021 09:17:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 581941111448 for ; Mon, 26 Apr 2021 09:17:09 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5341A8001A6 for ; Mon, 26 Apr 2021 09:17:09 +0000 (UTC) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2066.outbound.protection.outlook.com [40.107.237.66]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-235-3ShSJQsGOFeHzB3UYvy8Gg-1; Mon, 26 Apr 2021 05:17:03 -0400 X-MC-Unique: 3ShSJQsGOFeHzB3UYvy8Gg-1 Received: from MWHPR1101MB2351.namprd11.prod.outlook.com (2603:10b6:300:74::18) by CO1PR11MB4867.namprd11.prod.outlook.com (2603:10b6:303:9a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Mon, 26 Apr 2021 09:16:55 +0000 Received: from MWHPR1101MB2351.namprd11.prod.outlook.com ([fe80::c156:455d:860e:ba87]) by MWHPR1101MB2351.namprd11.prod.outlook.com ([fe80::c156:455d:860e:ba87%4]) with mapi id 15.20.4065.027; Mon, 26 Apr 2021 09:16:54 +0000 From: He Zhe To: oleg@redhat.com, catalin.marinas@arm.com, will@kernel.org, paul@paul-moore.com, eparis@redhat.com, linux-audit@redhat.com, rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, zhe.he@windriver.com Subject: [PATCH] alpha: Add syscall_get_return_value() Date: Mon, 26 Apr 2021 17:16:29 +0800 Message-Id: <20210426091629.45020-1-zhe.he@windriver.com> In-Reply-To: <20210423103533.30121-3-zhe.he@windriver.com> References: <20210423103533.30121-3-zhe.he@windriver.com> X-Originating-IP: [60.247.85.82] X-ClientProxiedBy: HK0PR01CA0052.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::16) To MWHPR1101MB2351.namprd11.prod.outlook.com (2603:10b6:300:74::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pek-lpg-core2.corp.ad.wrs.com (60.247.85.82) by HK0PR01CA0052.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Mon, 26 Apr 2021 09:16:51 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3687dbce-00b4-41b4-15b5-08d908940885 X-MS-TrafficTypeDiagnostic: CO1PR11MB4867: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:486 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: C6SVHQs97znjIi7y6VfnfOXEFnAYt0xqjuIMGAx+YX+vaQPfZIJxhzl+6wZFQAJVIfEgDCEvJ4xoyXjJG9KrYY1GPzee7Fr9uU1J7JjYsVuItAfig0rfUF8Nta1nhBKU5HO32azNdybw2C6lPl0HHMAGJAMs6d6ftDx1a3TaMP2wk+jXrfORvDdpTLuq4RnrV1GUc+7fyRRmtL4nDEGJbs9tFfQhko4hvvcl7b4QDAn/4rAWhA7zq3U3fC1W/vzRBykVc6YrZw7av1YvnuPPBOV70WLJEyv7NgttYJQMsWU8Sk78bWEVPK7BCrYQ/g0lRcxy5NPD4tLzUvR4u72i2d8DlVbFpIx7m4hG6qQrzp91UV5HUX9XgY5JZtb8q/vjKaNqgXopqdvOyyPeP15let5RX2CBHfnR2kEN0pknB7Bqdp6XsJ4fcUYmw0Q7LPwN8r4j+BW+SHYpodkstPKnpXXkw8euheufjP+GQjzizv8QVq5Ds5qetC6jpd7j3jXEtoPTCNNJcKqwWbvnd9Jt3/MY8IutXwnQrbhsnjm75LdW9iXWKE55AqWEu9YhNgxpSBWaCPpJPlJNXonx+n2nFNU90Jtk3J1GVK1uAzO1wDg7NPStitshtFWhLBdCJPUSETP8vEMBNv8HmH6g8/YN+8JqJxtHeqC8rUVt8RmYwac= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1101MB2351.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(39840400004)(376002)(366004)(136003)(66476007)(66556008)(16526019)(8676002)(5660300002)(86362001)(6486002)(38350700002)(6666004)(2906002)(478600001)(7416002)(4744005)(1076003)(66946007)(38100700002)(2616005)(186003)(36756003)(6506007)(956004)(8936002)(921005)(52116002)(316002)(26005)(6512007); DIR:OUT; SFP:1101 X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?VYUt1iZzSsnthqoS2SctA9XGycmZAntbe9Pefok2gn47lwoXrFM70yRhjUTs?= =?us-ascii?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RzK3SZ/r3QWTg?= =?us-ascii?Q?lhu446EmlRjXkvjc8uWKdkQnKFUhPGA5mTHtYlcGSc2stsF9/LTL7QudpNwr?= =?us-ascii?Q?73N75/rxs04gNP+GKsqXcb2fKj5HiYOYmYwvrP1Cq7OmZKLNSrGRITIXs8o5?= =?us-ascii?Q?pzQUR/phm0UPE4LuSHIa704AE3ZrFo+JGt2pFzgmNmmAarYuCGu8aZey4yAI?= =?us-ascii?Q?q+C8Ei4HWEIE+SJyP7rjGbK5ue3uzUmpKK0V1OCbtmNEyiwlZ6Txh/Wh6Yt0?= =?us-ascii?Q?rg6EHC8XcHbWS7gZmxX30qcDzbFfjw3BE2Yz9oU3MBVwCnwzvB7odG6byfAj?= =?us-ascii?Q?uTRhzDuE4uxgXBdFIDQ85bO87JQevdtVbA1FGqZqsGt40ZPlkhQi3PxxyBAL?= =?us-ascii?Q?NrGJr5AziJFU3xgByQ+Mq8y+?= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3687dbce-00b4-41b4-15b5-08d908940885 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1101MB2351.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2021 09:16:54.4815 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZdMtRmN5epN6Gphvrbo2GdAQUikwgoa66HoZnEOx/PlY8GVt+yv39a4veXIIiEn8w+Xly9t2Qv3B1WVzGGsNeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4867 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: linux-audit@redhat.com X-Mailman-Approved-At: Mon, 26 Apr 2021 08:09:37 -0400 X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=linux-audit-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit audit now reuquires syscall_get_return_value instead of regs_return_value to retrieve syscall return code . Other architectures that support audit have already define this function. Signed-off-by: He Zhe --- arch/alpha/include/asm/syscall.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/alpha/include/asm/syscall.h b/arch/alpha/include/asm/syscall.h index 11c688c1d7ec..f21babaeed85 100644 --- a/arch/alpha/include/asm/syscall.h +++ b/arch/alpha/include/asm/syscall.h @@ -9,4 +9,10 @@ static inline int syscall_get_arch(struct task_struct *task) return AUDIT_ARCH_ALPHA; } +static inline long syscall_get_return_value(struct task_struct *task, + struct pt_regs *regs) +{ + return regs->r0; +} + #endif /* _ASM_ALPHA_SYSCALL_H */ -- 2.17.1 -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit