While preparing KASLR for s390, I stumbled over a section mismatch warning after enabling -fPIE compiler option: WARNING: vmlinux.o(.data+0x31070): Section mismatch in reference from the variable print_fmt_kfree_skb to the variable .init.data:ptp_filter.51760
I found a patch that would address this issue as part of a KASLR patch series for ARM from Ard Biesheuvel: https://marc.info/?l=kernel-hardening&m=150444052819798&w=2 https://marc.info/?l=kernel-hardening&m=150444051919794&w=2 That patch series did not make it upstream, and there seems to be no other arch using -fpic/pie so far, so this fix is still missing. Dave, could you please pick it up, as we will see this warning on s390 after my KASRL patches go upstream. Ard Biesheuvel (1): net/core: work around section mismatch warning for ptp_classifier net/core/ptp_classifier.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.16.4