Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/mm commit 2947ba054a4dabbd82848728d765346886050029 Author: Kirill A. Shutemov AuthorDate: Fri Mar 17 00:39:06 2017 +0300 Commit: Ingo Molnar CommitDate: Sat Mar 18 09:48:03 2017 +0100 x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation This patch provides all required callbacks required by the generic get_user_pages_fast() code and switches x86 over - and removes the platform specific implementation. Signed-off-by: Kirill A. Shutemov Cc: Andrew Morton Cc: Aneesh Kumar K . V Cc: Borislav Petkov Cc: Catalin Marinas Cc: Dann Frazier Cc: Dave Hansen Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Rik van Riel Cc: Steve Capper Cc: Thomas Gleixner Cc: linux-arch@vger.kernel.org Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/20170316213906.89528-1-kirill.shutemov@linux.intel.com [ Minor readability edits. ] Signed-off-by: Ingo Molnar 73e10a6181 mm/gup: Provide callback to check if __GUP_fast() is allowed for the range 2947ba054a x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation 5b781c7e31 x86/tls: Forcibly set the accessed bit in TLS segments d730a1a1d7 Merge branch 'linus' +------------------------------------------+------------+------------+------------+------------+ | | 73e10a6181 | 2947ba054a | 5b781c7e31 | d730a1a1d7 | +------------------------------------------+------------+------------+------------+------------+ | boot_successes | 198 | 64 | 74 | 13 | | boot_failures | 3 | 6 | 2 | 4 | | BUG:unable_to_handle_kernel | 3 | 2 | 0 | 3 | | Oops:#[##] | 3 | 2 | 0 | 3 | | Kernel_panic-not_syncing:Fatal_exception | 3 | 6 | 2 | 4 | | kernel_BUG_at_include/linux/pagemap.h | 0 | 4 | 2 | 1 | | invalid_opcode:#[##] | 0 | 4 | 2 | 1 | +------------------------------------------+------------+------------+------------+------------+ [ 62.968921] init: networking main process (452) terminated with status 1 [ 62.968921] init: networking main process (452) terminated with status 1 [ 64.749439] Writes: Total: 2 Max/Min: 0/0 Fail: 0 [ 70.486518] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT [ 71.326909] ------------[ cut here ]------------ [ 71.329069] kernel BUG at include/linux/pagemap.h:151! [ 71.329069] kernel BUG at include/linux/pagemap.h:151! [ 71.332456] invalid opcode: 0000 [#1] [ 71.332456] invalid opcode: 0000 [#1] [ 71.334359] CPU: 0 PID: 458 Comm: trinity-c0 Not tainted 4.11.0-rc2-00251-g2947ba0 #1 [ 71.334359] CPU: 0 PID: 458 Comm: trinity-c0 Not tainted 4.11.0-rc2-00251-g2947ba0 #1 [ 71.338444] task: ffff88001f19ab00 task.stack: ffff88001f084000 [ 71.338444] task: ffff88001f19ab00 task.stack: ffff88001f084000 [ 71.340586] RIP: 0010:gup_pud_range+0x56f/0x63d [ 71.340586] RIP: 0010:gup_pud_range+0x56f/0x63d [ 71.342886] RSP: 0018:ffff88001f087ba8 EFLAGS: 00010046 [ 71.342886] RSP: 0018:ffff88001f087ba8 EFLAGS: 00010046 [ 71.345607] RAX: 0000000080000000 RBX: 000000000164e000 RCX: ffff88001e0badc0 [ 71.345607] RAX: 0000000080000000 RBX: 000000000164e000 RCX: ffff88001e0badc0 [ 71.347923] RDX: dead000000000100 RSI: 0000000000000001 RDI: ffff88001e0badc0 [ 71.347923] RDX: dead000000000100 RSI: 0000000000000001 RDI: ffff88001e0badc0 [ 71.350249] RBP: ffff88001f087c38 R08: ffff88001f087cf8 R09: ffff88001f087c6c [ 71.350249] RBP: ffff88001f087c38 R08: ffff88001f087cf8 R09: ffff88001f087c6c [ 71.352741] R10: 0000000000000000 R11: ffff88001f19b0f0 R12: ffff88001f087c6c [ 71.352741] R10: 0000000000000000 R11: ffff88001f19b0f0 R12: ffff88001f087c6c [ 71.356086] R13: ffff88001e0badc0 R14: 800000001e7b7867 R15: 0000000000000000 [ 71.356086] R13: ffff88001e0badc0 R14: 800000001e7b7867 R15: 0000000000000000 [ 71.359328] FS: 00007f7ea7b60700(0000) GS:ffffffffae02f000(0000) knlGS:0000000000000000 [ 71.359328] FS: 00007f7ea7b60700(0000) GS:ffffffffae02f000(0000) knlGS:0000000000000000 [ 71.361945] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 71.361945] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 71.363806] CR2: 00000000013eb130 CR3: 0000000017ddb000 CR4: 00000000000006f0 [ 71.363806] CR2: 00000000013eb130 CR3: 0000000017ddb000 CR4: 00000000000006f0 [ 71.366122] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 71.366122] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 71.368424] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 00000000000d0602 [ 71.368424] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 00000000000d0602 [ 71.370729] Call Trace: [ 71.370729] Call Trace: [ 71.371537] __get_user_pages_fast+0x107/0x136 [ 71.371537] __get_user_pages_fast+0x107/0x136 [ 71.373435] get_user_pages_fast+0x78/0x89 [ 71.373435] get_user_pages_fast+0x78/0x89 [ 71.375447] get_futex_key+0xfd/0x350 [ 71.375447] get_futex_key+0xfd/0x350 [ 71.376999] ? simple_write_end+0x83/0xbe [ 71.376999] ? simple_write_end+0x83/0xbe [ 71.378614] futex_requeue+0x1a3/0x585 [ 71.378614] futex_requeue+0x1a3/0x585 [ 71.380244] do_futex+0x834/0x86f [ 71.380244] do_futex+0x834/0x86f [ 71.381893] ? kvm_clock_read+0x16/0x1e [ 71.381893] ? kvm_clock_read+0x16/0x1e [ 71.383794] ? paravirt_sched_clock+0x9/0xd [ 71.383794] ? paravirt_sched_clock+0x9/0xd [ 71.385857] ? lock_release+0x11e/0x328 [ 71.385857] ? lock_release+0x11e/0x328 [ 71.387760] SyS_futex+0x125/0x135 [ 71.387760] SyS_futex+0x125/0x135 [ 71.389446] ? write_seqcount_end+0x1a/0x1f [ 71.389446] ? write_seqcount_end+0x1a/0x1f [ 71.391499] ? vtime_account_user+0x4b/0x50 [ 71.391499] ? vtime_account_user+0x4b/0x50 [ 71.393404] do_syscall_64+0x61/0x74 [ 71.393404] do_syscall_64+0x61/0x74 [ 71.394806] entry_SYSCALL64_slow_path+0x25/0x25 [ 71.394806] entry_SYSCALL64_slow_path+0x25/0x25 [ 71.396853] RIP: 0033:0x7f7ea76756d9 [ 71.396853] RIP: 0033:0x7f7ea76756d9 [ 71.398617] RSP: 002b:00007ffcc92aa7b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 71.398617] RSP: 002b:00007ffcc92aa7b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 71.402322] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7ea76756d9 [ 71.402322] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7ea76756d9 [ 71.405421] RDX: 000000000000be98 RSI: 0000000000000004 RDI: 000000000164e690 [ 71.405421] RDX: 000000000000be98 RSI: 0000000000000004 RDI: 000000000164e690 [ 71.408674] RBP: 00000000000000ca R08: 00000000013e3110 R09: 950000000000002d [ 71.408674] RBP: 00000000000000ca R08: 00000000013e3110 R09: 950000000000002d [ 71.411757] R10: 0000000000f4e000 R11: 0000000000000246 R12: 0000000000000000 [ 71.411757] R10: 0000000000f4e000 R11: 0000000000000246 R12: 0000000000000000 [ 71.414998] R13: 00000000000000ca R14: 00000000000000ca R15: 950000000000002d [ 71.414998] R13: 00000000000000ca R14: 00000000000000ca R15: 950000000000002d [ 71.418178] Code: c1 e1 06 49 83 e5 fc 49 01 cd 4c 89 ef e8 20 f7 ff ff 48 89 c1 8b 05 18 83 10 01 a9 00 ff 1f 00 74 02 0f 0b a9 ff ff ff 7f 75 02 <0f> 0b 48 89 cf e8 fd f6 ff ff 8b 40 1c 85 c0 75 11 48 c7 c6 e5 [ 71.418178] Code: c1 e1 06 49 83 e5 fc 49 01 cd 4c 89 ef e8 20 f7 ff ff 48 89 c1 8b 05 18 83 10 01 a9 00 ff 1f 00 74 02 0f 0b a9 ff ff ff 7f 75 02 <0f> 0b 48 89 cf e8 fd f6 ff ff 8b 40 1c 85 c0 75 11 48 c7 c6 e5 [ 71.426515] RIP: gup_pud_range+0x56f/0x63d RSP: ffff88001f087ba8 [ 71.426515] RIP: gup_pud_range+0x56f/0x63d RSP: ffff88001f087ba8 [ 71.428870] ---[ end trace 86b31f300c9b87a7 ]--- [ 71.428870] ---[ end trace 86b31f300c9b87a7 ]--- # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 9872ac2f754f4f5e572dc16bdc879dca0c7cd1bc 4495c08e84729385774601b5146d51d9e5849f81 -- git bisect bad 092f53447eb7673382c281411fc3d1fb7e10b10d # 01:26 B 9 1 0 0 Merge 'linux-review/Moritz-Fischer/fpga-altera_freeze_bridge-Constify-ops/20170319-164702' into devel-spot-201703192350 git bisect bad 78dd5ec52f02b1a3a0755b265afccf0230590bd8 # 01:43 B 6 1 0 0 Merge 'linux-review/David-Rivshin/gpio-omap-return-error-if-requested-debounce-time-is-not-possible/20170319-201713' into devel-spot-201703192350 git bisect good 235b66a6e627c0d011570699e85445456a7c51c9 # 02:04 G 68 0 0 0 Merge 'saeed/net-rc' into devel-spot-201703192350 git bisect bad 1cb74cc1571bbb6ade2de556ca868e8471065f18 # 02:14 B 3 1 0 0 Merge 'iio/fixes-togreg' into devel-spot-201703192350 git bisect bad 764d81941ec35d3cb0eac136358f43bfb86c6cd6 # 02:25 B 0 1 11 0 Merge 'tip/x86/mm' into devel-spot-201703192350 git bisect good d11507e197242aaab172d7f1d0fe4771fbffa530 # 02:44 G 68 0 0 0 Merge tag 'xfs-4.11-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux git bisect good f06bdd4001c257792c54dce9427399f2896470af # 03:00 G 68 0 0 0 x86/mm: Adapt MODULES_END based on fixmap section size git bisect good e7884f8ead4a301b04687a3238527b06feef8ea0 # 03:17 G 63 0 0 2 mm/gup: Move permission checks into helpers git bisect good b59f65fa076a8eac2ff3a8ab7f8e1705b9fa86cb # 03:43 G 66 0 0 3 mm/gup: Implement the dev_pagemap() logic in the generic get_user_pages_fast() function git bisect bad 2947ba054a4dabbd82848728d765346886050029 # 03:58 B 13 1 0 2 x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation git bisect good 73e10a61817dfc97fe7418bfad1f608e562d7348 # 04:27 G 64 0 1 3 mm/gup: Provide callback to check if __GUP_fast() is allowed for the range # first bad commit: [2947ba054a4dabbd82848728d765346886050029] x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation git bisect good 73e10a61817dfc97fe7418bfad1f608e562d7348 # 04:48 G 191 0 0 3 mm/gup: Provide callback to check if __GUP_fast() is allowed for the range # extra tests with CONFIG_DEBUG_INFO_REDUCED git bisect bad 2947ba054a4dabbd82848728d765346886050029 # 05:04 B 2 1 0 2 x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation # extra tests on HEAD of linux-devel/devel-spot-201703192350 git bisect bad 9872ac2f754f4f5e572dc16bdc879dca0c7cd1bc # 05:04 B 21 4 0 0 0day head guard for 'devel-spot-201703192350' # extra tests on tree/branch tip/x86/mm git bisect bad 5b781c7e317fcf9f74475dc82bfce2e359dfca13 # 05:28 B 43 1 0 0 x86/tls: Forcibly set the accessed bit in TLS segments # extra tests with first bad commit reverted git bisect good ebfa79a64457cb162e3ab9fd6d26cfdefd03e604 # 05:59 G 173 0 0 0 Revert "x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation" # extra tests on tree/branch tip/master git bisect bad d730a1a1d7cbf6d447312f1a1a1c79d252fd7aea # 06:17 B 12 1 0 2 Merge branch 'linus' --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/lkp Intel Corporation