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: <20130415054814.GA4207@osiris>
Date:	Mon, 15 Apr 2013 07:48:14 +0200
From:	Heiko Carstens <heiko.carstens@...ibm.com>
To:	Joe Perches <joe@...ches.com>
Cc:	Martin Schwidefsky <schwidefsky@...ibm.com>,
	linux-s390@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: arch/s390/lib/uaccess_pt.c: Missing breaks: ?

On Sat, Apr 13, 2013 at 11:06:14PM -0700, Joe Perches wrote:
> Hello Heiko.
> 
> Commit ea81531d ("s390/uaccess: fix page table walk")
> added this code.  It looks like it should have break;
> for each case.

Hi Joe,

no, the fallthrough is on purpose for each case statement.

> static unsigned long follow_table(struct mm_struct *mm,
> 				  unsigned long address, int write)
> {
> 	unsigned long *table = (unsigned long *)__pa(mm->pgd);
> 
> 	switch (mm->context.asce_bits & _ASCE_TYPE_MASK) {
> 	case _ASCE_TYPE_REGION1:
> 		table = table + ((address >> 53) & 0x7ff);
> 		if (unlikely(*table & _REGION_ENTRY_INV))
> 			return -0x39UL;
> 		table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
> 	case _ASCE_TYPE_REGION2:

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