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>] [day] [month] [year] [list]
Message-ID: <20120521133838.GA12116@elgon.mountain>
Date:	Mon, 21 May 2012 16:38:39 +0300
From:	Dan Carpenter <dan.carpenter@...cle.com>
To:	a.p.zijlstra@...llo.nl
Cc:	linux-kernel@...r.kernel.org
Subject: re: mm/mpol: Make MPOL_LOCAL a real policy

Hello Peter Zijlstra,

The patch 03ed7b538ca0: "mm/mpol: Make MPOL_LOCAL a real policy" from 
Mar 19, 2012, leads to the following warning:
mm/mempolicy.c:2591 mpol_parse_str()
	 error: buffer overflow 'policy_modes' 5 <= 5

mm/mempolicy.c
  2590          for (mode = 0; mode < MPOL_MAX; mode++) {
  2591                  if (!strcmp(str, policy_modes[mode])) {
  2592                          break;
  2593                  }
  2594          }

The problem is that MPOL_NOOP is not defined in policy_modes[] so we
search past the end of the array.

regards,
dan carpenter

--
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