From nobody Tue Nov 08 21:17:48 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N6LXs0MZ0z4YfhY; Tue, 8 Nov 2022 21:17:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N6LXr6vb4z3HJ9; Tue, 8 Nov 2022 21:17:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667942269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Go2/OoDkueDebAEaPxUTpZsxSWpxAUO0XAp6jsNozxc=; b=eAOZ6beLJ5ezM0WYwxrP+yZDyhL7PonNAH0F7ZZNMTZdhzp8HoEaP1I5I0jx6t63Nsk1rp JR6eowvLTuktD8ES2W07kDUc+rI+VcHe3bIkdlSiStTOppQuHYxV/ZoEVxbJ7KS3yAXJ3q ub8wv9SQ7RsXNDX4DQmdDtqfpa15AtR5szi18M8Qgxzhguth77Q2YeONIS+QMN99z/XzFh 28tFhkp6tCu54R2PIKRENRxivmsSrJUOCWgZHy9+uzInUlPbNwKFEVeWSgpCMtsZ9b0gE1 yBuerB++5v2kjgOFrBQ5/bU0QTtA4H6dKH5IQTPtjSlDqvtBRYLHADgk2P8tsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667942269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Go2/OoDkueDebAEaPxUTpZsxSWpxAUO0XAp6jsNozxc=; b=IaYv+GGlQrRiB39n5ja4GS5j7nxrCUN4LowgyLutl2UnxKOyAflMPFcLj+9dHArxBtMllx 4vYVODsLzqAL1Naymu5hlHrISaBe7ZCY7n8VK2tVFlAMDB/YuHIts2j+v+gt79HsU1iEz3 LDP2CNKFX3zw10O70XahOUJzD/pX2d8b9kdRjHPzoygmIrq2TDCk7f4+4eK2HmQDLCoHkG QmmWrGDaL51wI57tP1jl7mDpdPZG/TqFDsnvtvr3ChL5Mp0aKRAgg6n9S14O9NZXcpqsdI kFdo10Yu2B0EGtTkkxlYeHnQNyQVPwvqm3lcfSYiw7XbVDstSUqzCQ4XJ0YRmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667942269; a=rsa-sha256; cv=none; b=qq6ewouTcXQn4lqs/EDjvEt2d80XjF+hGjiHZ4pqeOmI7SIog54YW0vw+l8FbRvLBS7pPU T8Ko0MW7a9+D0e8hrmthST9xHUa6KgfGlHA9SYLR+wXe2fxt7Zk0I36v1JZ9aBZY1RaIEk aD2+djWHkiX3zRhDUQZMh594m/pbBJXkGK27AFNrPf3E3z5oPjW6fXjtm5YpSnQFLjWJHe xTaTEjMwu4XRMNYcgnMRxKR6zVNjmuf2RHbtM9DgD68WvORp5pPzbpZ5674RPPzCqrEiUW v/XWEB1vnYzWPO/NVHU5iDFZemO6JjOuhXv9d5SP8RUqohn+gESulSK7qJMgtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N6LXr5xJzzxDr; Tue, 8 Nov 2022 21:17:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A8LHmGa085243; Tue, 8 Nov 2022 21:17:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A8LHmsV085242; Tue, 8 Nov 2022 21:17:48 GMT (envelope-from git) Date: Tue, 8 Nov 2022 21:17:48 GMT Message-Id: <202211082117.2A8LHmsV085242@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: 9f7bf94ee2a8 - main - linux(4): Fix get_robust_list() syscall return value. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9f7bf94ee2a88a702cef9fdb67166404c275afaf Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=9f7bf94ee2a88a702cef9fdb67166404c275afaf commit 9f7bf94ee2a88a702cef9fdb67166404c275afaf Author: Alex S AuthorDate: 2022-11-08 21:17:17 +0000 Commit: Dmitry Chagin CommitDate: 2022-11-08 21:17:17 +0000 linux(4): Fix get_robust_list() syscall return value. The system call returns the head of the robust futex list. The list head is stored in the location pointed to by the head argument. When copying data between address spaces use proper head storage size as it depends on an emulated ABI. PR: 267616 MFC after: 3 days --- sys/compat/linux/linux_futex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index eb3ce3421465..d16e047f831c 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -931,7 +931,7 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args if (error != 0) return (EFAULT); - return (copyout(&head, args->head, sizeof(head))); + return (copyout(&head, args->head, sizeof(l_uintptr_t))); } static int