Unable to handle kernel access to user memory

When I want to use copy_to_user(app_addr,kernel_addr,data_length),the kernel panic.

I had add it to deconfig,but no function.
the code it’s worked on my old version jetson Linux.it’s no problem.

.It’s my kernel panic log:
[ 242.890171] Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000ffff89101478
[ 242.901147] Mem abort info:
[ 242.904019] ESR = 0x9600000f
[ 242.907161] EC = 0x25: DABT (current EL), IL = 32 bits
[ 242.912625] SET = 0, FnV = 0
[ 242.915762] EA = 0, S1PTW = 0
[ 242.918988] Data abort info:
[ 242.921939] ISV = 0, ISS = 0x0000000f
[ 242.925880] CM = 0, WnR = 0
[ 242.928936] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000117ffb000
[ 242.935554] [0000ffff89101478] pgd=000000011a9c3003, p4d=000000011a9c3003, pud=0000000119acd003, pmd=0000000115ce6003, pte=00e800014f5e8f43
[ 242.948416] Internal error: Oops: 9600000f [#1] PREEMPT SMP
[ 242.954138] Modules linked in: fuse lzo_rle lzo_compress zram ramoops reed_solomon unv_dap_drv(OE) unv_hw_ad9026_drv(OE) loop nvgpu snd_soc_tegra210_ope snd_soc_tegra186_asrc snd_soc_tegra210_mvc aes_ce_blk snd_soc_tegra186_dspk crypto_simd snd_soc_tegra186_arad snd_soc_tegra210_iqc snd_soc_tegra210_afc cryptd snd_soc_tegra210_dmic snd_soc_tegra210_admaif snd_soc_tegra210_adx aes_ce_cipher snd_soc_tegra210_amx snd_soc_tegra_pcm snd_soc_tegra210_i2s snd_soc_tegra210_mixer snd_soc_tegra210_sfc ghash_ce sha2_ce sha256_arm64 sha1_ce snd_soc_tegra210_adsp snd_hda_codec_hdmi snd_soc_tegra_machine_driver snd_soc_spdif_tx pwm_fan snd_soc_tegra_utils snd_soc_simple_card_utils r8168 snd_hda_tegra snd_hda_codec userspace_alert nvadsp fusb301 snd_soc_tegra210_ahub ina3221 snd_hda_core tegra_bpmp_thermal tegra210_adma nv_imx219 spi_tegra114 binfmt_misc nvmap ip_tables x_tables
[ 243.033496] CPU: 2 PID: 2156 Comm: MasterTask Tainted: G W OE 5.10.120-tegra #6
[ 243.042056] Hardware name: Unknown NVIDIA Orin Nano Developer Kit/NVIDIA Orin Nano Developer Kit, BIOS 4.1-33958178 08/01/2023
[ 243.053738] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO BTYPE=–)

Hi,
It seems like the address is invalid from the log. For further check, would need other users to share experience.

Jetpack 5 is K5.10 and Jetpack 6 is K5.15. If you would like to try, may try Jetpack 6.1 and see if it works.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.