From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98DC91B14EA; Thu, 6 Jun 2024 14:16:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717683384; cv=none; b=UzA+Dq2JhZ5X8rJxctgO0h+p/SI3nD9d6oZvX1bOTj5QEv5K5cPvVyvEBRRo74hC8FAzrPQ/OO2iBMwfx9QFYg9r9MFtFpPVVP+GqzDdNNQaBsDzEqEemppxO/mS4R35YzM6WSRXwaSe8dmYpzR9LIufBie4UpxkzPLf/FL8lao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717683384; c=relaxed/simple; bh=iKfEb79e2I6J0nYi8KuZ8qnpyONhcvs5up1Rvuu439c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l9lcS0T7kJF0VXuExc1G71djHt9EunZ5H+bwr3xZ/xBpi7uwnVsmGYckmxFaPIkJCTdF0a1gvB7HNyME1lkvxnm3AHuYJRKdqizMvPpispKeKwZ/AFG0/WbxfB8eKtYCTQVH/1xpmqb33+EPHnxybDR/+gmYGrRDZRX2EzacAdQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MWkfIxX6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MWkfIxX6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A5E3C32781; Thu, 6 Jun 2024 14:16:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717683384; bh=iKfEb79e2I6J0nYi8KuZ8qnpyONhcvs5up1Rvuu439c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MWkfIxX6Q7cVVSgk1ZT1sGokh/5Z4q4D5tGSGRvnCQ4jqTWUZA1ebUE/z1i+LAjrn JAntXgEGIxWjgEGWvTaD6VabGWDAnohdeFBxy0b64DaLlD42t7DFCKzNyLJGIq6aBe 4mF8y63IyOJ4Qu6eGfCjxs5rImPfGx4c5mI6ZDlg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Edward Liaw , Cyrill Gorcunov , Eric Biederman , Shuah Khan , Andrew Morton , Sasha Levin Subject: [PATCH 6.1 267/473] selftests/kcmp: remove unused open mode Date: Thu, 6 Jun 2024 16:03:16 +0200 Message-ID: <20240606131708.769645217@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240606131659.786180261@linuxfoundation.org> References: <20240606131659.786180261@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Edward Liaw [ Upstream commit eb59a58113717df04b8a8229befd8ab1e5dbf86e ] Android bionic warns that open modes are ignored if O_CREAT or O_TMPFILE aren't specified. The permissions for the file are set above: fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); Link: https://lkml.kernel.org/r/20240429234610.191144-1-edliaw@google.com Fixes: d97b46a64674 ("syscalls, x86: add __NR_kcmp syscall") Signed-off-by: Edward Liaw Reviewed-by: Cyrill Gorcunov Cc: Eric Biederman Cc: Shuah Khan Signed-off-by: Andrew Morton Signed-off-by: Sasha Levin --- tools/testing/selftests/kcmp/kcmp_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kcmp/kcmp_test.c b/tools/testing/selftests/kcmp/kcmp_test.c index 25110c7c0b3ed..d7a8e321bb16b 100644 --- a/tools/testing/selftests/kcmp/kcmp_test.c +++ b/tools/testing/selftests/kcmp/kcmp_test.c @@ -91,7 +91,7 @@ int main(int argc, char **argv) ksft_print_header(); ksft_set_plan(3); - fd2 = open(kpath, O_RDWR, 0644); + fd2 = open(kpath, O_RDWR); if (fd2 < 0) { perror("Can't open file"); ksft_exit_fail(); -- 2.43.0