public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* stable request: mips strncpy is broken
@ 2021-03-03 17:23 Florian Westphal
  2021-03-04 13:26 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Westphal @ 2021-03-03 17:23 UTC (permalink / raw)
  To: stable; +Cc: pablo, paulburton

Hello,

Please consider queueing

commit 3c0be5849259b729580c23549330973a2dd513a2
Author: Paul Burton <paulburton@kernel.org>
 MIPS: Drop 32-bit asm string functions

The commit is part of 5.5-rc1.

We got a bug report about following nftables rule not matching
even if it should on Linux 5.4.y mips32:

  meta iifname "br-vlan"

'iifname' uses strncpy(..., IFNAMSIZ) to copy dev->name to the register.
The MIPS asm function doesn't zero-pad the remaining bytes, but that is
needed for the compare op to work reliably.

The reporter confirmed that this removal fixes the issue, the generic C
version behaves as expected.

The patch doesn't apply cleanly to 5.4, there is a minor conflict
related to FORTIFY macro, but its easily resolved as all code
is removed.

I did not try earlier 4.4.y releases but I susepct they should also get
this patch applied.

I can send a 5.4.y backport if thats preferred.

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-04 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-03 17:23 stable request: mips strncpy is broken Florian Westphal
2021-03-04 13:26 ` Greg KH
2021-03-04 13:43   ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox