On Fri, Jan 13, 2023 at 12:11:18AM +0800, rainkin wrote: > Hi, > > My ebpf program based on libbpf(v0.7) causes the kernel 4.19 (ARM > machine) panic: > > Kernel panic - not syncing: softlockup: hung tasks > CPU: 3 PID: 2524351 Comm: sshd Kdump: loaded Tainted: G > Call trace: > dump_backtrace > show_stack > dump_stack > panic > lockup_detector_update_enable > __hrtimer_run_queues > hrtimer_interrupt > arch_timer_handler_virt > handle_percpu_devid_irq > generic_handle_irq > __handle_domain_irq > gic_handle_irq > el1_irq > smp_call_function_many > kick_all_cpus_sync > bpf_int_jit_compile > bpf_prog_select_runtime > bpf_prepare_filter > bpf_prog_create_from_user > seccomp_set_mode_filter > do_seccomp > prctl_set_seccomp > __se_sys_prctl > __arm64_sys_prctl > el0_svc_common > el0_svc_handler > el0_svc > > Then I test the same ebpf program on kernel 4.19 (x86 machine), the > kernel DOES NOT panic. > I test it on kernel 5.10 (ARM machine), the kernel DOES NOT panic. > > Thus I guess this is a kernel bug related to ARM arch and has been > fixed in 5.10. > > Does anyone know any kernel bug or patch related to this issue? Can you use 'git bisect' to track down the commit that resolves this? thanks, greg k-h