From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5FC5537C113 for ; Fri, 26 Jun 2026 14:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782484224; cv=none; b=Xwzy93Gncvx4epo+xsnAogL0mEUorRkhcUnGOn7DO7ObbJYX4IjZGw6quEzUlVeM2kK95y7cyCbAQGXCZM5MBP9tKFgUcz1RmRvvz1GVX+wpPVywEnAptUneGUjJppS+7ml4e8gm82nY/BFpP24y7udXDSc2EpyKELlcNm7Nlzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782484224; c=relaxed/simple; bh=IwZhtpn/mAUMngm6ugSHMaSkS2RL6U7Rj5S6ABtZpzI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=l8K9TR9xp7bZueABNUuLStgaMYY9rGeZ4Ch9PCo5WBpboT0A9CPBL4PgOPVKAnBlR/lYNL0n3H1/1x4asquQ9/1724nlNJ3WG+gN4I1gAgo/7TF9ntWnOTppnloO6i5vHMlHG1ptYrrjX1YNuSMN/hv7TYt5Z+rQW4HNoKfm33c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AdOmdrGl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AdOmdrGl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7E461F000E9; Fri, 26 Jun 2026 14:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782484223; bh=dHg8zD+A9+9MkpkQA473g/bgyHlKu3rVom5SaUpwIp4=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=AdOmdrGl00v9I1bMVIkf91PFY5tCMMGI3X8nUlpN+w8ipS0L+hyVOVkII84Ozgvqc MBP24nCQR5VOD5sRtsiIp8TTAQXDwvQhlz3otkP7t5gpyDssPe6D1+BbcvBux1KsVy hSRAbWMF4EigC7eSL6gZrhbzNsjtzbQH20eX167wWSyLJNlJ8akS2w9MbTgiUdiHoW 1FLBnLfGnoMzEHZdBG7zD43Tk5HozeT4G8VJlYuTbCba1T9jH8dacam9Z10pF8DJXW jUxKPga0lG2+wB8IEB6+fiG1f96JwJr25dOPg/8G09yoaEFQX0tWKnhL2ZQHvxqLx5 Q3COR1un4sziA== Message-ID: <09223f23-b4e6-4ba6-bafb-3969e2710c61@kernel.org> Date: Fri, 26 Jun 2026 16:30:17 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] powerpc/syscall: Fix seccomp errno handling with GENERIC_ENTRY To: Kees Cook , "Mukesh Kumar Chaurasiya (IBM)" Cc: maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, sshegde@linux.ibm.com, mkchauras@linux.ibm.com, mark.rutland@arm.com, ryan.roberts@arm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Michal_Such=C3=A1nek?= References: <20260624171520.772408-1-mkchauras@gmail.com> <202606260050.681FAA94E@keescook> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <202606260050.681FAA94E@keescook> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 26/06/2026 à 09:50, Kees Cook a écrit : > On Wed, Jun 24, 2026 at 10:45:20PM +0530, Mukesh Kumar Chaurasiya (IBM) wrote: >> After enabling GENERIC_ENTRY on PowerPC, seccomp filters using >> SCMP_ACT_ERRNO without an explicit errnoRet value return ENOSYS >> (Function not implemented) instead of the expected EPERM (Operation >> not permitted). > > Was this noticed by the seccomp_bpf kselftest? (If not, I'd love a > regression test added for this case...) > Was reported here: https://lore.kernel.org/all/ajpp-_XnbF3UTM_E@kunlun.suse.cz/