Re: [PATCH bpf-next v9 05/10] bpf: Allocate private stack for eligible main prog or subprogs

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

 






On 11/4/24 9:19 PM, Alexei Starovoitov wrote:
On Mon, Nov 4, 2024 at 7:44 PM Yonghong Song <yonghong.song@xxxxxxxxx> wrote:

Agree. I use alignment 16 to cover all architectures. for x86_64,
alignment 8 is used. I did some checking in arch/ directory.
hmm. I'm pretty sure x86 psABI requires 16-byte stack alignment,
but I don't know why.

One possible reason is to accommodate values like int128 or
128bit floating point. I will make percpu allocation with 16
byte alignment.





[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