Commit 61b2c40
security(kernel): harden memory mapping and IOMMU defaults
Set CONFIG_LSM_MMAP_MIN_ADDR=65536 on both arches (was 0) and enable
CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT on aarch64. Both were set in
AZL 3.0. Bump azl_pkgrelease to 10 for the hardening changes.
- LSM_MMAP_MIN_ADDR=65536: prevents userspace from mapping low virtual
addresses, blocking NULL-pointer dereference exploits. AZL 3.0 x86_64
had 65536, aarch64 had 4096 — now consistent at 65536. Aligned with
KSPP recommendations.
- ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT: IOMMU denies DMA by default for
devices not explicitly assigned, preventing DMA attacks from
compromised devices. Aligned with KSPP recommendations.1 parent 08fd920 commit 61b2c40
7 files changed
Lines changed: 9 additions & 9 deletions
File tree
- base/comps/kernel
- locks
- specs/k/kernel
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11226 | 11226 | | |
11227 | 11227 | | |
11228 | 11228 | | |
11229 | | - | |
| 11229 | + | |
11230 | 11230 | | |
11231 | 11231 | | |
11232 | 11232 | | |
| |||
13410 | 13410 | | |
13411 | 13411 | | |
13412 | 13412 | | |
13413 | | - | |
| 13413 | + | |
13414 | 13414 | | |
13415 | 13415 | | |
13416 | 13416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7536 | 7536 | | |
7537 | 7537 | | |
7538 | 7538 | | |
7539 | | - | |
| 7539 | + | |
7540 | 7540 | | |
7541 | 7541 | | |
7542 | 7542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11226 | 11226 | | |
11227 | 11227 | | |
11228 | 11228 | | |
11229 | | - | |
| 11229 | + | |
11230 | 11230 | | |
11231 | 11231 | | |
11232 | 11232 | | |
| |||
13410 | 13410 | | |
13411 | 13411 | | |
13412 | 13412 | | |
13413 | | - | |
| 13413 | + | |
13414 | 13414 | | |
13415 | 13415 | | |
13416 | 13416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7536 | 7536 | | |
7537 | 7537 | | |
7538 | 7538 | | |
7539 | | - | |
| 7539 | + | |
7540 | 7540 | | |
7541 | 7541 | | |
7542 | 7542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
0 commit comments