mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Feng Yang <yangfeng59949@163.com>
To: yangfeng59949@163.com
Cc: jmorris@namei.org, linux-kernel@vger.kernel.org,
	linux-security-module@vger.kernel.org, paul@paul-moore.com,
	serge@hallyn.com
Subject: Re: [PATCH] lsm: Fix the crash issue in xfrm_decode_session
Date: Wed, 18 Mar 2026 16:37:27 +0800	[thread overview]
Message-ID: <20260318083727.177272-1-yangfeng59949@163.com> (raw)
In-Reply-To: <20260318061925.134954-1-yangfeng59949@163.com>

> After hooking the following BPF program:
> SEC("lsm/xfrm_decode_session")
> int BPF_PROG(lsm_hook_xfrm_decode_session, struct sk_buff *skb, u32 *secid, int ckall)
> {
>     return 1; // Any non-zero value

There is an error here. Any error value between -4095 and -1 will trigger this bug,
while other values in the range [-4095, 0] will be rejected by the validator.

> }


  reply	other threads:[~2026-03-18  8:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-18  6:19 Feng Yang
2026-03-18  8:37 ` Feng Yang [this message]
2026-03-18 17:09 ` Casey Schaufler
2026-03-19  2:22   ` Feng Yang
2026-03-19 17:51     ` Casey Schaufler
2026-03-19 18:22       ` Stephen Smalley
2026-03-20  3:24         ` [PATCH RESEND] " Feng Yang
2026-03-20  3:03       ` [PATCH] " Feng Yang
2026-04-13 17:39 ` Stephen Smalley
2026-04-22  6:39   ` Feng Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260318083727.177272-1-yangfeng59949@163.com \
    --to=yangfeng59949@163.com \
    --cc=jmorris@namei.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=paul@paul-moore.com \
    --cc=serge@hallyn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®