mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
2fe0e8769d
Add test case of two fragments updating the same property. After adding the test case, the system hangs at end of boot, after after slub stack dumps from kfree() in crypto modprobe code. Multiple overlay fragments adding, modifying, or deleting the same property is not supported. Add check to detect the attempt and fail the overlay apply. Before this patch, the first fragment error would terminate processing. Allow fragment checking to proceed and report all of the fragment errors before terminating the overlay apply. This is not a hot path, thus not a performance issue (the error is not transient and requires fixing the overlay before attempting to apply it again). After applying this patch, the devicetree unittest messages will include: OF: overlay: ERROR: multiple fragments add, update, and/or delete property /testcase-data-2/substation@100/motor-1/rpm_avail ... ### dt-test ### end of unittest - 212 passed, 0 failed The check to detect two fragments updating the same property is folded into the patch that created the test case to maintain bisectability. Tested-by: Alan Tull <atull@kernel.org> Signed-off-by: Frank Rowand <frank.rowand@sony.com>
35 lines
943 B
Makefile
35 lines
943 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-y += testcases.dtb.o
|
|
|
|
obj-$(CONFIG_OF_OVERLAY) += overlay.dtb.o \
|
|
overlay_0.dtb.o \
|
|
overlay_1.dtb.o \
|
|
overlay_2.dtb.o \
|
|
overlay_3.dtb.o \
|
|
overlay_4.dtb.o \
|
|
overlay_5.dtb.o \
|
|
overlay_6.dtb.o \
|
|
overlay_7.dtb.o \
|
|
overlay_8.dtb.o \
|
|
overlay_9.dtb.o \
|
|
overlay_10.dtb.o \
|
|
overlay_11.dtb.o \
|
|
overlay_12.dtb.o \
|
|
overlay_13.dtb.o \
|
|
overlay_15.dtb.o \
|
|
overlay_bad_add_dup_node.dtb.o \
|
|
overlay_bad_add_dup_prop.dtb.o \
|
|
overlay_bad_phandle.dtb.o \
|
|
overlay_bad_symbol.dtb.o \
|
|
overlay_base.dtb.o
|
|
|
|
# enable creation of __symbols__ node
|
|
DTC_FLAGS_overlay += -@
|
|
DTC_FLAGS_overlay_bad_phandle += -@
|
|
DTC_FLAGS_overlay_bad_symbol += -@
|
|
DTC_FLAGS_overlay_base += -@
|
|
DTC_FLAGS_testcases += -@
|
|
|
|
# suppress warnings about intentional errors
|
|
DTC_FLAGS_testcases += -Wno-interrupts_property
|