Venkatesh Yadav Abbarapu
0508653ea6
mtd: nand: arasan: Fix the crash caused by use after free
The below exception observed on QEMU, as it doesn't support
NAND controller.
"Synchronous Abort" handler, esr 0x96000005, far 0x17acfc878
elr: 000000000803ad40 lr : 000000000805f438 (reloc)
elr: 000000007fcb4d40 lr : 000000007fcd9438
x0 : 000000007bbfc880 x1 : 00000000ff100000
x2 : 000000007fcf059c x3 : 000000007bbfc870
x4 : 000000007fd9a388 x5 : 000000017acfc870
x6 : 0000000000000000 x7 : 000000007bbfd0e0
x8 : 0000000000003dd4 x9 : 000000007bbeec0c
x10: 0000000000000001 x11: 0000000000003f8c
x12: 000000007bbeecfc x13: 000000007bbeeeb0
x14: 000000007bbeeeb0 x15: 000000007bbee474
x16: 000000007fcef18c x17: 0000000000000000
x18: 000000007bbf9d70 x19: 000000007bbfc888
x20: 000000007bbfc870 x21: 000000007fd68ddb
x22: 00000000ffffffed x23: 000000007bbfc878
x24: 0000000000000000 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000000000000
x28: 0000000000000000 x29: 000000007bbeed10
Code: 927ff8c1 924000c6 8b010065 f9400887 (f94004a2)
Resetting CPU ...
The crash is caused by the use after free.
Updating the correct return codes rather than hardcoding.
Fixes: 3dd0f8cccd ("mtd: nand: Remove hardcoded base address of nand")
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20240306033404.18537-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
2024-03-12 16:07:24 +01:00
..
2023-10-18 10:02:49 +02:00
2023-11-20 09:19:50 -05:00
2023-12-21 08:54:37 -05:00
2024-02-06 16:31:07 -05:00
2023-10-31 09:09:04 +01:00
2024-02-14 17:21:50 +00:00
2023-12-27 17:28:57 +08:00
2024-02-20 08:02:49 -05:00
2023-12-13 18:39:05 -05:00
2024-02-02 19:57:16 +01:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-11-21 15:28:15 +01:00
2024-02-06 16:31:06 -05:00
2024-01-09 14:58:33 +01:00
2024-02-06 16:31:06 -05:00
2023-10-09 10:25:32 +02:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2023-10-11 10:35:24 -04:00
2024-01-18 12:18:48 -05:00
2023-12-13 11:35:16 -05:00
2024-01-29 22:35:02 -05:00
2024-02-13 15:38:11 -05:00
2024-02-08 09:17:46 -03:00
2024-02-07 08:33:47 -05:00
2024-03-12 16:07:24 +01:00
2023-11-10 11:01:50 -05:00
2024-02-12 13:41:03 -05:00
2024-01-18 20:24:13 -05:00
2024-01-18 20:24:13 -05:00
2023-12-21 08:54:37 -05:00
2024-01-29 22:35:02 -05:00
2024-02-20 08:02:49 -05:00
2024-01-29 22:35:02 -05:00
2023-11-16 18:59:58 -05:00
2023-11-07 14:50:51 -05:00
2024-02-04 18:45:58 +08:00
2023-12-19 10:07:48 -05:00
2024-01-24 16:17:14 -05:00
2024-01-09 07:37:05 +01:00
2024-01-29 22:35:02 -05:00
2023-11-20 09:19:50 -05:00
2024-03-01 08:41:39 +01:00
2023-11-06 09:45:47 +01:00
2024-02-20 08:02:49 -05:00
2024-02-12 09:26:20 -05:00
2024-01-16 12:26:54 +00:00
2023-11-28 12:53:04 -05:00
2023-11-20 09:19:50 -05:00
2023-12-19 10:07:48 -05:00
2023-11-10 11:01:50 -05:00
2024-01-29 22:35:02 -05:00
2023-11-22 10:03:55 +02:00
2023-11-27 16:19:09 -05:00
2024-02-19 20:08:51 +01:00
2024-02-05 09:31:48 -05:00
2023-11-20 09:19:50 -05:00
2024-02-01 09:08:44 +01:00
2023-11-29 09:32:15 -05:00
2023-10-15 12:23:48 +02:00
2023-10-22 23:41:52 +01:00