|
@@ -27,6 +27,9 @@
|
|
#include <linux/delay.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/bitops.h>
|
|
#include <linux/bitops.h>
|
|
#include <asm/uv/uv_hub.h>
|
|
#include <asm/uv/uv_hub.h>
|
|
|
|
+
|
|
|
|
+#include <linux/nospec.h>
|
|
|
|
+
|
|
#include "gru.h"
|
|
#include "gru.h"
|
|
#include "grutables.h"
|
|
#include "grutables.h"
|
|
#include "gruhandles.h"
|
|
#include "gruhandles.h"
|
|
@@ -196,6 +199,7 @@ int gru_dump_chiplet_request(unsigned long arg)
|
|
/* Currently, only dump by gid is implemented */
|
|
/* Currently, only dump by gid is implemented */
|
|
if (req.gid >= gru_max_gids)
|
|
if (req.gid >= gru_max_gids)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
+ req.gid = array_index_nospec(req.gid, gru_max_gids);
|
|
|
|
|
|
gru = GID_TO_GRU(req.gid);
|
|
gru = GID_TO_GRU(req.gid);
|
|
ubuf = req.buf;
|
|
ubuf = req.buf;
|