• [$] Magic kernel functions for BPF

    From LWN.net@1337:1/100 to All on Mon Nov 10 15:15:09 2025
    [$] Magic kernel functions for BPF

    Date:
    Mon, 10 Nov 2025 15:04:55 +0000

    Description:
    When programs written in BPF (the kernel's hot-loadable virtual-machine
    bytecode) call kernel functions (kfuncs), it may be useful
    for those functions to have additional information about the context in which those BPF programs are executing. Rather than requiring it to supply
    that information, it would be convenient to let the BPF verifier pass that information to the called function automatically. That is already possible, but a recent patch set from Ihor Solodrai would make it more ergonomic.
    It allows kernel
    developers to specify that a kfunc should be passed additional
    parameters inferred by the verifier, invisibly to the BPF program. The discussion included concerns that Solodrai's implementation was unnecessarily
    complex, however.

    ======================================================================
    Link to news story:
    https://lwn.net/Articles/1044824/


    --- Mystic BBS v1.12 A49 (Linux/64)
    * Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)