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 0BA231A3160 for ; Fri, 26 Jun 2026 07:50:44 +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=1782460245; cv=none; b=T/7fRjjgxV6pdIHmdSquLl0GJ7E2pIx4d7Kiwx7RfbH5uZixTYy9jFdIhBVjO4qvUOWiUInvej1RkjOwlOs0B3IwkUI8fnx0FkAZsXoetHskkhIt1nCTzyLXeV6sp2FGEtmIxIEzkpRO2qPhNNkirCEKKo8gtcFYDPUs/duCWts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782460245; c=relaxed/simple; bh=D1tVTqc3sVqIWtMCmyKN/qfBUcSiDo9Vppzlp+DXt7s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PheBla5nudB1ffuMJ8ik0ppqshfs66pCVcl7hlZhyJJ7rhJp0AQU+UN6TuMb8vHRSFjy78UuMC0utq5LCqdeh7otZ6xUKwHdzG3zyUE6elFeDl0TZFFokTyF71eTnioLW1RXW/AGF8ak50g5E98lY8Nk+WeI8YojNgwQg+UTxgk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GnWvHBBw; 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="GnWvHBBw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0E271F00A3A; Fri, 26 Jun 2026 07:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782460244; bh=fSf/Ohl+0RKuKbg0UOro7LvUAnl/SbQmtX/a2h/zMMU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=GnWvHBBwhWSLJ1VYhYGaPyWeqsj7UKJdGxIuvFNKuDd9YQmoH4BkUE/xo4lsfqFLf nfia+DDGak56/3LPf3nzajgQbjkDekIu6i/np0o7Ul/wTPy02JNYMs57jIh01fezQh y5muJe/CAMy/5MBi1bzqXB3zXDmHnlynGenHCdjaFPkAcP+ZTHv4xXF2lenYPDOWP5 oV1EjO1Wo+uC9GJzD747lEq1qEW6AvBY/1d9LKsFqgmxO7I1xurCzI7h+gIz4SQAhO ipexjDFYgdNs8gKq4C30pkwEl+cuAt1Ut8tvwWulmrs1TcH2NZhFmUAepzG+9iHkA5 R837+JILwUuqw== Date: Fri, 26 Jun 2026 00:50:44 -0700 From: Kees Cook To: "Mukesh Kumar Chaurasiya (IBM)" Cc: maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, 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, Michal =?iso-8859-1?Q?Such=E1nek?= Subject: Re: [PATCH] powerpc/syscall: Fix seccomp errno handling with GENERIC_ENTRY Message-ID: <202606260050.681FAA94E@keescook> References: <20260624171520.772408-1-mkchauras@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260624171520.772408-1-mkchauras@gmail.com> 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...) -Kees -- Kees Cook