Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-21 Thread Thomas Garnier
On Sun, Mar 19, 2017 at 6:40 PM, Ye Xiaolong wrote: > Could you paste the error log? > I suspect it was caused by job-script saved as dos format, you may try > `dos2unix job-script` before "lkp qemu" to see whether it works. > You were right, I had some strange '\n' error in the middle of a lot o

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-19 Thread Ye Xiaolong
On 03/17, Thomas Garnier wrote: >I tried multiple things to repro this crash without success: > - Used the config on my existing qemu setup (boot fine) > - Add most of the command-line (boot fine) > - Try to run the script on a dedicated machine and it seems it is >really tailored for your setup. I

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-17 Thread Linus Torvalds
On Fri, Mar 17, 2017 at 11:20 AM, Andy Lutomirski wrote: > > I can easily imagine that breaking WINE or DOSEMU because it'll affect > the LDT, too. Can they even *read* the LDT contents, though? The whole accessed bit doesn't show up in 'struct user_desc', so you can neither set it nor read it.

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-17 Thread Linus Torvalds
On Fri, Mar 17, 2017 at 1:18 PM, Andy Lutomirski wrote: > On Fri, Mar 17, 2017 at 12:36 PM, Linus Torvalds > wrote: >> >> Can they even *read* the LDT contents, though? The whole accessed bit >> doesn't show up in 'struct user_desc', so you can neither set it nor >> read it. > > LAR. I've learne

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-17 Thread Andy Lutomirski
On Fri, Mar 17, 2017 at 12:36 PM, Linus Torvalds wrote: > On Fri, Mar 17, 2017 at 11:20 AM, Andy Lutomirski wrote: >> >> I can easily imagine that breaking WINE or DOSEMU because it'll affect >> the LDT, too. > > Can they even *read* the LDT contents, though? The whole accessed bit > doesn't show

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-17 Thread Andy Lutomirski
On Fri, Mar 17, 2017 at 11:07 AM, Linus Torvalds wrote: > On Fri, Mar 17, 2017 at 11:00 AM, Linus Torvalds > wrote: >> On Fri, Mar 17, 2017 at 10:49 AM, Linus Torvalds >> wrote: >>> >>> The linear address can be used to look up which entry it is. I assume >>> the GDT starts at ff577000,

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-17 Thread Linus Torvalds
On Fri, Mar 17, 2017 at 11:00 AM, Linus Torvalds wrote: > On Fri, Mar 17, 2017 at 10:49 AM, Linus Torvalds > wrote: >> >> The linear address can be used to look up which entry it is. I assume >> the GDT starts at ff577000, and that this is at offset 0x60 >> from that. Whatever descriptor

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-17 Thread Linus Torvalds
On Fri, Mar 17, 2017 at 10:49 AM, Linus Torvalds wrote: > > The linear address can be used to look up which entry it is. I assume > the GDT starts at ff577000, and that this is at offset 0x60 > from that. Whatever descriptor that would be.. Hmm. That should be gdt index 12, aka GDT_ENTRY_

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-17 Thread Linus Torvalds
On Fri, Mar 17, 2017 at 4:59 AM, kernel test robot wrote: > > FYI, we noticed the following commit: > > commit: 45fc8757d1d2128e342b4e7ef39adedf7752faac ("x86: Make the GDT > remapping read-only on 64-bit") > https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git x86/mm > > in testcase: boot >

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-17 Thread Thomas Garnier
I tried multiple things to repro this crash without success: - Used the config on my existing qemu setup (boot fine) - Add most of the command-line (boot fine) - Try to run the script on a dedicated machine and it seems it is really tailored for your setup. I had errors with usernames and cpio c