All of lore.kernel.org
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: AmirArsalan Yavari Darani <arya48.yavari79@gmail.com>
Cc: bpf@vger.kernel.org, qmo@kernel.org, ast@kernel.org,
	daniel@iogearbox.net, andrii@kernel.org, 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
Subject: Re: [PATCH bpf] bpftool: Fix address comparison in kernel_syms_cmp()
Date: Sat, 05 Dec 2026 03:50:06 +0000	[thread overview]
Message-ID: <179644260690.2040239.5369963302182732830.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261204170206.73462-1-arya48.yavari79@gmail.com>

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Fri,  4 Dec 2026 20:32:06 +0330 you wrote:
> kernel_syms_cmp() subtracts two unsigned long symbol addresses and
> returns the result as an int. On 64-bit systems this truncates the
> difference to 32 bits, and on 32-bit systems unsigned differences
> above INT_MAX become negative.
> 
> When /proc/kallsyms contains addresses at least 2 GiB apart, such as
> low per-CPU symbol offsets alongside kernel text and module addresses,
> the comparator can return the wrong sign or 0 for distinct addresses.
> This breaks the qsort() ordering of dd->sym_mapping and causes
> bsearch() in kernel_syms_search() to miss symbols or match the wrong
> entry.
> 
> [...]

Here is the summary with links:
  - [bpf] bpftool: Fix address comparison in kernel_syms_cmp()
    https://git.kernel.org/bpf/bpf-next/c/5ce5a3c50a7e

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



      parent reply	other threads:[~2026-12-05  3:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 17:02 [PATCH bpf] bpftool: Fix address comparison in kernel_syms_cmp() Arsalan Yavari
2026-12-04 17:55 ` Quentin Monnet
2026-12-04 18:36   ` AmirArsalan Yavari Darani
2026-12-05  3:50 ` 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=179644260690.2040239.5369963302182732830.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=andrii@kernel.org \
    --cc=arya48.yavari79@gmail.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --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=qmo@kernel.org \
    --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.