Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Jaeyeong Lee <lee@jaeyeong.cc>
Cc: Jason Gunthorpe <jgg@ziepe.ca>,
	Artemy Kovalyov <artemyko@mellanox.com>,
	Yishai Hadas <yishaih@mellanox.com>,
	linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH v2] RDMA/mlx5: Preserve DEVX objects after failed output copy
Date: Wed, 25 Nov 2026 15:12:44 +0200	[thread overview]
Message-ID: <20261125131244.GB14811@unreal> (raw)
In-Reply-To: <20261122103855.51859-1-lee@jaeyeong.cc>

On Sun, Nov 22, 2026 at 10:39:01AM +0000, Jaeyeong Lee wrote:
> As requested, below is the full dmesg from the reproducer run.

<...>

> [   13.847526] mlx5_dct_repro: loading out-of-tree module taints kernel.

What value does this change provide if it is based on an AI-generated sequence?

Thanks

> [   13.915884] MLX5-DCT-REPRO: forcing DRAIN_DCT to fail with command interface down
> [   13.916736] MLX5-DCT-REPRO: destroy failed as required: -67
> [   13.916817] MLX5-DCT-REPRO: failed destroy retained DCT ffff88800b112c58 in dct_xa
> [   13.916862] MLX5-DCT-REPRO: mimicking DEVX create unwind kfree(ffff88800b112c00)
> [   13.916924] MLX5-DCT-REPRO: delivering DCT_DRAINED event through actual notifier
> [   13.917219] ==================================================================
> [   13.917427] BUG: KASAN: slab-use-after-free in _raw_spin_lock_irqsave+0x38/0x90
> [   13.917427] Write of size 4 at addr ffff88800b112cb0 by task insmod/77
> [   13.917427] 
> [   13.917427] CPU: 0 UID: 0 PID: 77 Comm: insmod Tainted: G           O        7.4.0-rc1-g05441d697f7f #2 PREEMPT(lazy) 
> [   13.917427] Tainted: [O]=OOT_MODULE
> [   13.917427] Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
> [   13.917427] Call Trace:
> [   13.917427]  <TASK>
> [   13.917427]  dump_stack_lvl+0x43/0x60
> [   13.917427]  print_address_description+0x77/0x200
> [   13.917427]  ? _raw_spin_lock_irqsave+0x38/0x90
> [   13.917427]  print_report+0x58/0x70
> [   13.917427]  kasan_report+0x117/0x150
> [   13.917427]  ? _raw_spin_lock_irqsave+0x38/0x90
> [   13.917427]  kasan_check_range+0x264/0x2c0
> [   13.917427]  _raw_spin_lock_irqsave+0x38/0x90
> [   13.917427]  complete+0x28/0x1b0
> [   13.917427]  rsc_event_notifier+0x1fc/0x410
> [   13.917427]  init_module+0x454/0xff0 [mlx5_dct_repro]
> [   13.917427]  ? rsc_event_notifier+0x4/0x410
> [   13.917427]  ? mlx5_core_destroy_dct+0x4/0x410
> [   13.917427]  ? rsc_event_notifier+0x4/0x410
> [   13.917427]  do_one_initcall+0x100/0x380
> [   13.917427]  ? __pfx_init_module+0x10/0x10 [mlx5_dct_repro]
> [   13.917427]  ? kasan_save_track+0x4f/0x80
> [   13.917427]  ? kasan_save_track+0x3e/0x80
> [   13.917427]  ? __kasan_kmalloc+0x72/0x90
> [   13.917427]  ? __kmalloc_cache_noprof+0x162/0x390
> [   13.917427]  ? do_init_module+0x5c/0x670
> [   13.917427]  ? __se_sys_finit_module+0x34e/0x540
> [   13.917427]  ? do_syscall_64+0x109/0x330
> [   13.917427]  ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
> [   13.917427]  ? read_hpet+0xd6/0x150
> [   13.917427]  ? ktime_get+0x103/0x140
> [   13.917427]  ? lapic_next_event+0x11/0x20
> [   13.917427]  ? clockevents_program_event+0x1e3/0x440
> [   13.917427]  ? __hrtimer_rearm_deferred+0x1fb/0x380
> [   13.917427]  ? irqentry_exit+0x574/0x600
> [   13.917427]  ? resolve_function+0xb0/0xb0 [mlx5_dct_repro]

Thanks

  reply	other threads:[~2026-11-25 13:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11 10:53 [PATCH] RDMA/mlx5: Fix UAF after DEVX DCT create failure Jaeyeong Lee
2026-11-11 11:13 ` sashiko-bot
2026-11-15 13:51 ` Leon Romanovsky
2026-11-22 10:37   ` [PATCH v2] RDMA/mlx5: Preserve DEVX objects after failed output copy Jaeyeong Lee
2026-11-22 10:39     ` Jaeyeong Lee
2026-11-25 13:12       ` Leon Romanovsky [this message]
2026-11-22 10:48     ` sashiko-bot

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=20261125131244.GB14811@unreal \
    --to=leon@kernel.org \
    --cc=artemyko@mellanox.com \
    --cc=jgg@ziepe.ca \
    --cc=lee@jaeyeong.cc \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=yishaih@mellanox.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