FYI, we noticed a +3057 bytes kernel size regression due to commit:
commit: 8f0a240d4c7c0d1b3c9fadf3fee023f94fa3c745 (mm: introduce secretmemfd system call to
create "secret" memory areas)
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git secretmemfd/v0
Details as below (size data is obtained by `nm --size-sort vmlinux`):
f56cf703: mmap: make mlock_future_check() global
8f0a240d: mm: introduce secretmemfd system call to create "secret" memory areas
+-------------------------------------+----------+----------+-------+
| symbol | f56cf703 | 8f0a240d | delta |
+-------------------------------------+----------+----------+-------+
| bzImage | 442560 | 444032 | 1472 |
| nm.T.gen_pool_alloc_algo_owner | 0 | 425 | 425 |
| nm.T.__ia32_sys_secretmemfd | 0 | 285 | 285 |
| nm.t.secretmem_fault | 0 | 254 | 254 |
| nm.t.bitmap_clear_ll | 0 | 172 | 172 |
| nm.T.devm_gen_pool_create | 0 | 157 | 157 |
| nm.T.gen_pool_free_owner | 0 | 139 | 139 |
| nm.R.secretmem_fops | 0 | 128 | 128 |
| nm.T.gen_pool_best_fit | 0 | 110 | 110 |
| nm.T.gen_pool_destroy | 0 | 110 | 110 |
| nm.t.secretmem_mmap | 0 | 110 | 110 |
| nm.T.gen_pool_add_owner | 0 | 96 | 96 |
| nm.r.secretmem_super_ops | 0 | 92 | 92 |
| nm.r.secretmem_aops | 0 | 88 | 88 |
| nm.T.gen_pool_fixed_alloc | 0 | 70 | 70 |
| nm.T.gen_pool_first_fit_align | 0 | 59 | 59 |
| nm.T.gen_pool_dma_alloc_algo | 0 | 56 | 56 |
| nm.T.gen_pool_create | 0 | 53 | 53 |
| nm.T.gen_pool_first_fit_order_align | 0 | 52 | 52 |
| nm.r.secretmem_vm_ops | 0 | 52 | 52 |
| nm.T.gen_pool_virt_to_phys | 0 | 43 | 43 |
| nm.T.gen_pool_has_addr | 0 | 42 | 42 |
| nm.T.gen_pool_dma_zalloc_algo | 0 | 40 | 40 |
| nm.t.devm_gen_pool_match | 0 | 39 | 39 |
| nm.t.secretmem_evict_inode | 0 | 37 | 37 |
| nm.d.secretmem_fs | 0 | 36 | 36 |
| nm.T.gen_pool_for_each_chunk | 0 | 33 | 33 |
| nm.T.gen_pool_size | 0 | 30 | 30 |
| nm.t.secretmem_init | 0 | 29 | 29 |
| nm.t.secretmem_init_fs_context | 0 | 29 | 29 |
| nm.T.gen_pool_avail | 0 | 27 | 27 |
| nm.T.gen_pool_dma_alloc_align | 0 | 25 | 25 |
| nm.T.gen_pool_dma_zalloc_align | 0 | 25 | 25 |
| nm.T.gen_pool_get | 0 | 24 | 24 |
| nm.T.gen_pool_first_fit | 0 | 21 | 21 |
| nm.T.gen_pool_set_algo | 0 | 19 | 19 |
| nm.T.gen_pool_dma_alloc | 0 | 14 | 14 |
| nm.T.gen_pool_dma_zalloc | 0 | 14 | 14 |
| nm.t.secretmem_migratepage | 0 | 6 | 6 |
| nm.t.secretmem_freepage | 0 | 5 | 5 |
| nm.t.devm_gen_pool_release | 0 | 4 | 4 |
| nm.b.secretmem_mnt | 0 | 4 | 4 |
| nm.t.secretmem_isolate_page | 0 | 3 | 3 |
+-------------------------------------+----------+----------+-------+
Thanks