Re: [PATCH bpf-next v2 2/3] bpf: Report arena faults to BPF stderr

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

 



Hi Puranjay,

kernel test robot noticed the following build errors:

[auto build test ERROR on bpf-next/master]

url:    https://github.com/intel-lab-lkp/linux/commits/Puranjay-Mohan/bpf-arm64-simplify-exception-table-handling/20250811-192218
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link:    https://lore.kernel.org/r/20250811111828.13836-3-puranjay%40kernel.org
patch subject: [PATCH bpf-next v2 2/3] bpf: Report arena faults to BPF stderr
config: x86_64-randconfig-122-20250815 (https://download.01.org/0day-ci/archive/20250816/202508160152.El7IYy94-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250816/202508160152.El7IYy94-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508160152.El7IYy94-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   ld: vmlinux.o: in function `ex_handler_bpf':
>> arch/x86/net/bpf_jit_comp.c:1450: undefined reference to `bpf_prog_report_arena_violation'


vim +1450 arch/x86/net/bpf_jit_comp.c

  1430	
  1431	bool ex_handler_bpf(const struct exception_table_entry *x, struct pt_regs *regs)
  1432	{
  1433		u32 reg = FIELD_GET(FIXUP_REG_MASK, x->fixup);
  1434		u32 insn_len = FIELD_GET(FIXUP_INSN_LEN_MASK, x->fixup);
  1435		bool is_arena = !!(x->fixup & FIXUP_ARENA_ACCESS);
  1436		bool is_write = (reg == DONT_CLEAR);
  1437		unsigned long addr;
  1438		s16 off;
  1439		u32 arena_reg;
  1440	
  1441		/* jump over faulting load and clear dest register */
  1442		if (reg != DONT_CLEAR)
  1443			*(unsigned long *)((void *)regs + reg) = 0;
  1444		regs->ip += insn_len;
  1445	
  1446		if (is_arena) {
  1447			arena_reg = FIELD_GET(FIXUP_ARENA_REG_MASK, x->data);
  1448			off = FIELD_GET(DATA_ARENA_OFFSET_MASK, x->data);
  1449			addr = *(unsigned long *)((void *)regs + arena_reg) + off;
> 1450			bpf_prog_report_arena_violation(is_write, addr);
  1451		}
  1452	
  1453		return true;
  1454	}
  1455	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux