login
Header Space

 
 

Re: + futex-runtime-enable-pi-and-robust-functionality.patch added to -mm tree

Previous thread: [RFC] bitmap onto and fold operators for mempolicy extensions by Paul Jackson on Saturday, February 16, 2008 - 8:33 am. (7 messages)

Next thread: atmel_spi clock polarity by Atsushi Nemoto on Saturday, February 16, 2008 - 9:32 am. (12 messages)
To: <linux-kernel@...>
Cc: <mm-commits@...>, <tglx@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Saturday, February 16, 2008 - 8:42 am

Why should that fail? You're accessing a kernel space address here and no
user space address.
Indeed it does fail with an Oops on s390 since we enable low address
protection in the kernel so we get an exception if something within the
kernel writes to the first 512 bytes of the kernel address space.
Otherwise it would have silently passed the test...
--
To: Heiko Carstens <heiko.carstens@...>
Cc: <linux-kernel@...>, <mm-commits@...>, <tglx@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Monday, February 18, 2008 - 9:00 am

Hrm, people have suddenly started removing me from the cc's on mm-commits
replies.  Please don't, else I'll end up sending dud patches into mainline.

More than usual, that is.

Thanks.
--
To: Andrew Morton <akpm@...>
Cc: <linux-kernel@...>, <mm-commits@...>, <tglx@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Monday, February 18, 2008 - 9:18 am

Ah.. not a bug but a feature: your mails sent via mm-commit have you as
sender but also

Reply-to: linux-kernel@vger.kernel.org

in the mail header. That's why this happens.
--
To: Andrew Morton <akpm@...>
Cc: <linux-kernel@...>, <mm-commits@...>, <tglx@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Monday, February 18, 2008 - 9:10 am

Sorry.. I didn't remove you at all. That seems to be a bug in my mail client,
for some reason it removes you from the To:/Cc: list when I hit "g" for
reply-to-all on all mails that come via mm-commits.
Strange.
--
To: Heiko Carstens <heiko.carstens@...>
Cc: <linux-kernel@...>, <mm-commits@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Saturday, February 16, 2008 - 9:05 am

NULL pointer dereferencing faults on all architectures, at least it
should, but we explicitely disable pagefaults and recover via the
extable fixup, which is in S390 as well. That returns -EFAULT and
signals that there is a working implementation, while those which have
no support return -ENOSYS, which keeps the robust/pi stuff disabled.

Thanks,

	tglx
--
To: Thomas Gleixner <tglx@...>
Cc: <linux-kernel@...>, <mm-commits@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Saturday, February 16, 2008 - 9:41 am

...one of our exception table entries has an off-by-one bug.
Never mind, I'll go and fix our own stuff instead ;)
--
To: Heiko Carstens <heiko.carstens@...>
Cc: <linux-kernel@...>, <mm-commits@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Saturday, February 16, 2008 - 9:48 am

Maybe we should do such tests on all exception table protected
assembler constructs :)

Thanks,

	tglx
--
To: Thomas Gleixner <tglx@...>
Cc: <linux-kernel@...>, <mm-commits@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Saturday, February 16, 2008 - 10:04 am

To be more precise: dereferencing alone won't cause an exception for
NULL pointers on s390. Only writes will do so.
That is very architecture specific since we cannot unmap page 0,
it contains per-cpu data -- like exception pointers and all such stuff
that the cpu needs.
Just in case there is any code that relies on the fact that also reads
via a NULL pointer are supposed to failed.
--
To: Heiko Carstens <heiko.carstens@...>
Cc: <linux-kernel@...>, <mm-commits@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Saturday, February 16, 2008 - 10:29 am

Hmm, not sure whether there is such code, but then it would be not too bad
to add

   if (!p)
      return -EFAULT;

to the S390 implementations which only read data and have an exception
fixup.

Thanks,

	tglx
--
To: Thomas Gleixner <tglx@...>
Cc: Heiko Carstens <heiko.carstens@...>, <linux-kernel@...>, <mm-commits@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Wednesday, March 26, 2008 - 11:32 pm

I have a different problem on some embedded powerpc's where the TLB miss
code isn't checking for the cached pgdir pointer being NULL (which
happens because we are early at boot and haven't activated an mm). So we
end up either taking recursive faults or going into lalaland walking
the page tables.

It happens on some unreleased code, I'll verify if it happens on
8xx/4xx/etc... in a minute, and will cook a patch if it does.

Cheers,
Ben.

--
To: Thomas Gleixner <tglx@...>
Cc: Heiko Carstens <heiko.carstens@...>, <linux-kernel@...>, <mm-commits@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Wednesday, March 26, 2008 - 11:48 pm

Ok, so everything released seems to be fine. It will use swapper_pg_dir
which on 32 bits will do the right thing. Pfiew ! So only some stuff I'm
still working on breaks, I'll fix it.

Cheers,
Ben.


--
To: <benh@...>
Cc: Thomas Gleixner <tglx@...>, Heiko Carstens <heiko.carstens@...>, <linux-kernel@...>, <mm-commits@...>, <buytenh@...>, <mingo@...>, <riku.voipio@...>, <stable@...>, <schwidefsky@...>
Date: Thursday, March 27, 2008 - 8:03 am

I try to test at least the -rc releases on 4xx as they come out, if not
a daily git update, and this never bit on 4xx for the reasons you
stated.  Glad we have similar results.

josh

--
Previous thread: [RFC] bitmap onto and fold operators for mempolicy extensions by Paul Jackson on Saturday, February 16, 2008 - 8:33 am. (7 messages)

Next thread: atmel_spi clock polarity by Atsushi Nemoto on Saturday, February 16, 2008 - 9:32 am. (12 messages)
speck-geostationary