summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/smt.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2020-01-21 15:29:59 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2020-01-31 21:20:35 +1100
commit5e84dd547bce965c203cae71418cacb8592a0d3f (patch)
tree78c05b89a6aaa7ffc17a53746d0fcffeb3248401 /drivers/net/ethernet/chelsio/cxgb4/smt.c
parent3554c12d835d16824afb0abaa6689bd89d26a009 (diff)
downloadblackbird-op-linux-5e84dd547bce965c203cae71418cacb8592a0d3f.tar.gz
blackbird-op-linux-5e84dd547bce965c203cae71418cacb8592a0d3f.zip
powerpc/configs/skiroot: Enable some more hardening options
Enable more hardening options. Note BUG_ON_DATA_CORRUPTION selects DEBUG_LIST and is essentially just a synonym for it. DEBUG_SG, DEBUG_NOTIFIERS, DEBUG_LIST, DEBUG_CREDENTIALS and SCHED_STACK_END_CHECK should all be low overhead and just add a few extra checks. SLAB_FREELIST_RANDOM, and SLUB_DEBUG_ON will add some overhead to the SLAB allocator, but nothing that should be meaningful for skiroot. Unselecting SLAB_MERGE_DEFAULT causes the SLAB to use more memory, but the skiroot kernel shouldn't be memory constrained on any of our systems, all it does is run a small bootloader. Disabling merging has some security/robustness benefit as it means a user-after-free or overflow will be limited to the objects in that slab, rather than potentially affecting objects from unrelated slabs that have been merged. Note also that slab merging is disabled anyway by enabling SLUB_DEBUG_ON, because of the SLAB_NEVER_MERGE mask. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20200121043000.16212-9-mpe@ellerman.id.au
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/smt.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud