)]}' { "commit": "d825c06bfe8b885b797f917ad47365d0e9c21fbb", "tree": "f825c3681af8a7a962b95c23c4904d27ac5df35f", "parents": [ "7a50e4688dabb8005df39b2b992d76629b8af8aa" ], "author": { "name": "James Hogan", "email": "james.hogan@imgtec.com", "time": "Fri Mar 04 10:10:51 2016 +0000" }, "committer": { "name": "Ralf Baechle", "email": "ralf@linux-mips.org", "time": "Sun Mar 13 10:59:19 2016 +0100" }, "message": "MIPS: smp.c: Fix uninitialised temp_foreign_map\n\nWhen calculate_cpu_foreign_map() recalculates the cpu_foreign_map\ncpumask it uses the local variable temp_foreign_map without initialising\nit to zero. Since the calculation only ever sets bits in this cpumask\nany existing bits at that memory location will remain set and find their\nway into cpu_foreign_map too. This could potentially lead to cache\noperations suboptimally doing smp calls to multiple VPEs in the same\ncore, even though the VPEs share primary caches.\n\nTherefore initialise temp_foreign_map using cpumask_clear() before use.\n\nFixes: cccf34e9411c (\"MIPS: c-r4k: Fix cache flushing for MT cores\")\nSigned-off-by: James Hogan \u003cjames.hogan@imgtec.com\u003e\nCc: Paul Burton \u003cpaul.burton@imgtec.com\u003e\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/12759/\nSigned-off-by: Ralf Baechle \u003cralf@linux-mips.org\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "bd4385a8e6e86f7fbb9ca6d988f5eee155b9a8c7", "old_mode": 33188, "old_path": "arch/mips/kernel/smp.c", "new_id": "2b521e07b8601a2c80e888b3064009779effa78b", "new_mode": 33188, "new_path": "arch/mips/kernel/smp.c" } ] }