Description of problem: drivers/of/fdt.c文件的unflatten_dt_nodes函数存在潜在的数组越界问题,具体如下: 此函数存在如下定义: #define FDT_MAX_DEPTH 64 struct device_node *nps[FDT_MAX_DEPTH]; for循环中存在如下语句,WARN_ON_ONCE(depth >= FDT_MAX_DEPTH) continue; ............ if (!populate_node(blob, offset, &mem, nps[depth], &nps[depth+1], dryrun)) 如果depth 值为63时,&nps[depth+1],取值时会产生数组越界的情况。 upstream 2566706ac6393386a4e7c4ce23fe17f4c98d9aa0 已经解决了这个问题
merged: https://gitee.com/anolis/cloud-kernel/pulls/1178