All of lore.kernel.org
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Hungyu Lin <dennylin0707@gmail.com>
Cc: andrii@kernel.org, bpf@vger.kernel.org, ast@kernel.org,
	daniel@iogearbox.net, eddyz87@gmail.com, memxor@gmail.com,
	martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev,
	jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev,
	alan.maguire@oracle.com
Subject: Re: [PATCH bpf-next] libbpf: Fix dumping enum bitfields on big-endian
Date: Wed, 25 Nov 2026 21:10:04 +0000	[thread overview]
Message-ID: <179564100453.1335727.1432980211567527079.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261125081245.74091-1-dennylin0707@gmail.com>

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

On Wed, 25 Nov 2026 08:12:45 +0000 you wrote:
> btf_dump_dump_type_data() reads an enum bitfield into the __s64
> enum_val and passes &enum_val to btf_dump_enum_data(), where
> btf_dump_get_enum_value() loads t->size bytes from that address. For
> enums smaller than 8 bytes, those are the high-order bytes of enum_val
> on big-endian, so every enum bitfield is dumped with value 0.
> 
> Pass the address of the low-order t->size bytes of enum_val instead,
> so the value is loaded the same way on both byte orders.
> 
> [...]

Here is the summary with links:
  - [bpf-next] libbpf: Fix dumping enum bitfields on big-endian
    https://git.kernel.org/bpf/bpf-next/c/3cbbebf6819b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



      reply	other threads:[~2026-11-25 21:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  8:12 [PATCH bpf-next] libbpf: Fix dumping enum bitfields on big-endian Hungyu Lin
2026-11-25 21:10 ` patchwork-bot+netdevbpf [this message]

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=179564100453.1335727.1432980211567527079.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=alan.maguire@oracle.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=dennylin0707@gmail.com \
    --cc=eddyz87@gmail.com \
    --cc=emil@etsalapatis.com \
    --cc=ihor.solodrai@linux.dev \
    --cc=jolsa@kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=memxor@gmail.com \
    --cc=song@kernel.org \
    --cc=yonghong.song@linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.