Skip to content

net/core: work around section mismatch warning for ptp_classifier

Gerald Schaefer netdev 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1net/core: work around section mismatch warning for ptp_classifiernet/core/ptp_classifier.c+4 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] net/core: work around section mismatch warning for ptp_classifier

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(-)
Signature · 1 line
2.16.4