[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <176061935845.510550.12282030175889296984.b4-ty@kernel.org>
Date: Thu, 16 Oct 2025 18:25:58 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Lizhi Hou <lizhi.hou@....com>, Brian Xu <brian.xu@....com>,
Raj Kumar Rampelli <raj.kumar.rampelli@....com>,
Michal Simek <michal.simek@....com>, Sonal Santan <sonal.santan@....com>,
Max Zhen <max.zhen@....com>, Anthony Brandon <anthony@...rulasolutions.com>
Cc: dmaengine@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Radhey Shyam Pandey <radhey.shyam.pandey@....com>,
Alexander Stein <alexander.stein@...tq-group.com>
Subject: Re: [PATCH v5] dmaengine: xilinx: xdma: Fix regmap max_register
On Mon, 13 Oct 2025 17:48:49 +0200, Anthony Brandon wrote:
> The max_register field is assigned the size of the register memory
> region instead of the offset of the last register.
> The result is that reading from the regmap via debugfs can cause
> a segmentation fault:
>
> tail /sys/kernel/debug/regmap/xdma.1.auto/registers
> Unable to handle kernel paging request at virtual address ffff800082f70000
> Mem abort info:
> ESR = 0x0000000096000007
> EC = 0x25: DABT (current EL), IL = 32 bits
> SET = 0, FnV = 0
> EA = 0, S1PTW = 0
> FSC = 0x07: level 3 translation fault
> [...]
> Call trace:
> regmap_mmio_read32le+0x10/0x30
> _regmap_bus_reg_read+0x74/0xc0
> _regmap_read+0x68/0x198
> regmap_read+0x54/0x88
> regmap_read_debugfs+0x140/0x380
> regmap_map_read_file+0x30/0x48
> full_proxy_read+0x68/0xc8
> vfs_read+0xcc/0x310
> ksys_read+0x7c/0x120
> __arm64_sys_read+0x24/0x40
> invoke_syscall.constprop.0+0x64/0x108
> do_el0_svc+0xb0/0xd8
> el0_svc+0x38/0x130
> el0t_64_sync_handler+0x120/0x138
> el0t_64_sync+0x194/0x198
> Code: aa1e03e9 d503201f f9400000 8b214000 (b9400000)
> ---[ end trace 0000000000000000 ]---
> note: tail[1217] exited with irqs disabled
> note: tail[1217] exited with preempt_count 1
> Segmentation fault
>
> [...]
Applied, thanks!
[1/1] dmaengine: xilinx: xdma: Fix regmap max_register
commit: 81935b90b6fc9cd2dbef823a1fc0a92c00f0c6ea
Best regards,
--
~Vinod
Powered by blists - more mailing lists