Re: [PATCH v2] expand: fix SIGBUS due to unaligned access
Herbert Xu <[email protected]> Sat, 14 Mar 2026 18:23:16 +0900
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
Natanael Copa <[email protected]> wrote: > Replace direct uint64_t dereference with memcpy() to avoid > SIGBUS on armv7 when p is not 8-byte aligned. > > Fixes crashes in dash during IFS splitting on strict-alignment > architectures. > > Signed-off-by: Natanael Copa <[email protected]> > --- > src/expand.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > v2: > - Added a couple more instances of unaligned access. Patch applied. Thanks. -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt