Content-Type: multipart/mixed; boundary="===============2819771239134428116==" MIME-Version: 1.0 From: Christy Lee To: kbuild-all@lists.01.org Subject: [PATCH bpf-next] Fix incorrect integer literal used for marking scratched registers in verifier logs Date: Fri, 07 Jan 2022 16:58:54 -0800 Message-ID: <20220108005854.658596-1-christylee@fb.com> In-Reply-To: <202201060848.nagWejwv-lkp@intel.com> List-Id: --===============2819771239134428116== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable env->scratched_stack_slots is a 64-bit value, we should use ULL instead of UL literal values. Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Christy Lee --- kernel/bpf/verifier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index bfb45381fb3f..a8587210907d 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -616,7 +616,7 @@ static void mark_reg_scratched(struct bpf_verifier_env = *env, u32 regno) = static void mark_stack_slot_scratched(struct bpf_verifier_env *env, u32 sp= i) { - env->scratched_stack_slots |=3D 1UL << spi; + env->scratched_stack_slots |=3D 1ULL << spi; } = static bool reg_scratched(const struct bpf_verifier_env *env, u32 regno) @@ -637,14 +637,14 @@ static bool verifier_state_scratched(const struct bpf= _verifier_env *env) static void mark_verifier_state_clean(struct bpf_verifier_env *env) { env->scratched_regs =3D 0U; - env->scratched_stack_slots =3D 0UL; + env->scratched_stack_slots =3D 0ULL; } = /* Used for printing the entire verifier state. */ static void mark_verifier_state_scratched(struct bpf_verifier_env *env) { env->scratched_regs =3D ~0U; - env->scratched_stack_slots =3D ~0UL; + env->scratched_stack_slots =3D ~0ULL; } = /* The reg state of a pointer or a bounded scalar was saved when -- = 2.30.2 --===============2819771239134428116==--