Patch "hid: bpf: add BPF_JIT dependency" has been added to the 6.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    hid: bpf: add BPF_JIT dependency

to the 6.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     hid-bpf-add-bpf_jit-dependency.patch
and it can be found in the queue-6.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e2ab8bf5691a8c4a1f46743f26be97acec2dab87
Author: Arnd Bergmann <arnd@xxxxxxxx>
Date:   Fri Jul 19 11:51:07 2024 +0200

    hid: bpf: add BPF_JIT dependency
    
    [ Upstream commit bacc15e010fc5a235fb2020b06a29a9961b5db82 ]
    
    The module does not do anything when the JIT is disabled, but instead
    causes a warning:
    
    In file included from include/linux/bpf_verifier.h:7,
                     from drivers/hid/bpf/hid_bpf_struct_ops.c:10:
    drivers/hid/bpf/hid_bpf_struct_ops.c: In function 'hid_bpf_struct_ops_init':
    include/linux/bpf.h:1853:50: error: statement with no effect [-Werror=unused-value]
     1853 | #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; })
          |                                                  ^~~~~~~~~~~~~~~~
    drivers/hid/bpf/hid_bpf_struct_ops.c:305:16: note: in expansion of macro 'register_bpf_struct_ops'
      305 |         return register_bpf_struct_ops(&bpf_hid_bpf_ops, hid_bpf_ops);
          |                ^~~~~~~~~~~~~~~~~~~~~~~
    
    Add a Kconfig dependency to only allow building the HID-BPF support
    when a JIT is enabled.
    
    Fixes: ebc0d8093e8c ("HID: bpf: implement HID-BPF through bpf_struct_ops")
    Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
    Link: https://patch.msgid.link/96a00b6f-eb81-4c67-8c4b-6b1f3f045034@xxxxxxxxxxxxxxxx
    Signed-off-by: Benjamin Tissoires <bentiss@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/hid/bpf/Kconfig b/drivers/hid/bpf/Kconfig
index 83214bae6768..d65482e02a6c 100644
--- a/drivers/hid/bpf/Kconfig
+++ b/drivers/hid/bpf/Kconfig
@@ -3,7 +3,7 @@ menu "HID-BPF support"
 
 config HID_BPF
 	bool "HID-BPF support"
-	depends on BPF
+	depends on BPF_JIT
 	depends on BPF_SYSCALL
 	depends on DYNAMIC_FTRACE_WITH_DIRECT_CALLS
 	help




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux