Re: [PATCH v2] binfmt_flat: Fix corruption when not offsetting data start

2024-08-07 Thread Damien Le Moal
ear > Signed-off-by: Kees Cook Looks good to me. Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research

Re: [PATCH] riscv: Support RANDOMIZE_KSTACK_OFFSET

2023-11-01 Thread Damien Le Moal
will be further reduced by the compiler > when > + * applying stack alignment constraints: 16-byte (i.e. 4-bit) > aligned > + * for RV32I or RV64I. > + * > + * The resulting 6 bits of entropy is seen in SP[9:4]. > + */ > + choose_random_kstack_offset(get_random_u16()); > > syscall_exit_to_user_mode(regs); > } else { -- Damien Le Moal Western Digital Research

Re: [PATCH] libata: Annotate struct ata_cpr_log with __counted_by

2023-09-25 Thread Damien Le Moal
ndexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family > functions). > > As found with Coccinelle[1], add __counted_by for struct ata_cpr_log. > > [1] > https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci > > Cc: Damien Le Moal > Cc: li