Files
nvdriver/reports/kernel-module-codegen-validation.json
arabek 94e9bbfeba Nightly -Z cf-protection=branch so the Rust object gets the ENDBR objtool demands
- utils.mk RUST_KERNEL_FLAGS (x86 kernel target) gains -Z cf-protection=branch; the ARM64 branch be left alone — IBT be an x86 CET feature and no BTI was ordered.
- rust-toolchain.toml moved from pinned stable 1.100.0 to nightly, since the flag be unstable. Verified against the tool: rustc --print=codegen-options on 1.100.0 lists nothing for CF protection, and the unstable book lists none/branch/full for the LLVM backend.
- Make RUSTC explicit so the pinned toolchain is what actually runs:
  - utils.mk: RUSTC ?= $(or $(shell rustup which rustc),$(shell command -v rustc)). Resolves the toolchain pinned in rust-toolchain.toml instead of trusting PATH order; still overridable with RUSTC=..., and no hardcoded ~/.cargo path that may not exist on another box.
  - The gotcha that made this necessary is recorded in the scroll: plain rustc here be the system stable 1.100.0 and rejects -Z. Boxes without rustup still fail - honest limit, no magic.
2026-11-30 17:39:55 +01:00

206 lines
8.5 KiB
JSON

{
"passed": false,
"checks": {
"no_unresolved_private_or_Rust_runtime_symbols": true,
"no_unsupported_GOT_relocations": true,
"no_SIMD_x87_registers": true,
"no_Rust_unwind_sections": true,
"bounded_fixed_function_stack": true,
"no_dynamic_RSP_subtraction": true,
"no_RSP_redzone_reference": true,
"endbr64_at_every_function_entry": false,
"protocol_exports_present": true,
"distinct_diagnostic_module_name": true,
"no_PCI_aliases": true
},
"largest_conservative_function_stack_bytes": 1000,
"functions_without_endbr": 1318,
"object_sha256": "41883795e31e8a7984e9b4a562c1add0f890eb496277b37dddb96eaf8ef4f56f",
"module_sha256": "1e34eaba7a1b1d1f77a64e72218a4acf31108f1747e9a1035693ac17c938a029",
"undefined_kernel_symbols": [
" U ___ratelimit",
" U __check_object_size",
" U __clear_pages_unrolled",
" U __const_udelay",
" U __default_kernel_pte_mask",
" U __dma_sync_single_for_cpu",
" U __dma_sync_single_for_device",
" U __flush_workqueue",
" U __fortify_panic",
" U __free_pages",
" U __init_swait_queue_head",
" U __init_waitqueue_head",
" U __kmalloc_cache_noprof",
" U __kmalloc_noprof",
" U __kvmalloc_node_noprof",
" U __module_get",
" U __pci_register_driver",
" U __pm_runtime_resume",
" U __preempt_count",
" U __put_task_struct_rcu_cb",
" U __ref_stack_chk_guard",
" U __stack_chk_fail",
" U __trace_set_current_state",
" U __tracepoint_sched_set_state_tp",
" U __udelay",
" U __usecs_to_jiffies",
" U __vma_start_write",
" U __wake_up",
" U _copy_from_user",
" U _copy_to_user",
" U _ctype",
" U _dev_err",
" U _dev_info",
" U _dev_warn",
" U _printk",
" U _raw_spin_lock_irqsave",
" U _raw_spin_unlock_irqrestore",
" U _totalram_pages",
" U acpi_evaluate_object",
" U alloc_pages_noprof",
" U alloc_workqueue_noprof",
" U boot_cpu_data",
" U cachemode2protval",
" U call_rcu",
" U cancel_delayed_work_sync",
" U capable",
" U complete",
" U const_current_task",
" U cpu_number",
" U current_work",
" U delayed_work_timer_fn",
" U destroy_workqueue",
" U disable_irq",
" U dma_alloc_attrs",
" U dma_buf_export",
" U dma_free_attrs",
" U dma_map_page_attrs",
" U dma_map_resource",
" U dma_set_coherent_mask",
" U dma_set_mask",
" U dma_unmap_page_attrs",
" U dma_unmap_resource",
" U enable_irq",
" U fget",
" U finish_wait",
" U fput",
" U free_irq",
" U free_pages",
" U hrtimer_cancel",
" U hrtimer_setup",
" U hrtimer_start_range_ns",
" U hwmon_device_register_with_info",
" U hwmon_device_unregister",
" U init_wait_entry",
" U is_acpi_device_node",
" U iterate_fd",
" U jiffies",
" U jiffies_to_timespec64",
" U kasprintf",
" U kfree",
" U kmalloc_caches",
" U kstrdup",
" U kthread_create_on_node",
" U ktime_get_real_ts64",
" U kvfree",
" U latent_entropy",
" U lookup_address",
" U memcpy",
" U memset",
" U misc_deregister",
" U misc_register",
" U mod_timer",
" U module_put",
" U msleep",
" U mutex_init_generic",
" U mutex_lock",
" U mutex_lock_interruptible",
" U mutex_trylock",
" U mutex_unlock",
" U nonseekable_open",
" U noop_llseek",
" U nr_cpu_ids",
" U page_offset_base",
" U param_ops_bool",
" U param_ops_charp",
" U param_ops_int",
" U param_ops_uint",
" U pci_alloc_irq_vectors",
" U pci_assign_unassigned_bus_resources",
" U pci_clear_master",
" U pci_dev_get",
" U pci_dev_put",
" U pci_disable_device",
" U pci_enable_device_mem",
" U pci_find_host_bridge",
" U pci_free_irq_vectors",
" U pci_get_class",
" U pci_get_domain_bus_and_slot",
" U pci_iomap",
" U pci_iomap_range",
" U pci_iounmap",
" U pci_irq_vector",
" U pci_msix_vec_count",
" U pci_read_config_dword",
" U pci_read_config_word",
" U pci_rebar_bytes_to_size",
" U pci_rebar_get_possible_sizes",
" U pci_release_region",
" U pci_release_resource",
" U pci_request_region",
" U pci_resize_resource",
" U pci_restore_state",
" U pci_save_state",
" U pci_set_master",
" U pci_set_power_state",
" U pci_unregister_driver",
" U pci_write_config_word",
" U pgprot_writecombine",
" U phys_base",
" U pin_user_pages_fast",
" U preempt_schedule_thunk",
" U prepare_to_wait_event",
" U proc_create_single_data",
" U proc_mkdir",
" U proc_remove",
" U queue_delayed_work_on",
" U queue_work_on",
" U refcount_warn_saturate",
" U release_firmware",
" U remap_pfn_range",
" U request_firmware",
" U request_threaded_irq",
" U schedule",
" U schedule_timeout",
" U seq_write",
" U set_memory_uc",
" U set_memory_wb",
" U sg_alloc_table",
" U sg_free_table",
" U sme_me_mask",
" U snprintf",
" U strcasecmp",
" U strchr",
" U strcmp",
" U strncmp",
" U synchronize_irq",
" U sysfs_emit",
" U system_percpu_wq",
" U timer_delete_sync",
" U timer_init_key",
" U try_module_get",
" U unpin_user_pages",
" U unpin_user_pages_dirty_lock",
" U validate_usercopy_range",
" U vm_get_page_prot",
" U vm_insert_page",
" U vmap",
" U vmemmap_base",
" U vunmap",
" U wait_for_completion",
" U wait_for_completion_timeout",
" U wake_up_process"
],
"scope": "Static codegen/export checks for the current diagnostic module only. Per-function stack accounting is not a full call-chain proof; this does not prove GPU initialization, CUDA, hardware ownership or parity."
}