[PATCH 0/4] usb: gadget: f_mass_storage: Fix crashes on low memory devices
Mattijs Korpershoek
mkorpershoek at kernel.org
Thu Apr 10 10:48:19 CEST 2025
Hi,
On Fri, 28 Mar 2025 09:15:40 +0100, Mattijs Korpershoek wrote:
> Zixun has reported an odd problem in [1].
>
> He encountered a data abort on the 2nd "ums 0 mmc 0" command with
> sam9x60-curiosity board:
>
> U-Boot> ums 0 mmc 0
> UMS: LUN 0, dev mmc 0, hwpart 0, sector 0x0, count 0x1d29000
> CTRL+C - Operation aborted
> U-Boot> ums 0 mmc 0
> UMS: LUN 0, dev mmc 0, hwpart 0, sector 0x0, count 0x1d29000
> data abort
> pc : [<27f93428>] lr : [<27ef7e80>]
> reloc pc : [<23f16428>] lr : [<23e7ae80>]
> sp : 27ef4cf0 ip : a5200000 fp : 23f6915c
> r10: deadbeef r9 : 27ef7e80 r8 : 27f7d2a0
> r7 : a5200000 r6 : 00000000 r5 : 00000000 r4 : 27f01668
> r3 : 00000000 r2 : 00000000 r1 : 27fe1d88 r0 : 27f01668
> Flags: nzCV IRQs off FIQs off Mode SVC_32 (T)
> Code: 45ac d017 68c5 4667 (60fd) 60af
>
> [...]
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu)
[0/4] usb: gadget: f_mass_storage: Fix crashes on low memory devices
(no commit info)
[1/4] usb: gadget: f_mass_storage: Remove kref structure use
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/a4317be9dbe9428f6209cb5595bfc57eb990b023
[2/4] usb: gadget: f_mass_storage: Drop invalid kfree() in fsg_common_release()
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/47fd46db943a55a7e0232e27224d216b774d7575
[3/4] usb: gadget: f_mass_storage: Fix NULL dereference in fsg_add()
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/6c9eaec55ae634bac02e0cf70eb78c879d008a5c
[4/4] usb: gadget: f_mass_storage: Fix memory leak of fsg buffers
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/c76a7090f6480affbe3946fcd0dcc6df9bfe05b3
--
Mattijs
More information about the U-Boot
mailing list