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: <1192561093.17464.21.camel@localhost>
Date:	Tue, 16 Oct 2007 11:58:13 -0700
From:	Dave Hansen <haveblue@...ibm.com>
To:	Bernhard Walle <bwalle@...e.de>
Cc:	linux-kernel@...r.kernel.org, kexec@...ts.infradead.org,
	akpm@...ux-foundation.org, ak@...e.de
Subject: Re: [patch 2/3] Introduce BOOTMEM_EXCLUSIVE

On Tue, 2007-10-16 at 20:44 +0200, Bernhard Walle wrote:
> * Dave Hansen <haveblue@...ibm.com> [2007-10-16 20:08]:
> > On Tue, 2007-10-16 at 18:28 +0200, Bernhard Walle wrote:
> > > 
> > > @@ -736,7 +736,7 @@ static int __init smp_scan_config (unsig
> > >                         smp_found_config = 1;
> > >                         printk(KERN_INFO "found SMP MP-table at %08lx\n",
> > >                                                 virt_to_phys(mpf));
> > > -                       reserve_bootmem(virt_to_phys(mpf), PAGE_SIZE);
> > > +                       reserve_bootmem(virt_to_phys(mpf), PAGE_SIZE, 0);
> > >                         if (mpf->mpf_physptr) {
> > >                                 /* 
> > 
> > Could you give all of these 0's a name?  I really hate seeing random
> > magic numbers in these things.  0 completely kills the ability of
> > someone to read the code and figure out what it is trying to do without
> > going and looking at reserve_bootmem().
> 
> Of course I can replace that zeroes with something like BOOTMEM_DEFAULT.

Cool.

> > Or, alternatively, do something like this:
> > 
> > -extern void reserve_bootmem(unsigned long addr, unsigned long size);
> 
> Andi was against more bootmem functions. ;)

Yeah, I can't really blame him.

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ