Summary: | Use of thumb NEON instructions in thread causes SIGILL | ||
---|---|---|---|
Product: | Base System | Reporter: | Robert Clausecker <fuz> |
Component: | arm | Assignee: | Michal Meloun <mmel> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | cognet, mmel |
Priority: | --- | Flags: | fuz:
mfc-stable13?
fuz: mfc-stable12? |
Version: | 13.0-RELEASE | ||
Hardware: | arm | ||
OS: | Any |
Description
Robert Clausecker
2021-10-15 14:57:22 UTC
Hi Michal, I think cognet@ already developed a patch for this one but didn't follow up on the PR. Please ask on #bsdmips for the current state of things. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a670e1c13a522df4fb8c63bb023b88b1d65de797 commit a670e1c13a522df4fb8c63bb023b88b1d65de797 Author: Michal Meloun <mmel@FreeBSD.org> AuthorDate: 2021-10-17 17:36:33 +0000 Commit: Michal Meloun <mmel@FreeBSD.org> CommitDate: 2021-11-02 10:11:44 +0000 arm: Fix handling of undefined instruction aborts in THUMB2 mode. Correctly recognize NEON/SIMD and VFP instructions in THUMB2 mode and pass these to the appropriate handler. Note that it is not necessary to filter all undefined instruction variant or register combinations, this is a job for given handler. Reported by: Robert Clausecker <fuz@fuz.su> PR: 259187 MFC after: 2 weks sys/arm/arm/undefined.c | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) Hi, Unfortunately the 12.3 release window was missed for this patch. Can you still MFC it? A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=79631b49eeda47d90f6ceba9ad574e6625f1f2f1 commit 79631b49eeda47d90f6ceba9ad574e6625f1f2f1 Author: Michal Meloun <mmel@FreeBSD.org> AuthorDate: 2021-10-17 17:36:33 +0000 Commit: Michal Meloun <mmel@FreeBSD.org> CommitDate: 2022-01-20 10:12:36 +0000 arm: Fix handling of undefined instruction aborts in THUMB2 mode. Correctly recognize NEON/SIMD and VFP instructions in THUMB2 mode and pass these to the appropriate handler. Note that it is not necessary to filter all undefined instruction variant or register combinations, this is a job for given handler. Reported by: Robert Clausecker <fuz@fuz.su> PR: 259187 MFC after: 2 weks (cherry picked from commit a670e1c13a522df4fb8c63bb023b88b1d65de797) sys/arm/arm/undefined.c | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) Can we get this patch in for 12.4? A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e5c0e6d7810cbfc57b80f123ca48b485bdcd48d1 commit e5c0e6d7810cbfc57b80f123ca48b485bdcd48d1 Author: Michal Meloun <mmel@FreeBSD.org> AuthorDate: 2021-10-17 17:36:33 +0000 Commit: Olivier Houchard <cognet@FreeBSD.org> CommitDate: 2022-11-18 09:45:31 +0000 arm: Fix handling of undefined instruction aborts in THUMB2 mode. Correctly recognize NEON/SIMD and VFP instructions in THUMB2 mode and pass these to the appropriate handler. Note that it is not necessary to filter all undefined instruction variant or register combinations, this is a job for given handler. Reported by: Robert Clausecker <fuz@fuz.su> PR: 259187 MFC after: 2 weks (cherry picked from commit a670e1c13a522df4fb8c63bb023b88b1d65de797) Signed-off-by: Olivier Houchard <cognet@FreeBSD.org> sys/arm/arm/undefined.c | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) Is there any work left to do on this one? Seems like we are done here. |