summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2022-12-08 02:11:39 +0530
committerAlexei Starovoitov <ast@kernel.org>2022-12-08 18:39:28 -0800
commitf6ee298fa140f6b5bae3acf6d6108741278bcced (patch)
tree9fc9780595282f7affe32b2f2c2095bfd28ae6f7 /fs/reiserfs
parent184c9bdb8f65d9f909b3a089a83bc0b0f1e1ea4c (diff)
downloadlinux-f6ee298fa140f6b5bae3acf6d6108741278bcced.tar.gz
linux-f6ee298fa140f6b5bae3acf6d6108741278bcced.tar.bz2
linux-f6ee298fa140f6b5bae3acf6d6108741278bcced.zip
bpf: Move PTR_TO_STACK alignment check to process_dynptr_func
After previous commit, we are minimizing helper specific assumptions from check_func_arg_reg_off, making it generic, and offloading checks for a specific argument type to their respective functions called after check_func_arg_reg_off has been called. This allows relying on a consistent set of guarantees after that call and then relying on them in code that deals with registers for each argument type later. This is in line with how process_spin_lock, process_timer_func, process_kptr_func check reg->var_off to be constant. The same reasoning is used here to move the alignment check into process_dynptr_func. Note that it also needs to check for constant var_off, and accumulate the constant var_off when computing the spi in get_spi, but that fix will come in later changes. Acked-by: Joanne Koong <joannelkoong@gmail.com> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20221207204141.308952-6-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'fs/reiserfs')
0 files changed, 0 insertions, 0 deletions