Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 0b60be16 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Mikulas Patocka
Browse files

dm: Constify struct dm_block_validator


'struct dm_block_validator' are not modified in these drivers.

Constifying this structure moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig, as an example:

Before:
======
   text	   data	    bss	    dec	    hex	filename
  32047	    920	     16	  32983	   80d7	drivers/md/dm-cache-metadata.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
  32075	    896	     16	  32987	   80db	drivers/md/dm-cache-metadata.o

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent fb098768
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment