lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <ZQ0PR01MB1253510046CF4C521A9B6ADB9F10A@ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn>
Date: Mon, 6 Jan 2025 10:08:20 +0000
From: William Qiu <william.qiu@...rfivetech.com>
To: Maud Spierings <maud_spierings@...mail.com>
CC: Hal Feng <hal.feng@...rfivetech.com>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "linux-pwm@...r.kernel.org"
	<linux-pwm@...r.kernel.org>, "p.zabel@...gutronix.de"
	<p.zabel@...gutronix.de>, "ukleinek@...nel.org" <ukleinek@...nel.org>
Subject: RE: [PATCH v16] pwm: opencores: Add PWM driver support



> -----Original Message-----
> From: Maud Spierings <maud_spierings@...mail.com>
> Sent: 2025年1月5日 22:51
> To: William Qiu <william.qiu@...rfivetech.com>
> Cc: Hal Feng <hal.feng@...rfivetech.com>; linux-kernel@...r.kernel.org;
> linux-pwm@...r.kernel.org; p.zabel@...gutronix.de; ukleinek@...nel.org
> Subject: Re: [PATCH v16] pwm: opencores: Add PWM driver support
> 
> Hello William,
> 
> 
> I tested this patch on my deepcomputing fml13v01 with a pwm-backlight and I
> am getting an oops:
> 
> [   10.308290] Unable to handle kernel access to user memory without
> uaccess routines at virtual address 0000000200000001 [   10.319038] Oops
> [#1] [   10.321318] Modules linked in: pwm_bl(+) sfctemp designware_i2s
> snd_soc_spdif_tx dm_mod configfs ip_tables x_tables vs_drm drm_dma_helper
> stmmac pcs_xpcs pcie_starfive phy_jh7110_usb phy_jh7110_pcie phy_jh
> 7110_dphy_rx phy_generic overlay jh7110_trng jh7110_tdm jh7110_pwmdac
> inno_hdmi drm_kms_helper i2c_hid_of i2c_hid hid_multitouch hci_uart drm
> drm_panel_orientation_quirks clk_starfive_jh7110_vout clk_starfive
> _jh7110_stg clk_starfive_jh7110_isp clk_starfive_jh7110_aon
> clk_starfive_jh7100_audio cdns3_starfive cdns3 cdns_usb_common roles btintel
> bridge stp llc bluetooth libaes ecdh_generic ecc backlight efivarfs
> [   10.375483] CPU: 3 UID: 0 PID: 307 Comm: (udev-worker) Not tainted
> 6.13.0-rc4-00032-ga27a3464e6ab-dirty #16 [   10.385227] Hardware name:
> Unknown Unknown Product/Unknown Product, BIOS 2021.10 10/01/2021
> [   10.393576] epc : ocores_pwm_get_state+0x22/0xca [   10.398204]  ra :
> pwm_get_state_hw+0x10c/0x132 [   10.402651] epc : ffffffff804f8d48 ra :
> ffffffff804f81f4 sp :
> ffffffc600f1b5c0
> [   10.409875]  gp : ffffffff814f8658 tp : ffffffd6c3efe400 t0 :
> 0000000000000000
> [   10.417096]  t1 : 0000000000000040 t2 : ffffffff814a0498 s0 :
> ffffffc600f1b600
> [   10.424317]  s1 : ffffffd6c0b9b800 a0 : ffffffc6007b0000 a1 :
> ffffffd6c0b9bbb8
> [   10.431539]  a2 : ffffffc600f1b690 a3 : 0000000000000000 a4 :
> 0000000000000000
> [   10.438760]  a5 : 0000000200000001 a6 : ffffffd6c07fd918 a7 :
> 0000000000000000
> [   10.445982]  s2 : ffffffff80e6b2c0 s3 : ffffffd6c0b9bec0 s4 :
> ffffffc600f1b690
> [   10.453204]  s5 : ffffffd6c0b9bbb8 s6 : 0000000000000000 s7 :
> ffffffd6c0b9bb78
> [   10.460426]  s8 : ffffffc600f1bc90 s9 : 0000000000000000 s10:
> ffffffc600f1bc40
> [   10.467648]  s11: 0000000000000001 t3 : 0000000000000000 t4 :
> 0000000000000002
> [   10.474868]  t5 : 0000000000000000 t6 : 0000000000000402
> [   10.480179] status: 0000000200000120 badaddr: 0000000200000001
> cause:
> 000000000000000d
> [   10.488096] [<ffffffff804f8d48>] ocores_pwm_get_state+0x22/0xca
> [   10.494019] [<ffffffff804f81f4>] pwm_get_state_hw+0x10c/0x132
> [   10.499768] [<ffffffff804f8338>]
> pwm_request_from_chip.part.0+0x11e/0x182
> [   10.506556] [<ffffffff804f8640>] of_pwm_xlate_with_flags+0x26/0x64
> [   10.512739] [<ffffffff804f7084>] of_pwm_get+0x146/0x1ea [   10.517967]
> [<ffffffff804f84e8>] pwm_get+0x14c/0x1d4 [   10.522934] [<ffffffff804f8582>]
> devm_pwm_get+0x12/0x4e [   10.528166] [<ffffffff018ab2ae>]
> pwm_backlight_probe+0x102/0x84a [pwm_bl] [   10.534963]
> [<ffffffff805a05c4>] platform_probe+0x4e/0xb2 [   10.540369]
> [<ffffffff8059e0b0>] really_probe+0x84/0x22a [   10.545684]
> [<ffffffff8059e2b2>] __driver_probe_device+0x5c/0xdc [   10.551694]
> [<ffffffff8059e3f4>] driver_probe_device+0x2c/0xb2 [   10.557529]
> [<ffffffff8059e574>] __driver_attach+0x6c/0x11a [   10.563104]
> [<ffffffff8059c1c4>] bus_for_each_dev+0x62/0xb0 [   10.568679]
> [<ffffffff8059daf2>] driver_attach+0x1a/0x22 [   10.573993]
> [<ffffffff8059d3e8>] bus_add_driver+0xce/0x1d6 [   10.579481]
> [<ffffffff8059f114>] driver_register+0x40/0xda [   10.584970]
> [<ffffffff805a034c>] __platform_driver_register+0x1c/0x24
> [   10.591415] [<ffffffff018b1020>]
> pwm_backlight_driver_init+0x20/0x1000 [pwm_bl] [   10.598730]
> [<ffffffff8000f12c>] do_one_initcall+0x5c/0x1aa [   10.604306]
> [<ffffffff8009f992>] do_init_module+0x52/0x1b2 [   10.609796]
> [<ffffffff800a10f2>] load_module+0x1374/0x177e [   10.615284]
> [<ffffffff800a16c0>] init_module_from_file+0x76/0xae [   10.621292]
> [<ffffffff800a18e4>] __riscv_sys_finit_module+0x1b4/0x31c
> [   10.627735] [<ffffffff80983cf4>] do_trap_ecall_u+0x1a8/0x1d4
> [   10.633399] [<ffffffff8098d8a2>]
> _new_vmalloc_restore_context_a0+0xc2/0xce
> [   10.640285] Code: ec4e 0080 3983 0785 8aae 8a32 b783 0009 b503 0089
> (639c) c399
> [   10.647772] ---[ end trace 0000000000000000 ]---
> 
> 
> kind regards,
> Maud Spierings


Hi Maud,
Thanks for your email, I'll fix it in next version.

Best Regards,
William

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ