Re: [edk2-platforms PATCH v1 0/1] BoardModulePkg: Copy device path

Attar, AbdulLateef (Abdul Lateef) <AbdulLateef.Attar@...>


Could you please review the patch?

-----Original Message-----
From: <> On Behalf Of Abdul Lateef Attar via
Sent: 15 March 2022 10:16
Cc: Eric Dong <eric.dong@...>; Liming Gao <gaoliming@...>
Subject: [edk2-devel] [edk2-platforms PATCH v1 0/1] BoardModulePkg: Copy device path

[CAUTION: External Email]

(Resending patch with [edk2-platforms] prefix with correct emailid).
GCC compiler puts the DevicePath PCDs to the read-only section. During boot if try to process the device path after PtrGetPtr it throws a page fault exception.

Hence making a local copy using DuplicateDevicePath() to avoid the page fault exception.

REF :;;sdata=MX%2FlzKO2jVyPHaaURb7b8kMyNWFAlMPZ%2B0gK%2Ffrh5xo%3D&amp;reserved=0

Cc: Eric Dong <eric.dong@...>
Cc: Liming Gao <gaoliming@...>

Abdul Lateef Attar (1):
BoardModulePkg: Copy device path before processing

Platform/Intel/BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.c | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)


Join to automatically receive all group messages.