linux-stable/drivers/of
Sergey Shtylyov 2133f45131 of: fdt: fix off-by-one error in unflatten_dt_nodes()
[ Upstream commit 2f945a792f ]

Commit 78c44d910d ("drivers/of: Fix depth when unflattening devicetree")
forgot to fix up the depth check in the loop body in unflatten_dt_nodes()
which makes it possible to overflow the nps[] buffer...

Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.

Fixes: 78c44d910d ("drivers/of: Fix depth when unflattening devicetree")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/7c354554-006f-6b31-c195-cdfe4caee392@omp.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-23 14:14:01 +02:00
..
unittest-data of: overlay: unittest: add tests for overlay notifiers 2022-05-03 11:53:15 -05:00
Kconfig of: net: move of_net under net/ 2021-10-07 13:39:51 +01:00
Makefile of: net: move of_net under net/ 2021-10-07 13:39:51 +01:00
address.c of: Move of_dma_set_restricted_buffer() into device.c 2021-08-23 06:32:02 -04:00
base.c Revert "of: base: Introduce of_alias_get_alias_list() to check alias IDs" 2022-03-21 11:35:29 -05:00
device.c of: device: Fix missing of_node_put() in of_dma_set_restricted_buffer 2022-08-17 15:15:31 +02:00
dynamic.c
fdt.c of: fdt: fix off-by-one error in unflatten_dt_nodes() 2022-09-23 14:14:01 +02:00
fdt_address.c
irq.c of/irq: fix typo in comment 2022-05-23 16:37:01 -05:00
kexec.c of: check previous kernel's ima-kexec-buffer against memory bounds 2022-08-17 15:15:01 +02:00
kobj.c of: kobj: make of_node_is_(initialized|attached) parameters const 2021-10-20 13:37:25 -05:00
of_numa.c of, numa: Fetch empty NUMA node ID from distance map 2021-10-04 13:13:44 -05:00
of_private.h of: kobj: make of_node_is_(initialized|attached) parameters const 2021-10-20 13:37:25 -05:00
of_reserved_mem.c cma: factor out minimum alignment requirement 2022-03-22 15:57:05 -07:00
overlay.c of: overlay: Move devicetree_corrupt() check up 2022-08-25 11:45:45 +02:00
pdt.c
platform.c drm for 5.19-rc1 2022-05-25 16:18:27 -07:00
property.c Devicetree updates for v5.19: 2022-05-25 14:56:06 -07:00
resolver.c
unittest.c of: overlay: do not free changeset when of_overlay_apply returns error 2022-05-03 11:53:15 -05:00