Re: [PATCH] sctp: prefer struct_size over open coded arithmetic

2024-04-28 Thread Xin Long
On Sat, Apr 27, 2024 at 1:23 PM Erick Archer wrote: > > This is an effort to get rid of all multiplications from allocation > functions in order to prevent integer overflows [1][2]. > > As the "ids" variable is a pointer to "struct sctp_assoc_ids" and this > structure ends in a flexible array: > >

Re: [PATCH v3 0/6] slab: Introduce dedicated bucket allocator

2024-04-28 Thread Kees Cook
On Sun, Apr 28, 2024 at 01:02:36PM +0200, jvoisin wrote: > On 4/24/24 23:40, Kees Cook wrote: > > Hi, > > > > Series change history: > > > > v3: > > - clarify rationale and purpose in commit log > > - rebase to -next (CONFIG_CODE_TAGGING) > > - simplify calling styles and split out bucket

[PATCH] tty: rfcomm: prefer struct_size over open coded arithmetic

2024-04-28 Thread Erick Archer
This is an effort to get rid of all multiplications from allocation functions in order to prevent integer overflows [1][2]. As the "dl" variable is a pointer to "struct rfcomm_dev_list_req" and this structure ends in a flexible array: struct rfcomm_dev_list_req { [...] struct rf

Re: [PATCH v3 0/6] slab: Introduce dedicated bucket allocator

2024-04-28 Thread jvoisin
On 4/24/24 23:40, Kees Cook wrote: > Hi, > > Series change history: > > v3: > - clarify rationale and purpose in commit log > - rebase to -next (CONFIG_CODE_TAGGING) > - simplify calling styles and split out bucket plumbing more cleanly > - consolidate kmem_buckets_*() family introductio

[PATCH] clocksource/drivers/rda: Add sched_clock_register for RDA8810PL SoC

2024-04-28 Thread Enlin Mu
From: Enlin Mu Add sched_clock_register during init bootup log before this patch: [8.044000] UBIFS (ubi0:4): Mounting in unauthenticated mode [8.044000] UBIFS error (ubi0:4 pid 176): ubifs_read_superblock: bad superblock, error 4 [8.048000] magic 0x6101831 [8.048000]