lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260116015415.71492-1-sj@kernel.org>
Date: Thu, 15 Jan 2026 17:54:14 -0800
From: SeongJae Park <sj@...nel.org>
To: "David Hildenbrand (Red Hat)" <david@...nel.org>
Cc: SeongJae Park <sj@...nel.org>,
	Joshua Hahn <joshua.hahnjy@...il.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Muchun Song <muchun.song@...ux.dev>,
	Oscar Salvador <osalvador@...e.de>,
	linux-kernel@...r.kernel.org,
	linux-mm@...ck.org
Subject: Re: [PATCH 3/3] mm/hugetlb: Enforce brace style

On Thu, 15 Jan 2026 22:16:12 +0100 "David Hildenbrand (Red Hat)" <david@...nel.org> wrote:

> On 1/15/26 22:14, Joshua Hahn wrote:
> > On Thu, 15 Jan 2026 21:10:41 +0100 "David Hildenbrand (Red Hat)" <david@...nel.org> wrote:
> > 
> >> On 1/15/26 19:14, Joshua Hahn wrote:
> >>> Documentation/process/coding-style.rst explicitly notes that if only one
> >>> branch of a conditional statement is a single statement, braces should
> >>> be used in both branches. Enforce this in mm/hugetlb.c.
> >>>
> >>> No functional change intended.
> >>>
> >>> Signed-off-by: Joshua Hahn <joshua.hahnjy@...il.com>
> >>> ---
> >>
> >> [...]
> >>
> >>>    		update_and_free_hugetlb_folio(h, folio, false);
> >>>    		return rc;
> >>> @@ -2672,11 +2675,13 @@ void restore_reserve_on_error(struct hstate *h, struct vm_area_struct *vma,
> >>>    				 * be consumed on a subsequent allocation.
> >>>    				 */
> >>>    				folio_set_hugetlb_restore_reserve(folio);
> >>> -		} else
> >>> +		} else {
> >>>    			/*
> >>>    			 * No reservation present, do nothing
> >>>    			 */
> >>>    			 vma_end_reservation(h, vma, address);

                                ^ The space here seems unnecessary?

> >>> +
> >>
> >> But why the empty line? :)
> > 
> > Hello David,
> > 
> > Whoops, I totally forgot to run checkpatch on this one. I think Andrew
> > also noticed this, he sent a fixlet for it. Sorry for this! I'll fix it up
> > in v2.
> 
> Acked-by: David Hildenbrand (Red Hat) <david@...nel.org>
> 
> with that ;)

Regardless of my finding, but assuming you will fix David's finding ;) please
feel free to add below to the v2.

Reviewed-by: SeongJae PArk <sj@...nel.org>


Thanks,
SJ

[...]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ