devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] of: unittest: re-implement overlay tracking
@ 2022-01-01  3:33 frowand.list
  2022-01-01  3:33 ` [PATCH 1/2] of: unittest: change references to obsolete overlay id frowand.list
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: frowand.list @ 2022-01-01  3:33 UTC (permalink / raw)
  To: Rob Herring, erhard_f, yinxiujiang; +Cc: devicetree, linux-kernel

From: Frank Rowand <frank.rowand@sony.com>

Some overlays are tracked when they are applied.  The tracked overlays
are later removed after the overlay tests are completed.  The old
implementation makes assumptions about the expected values for
overlay changeset id created by the overlay apply which result
in fragile code.  The new code removes the assumptions.

A symptom that exposes a problem with the tracking code is a
warning "UBSAN: shift-out-of-bounds in drivers/of/unittest.c:1933:36",
Kernel Version: 5.15-rc7, PPC-64, Talos II.  This results from variable
"id" value of -1 in the final line of of_unittest_untrack_overlay().

The first patch in the series cleans up the inconsistent use of overlay
changeset id and the obsolete overlay id.  The id is a core concept in
the overlay tracking that is re-implemented in the second patch in
the series.

Frank Rowand (2):
  of: unittest: change references to obsolete overlay id
  of: unittest: re-implement overlay tracking

 drivers/of/unittest.c | 154 +++++++++++++++++++-----------------------
 1 file changed, 71 insertions(+), 83 deletions(-)

-- 
Frank Rowand <frank.rowand@sony.com>


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

end of thread, other threads:[~2022-01-05  1:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-01  3:33 [PATCH 0/2] of: unittest: re-implement overlay tracking frowand.list
2022-01-01  3:33 ` [PATCH 1/2] of: unittest: change references to obsolete overlay id frowand.list
2022-01-05  1:20   ` Rob Herring
2022-01-01  3:33 ` [PATCH 2/2] of: unittest: re-implement overlay tracking frowand.list
2022-01-05  1:22   ` Rob Herring
2022-01-01  3:39 ` [PATCH 0/2] " Frank Rowand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).