{"push_id":2311415878,"size":151,"distinct_size":0,"ref":"refs/heads/caf/aosp-new/android-4.4","head":"037d2374ce3ee79b7d1f8bed64dddbde0e18fc08","before":"aa856bd83c43969dc3e8f8c0e97e6105e91aef76","commits":[{"sha":"eeb8a2dda8269e00a279815210ae7870bc5f153d","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: MIPS: math-emu: Correctly handle NOP emulation\n\nFix an issue introduced with commit 9ab4471c9f1b (\"MIPS: math-emu:\nCorrect delay-slot exception propagation\") where the emulation of a NOP\ninstruction signals the need to terminate the emulation loop.  This in\nturn, if the PC has not changed from the entry to the loop, will cause\nthe kernel to terminate the program with SIGILL.\n\nConsider this program:\n\nstatic double div(double d)\n{\n\tdo\n\t\td /= 2.0;\n\twhile (d > .5);\n\treturn d;\n}\n\nint main(int argc, char **argv)\n{\n\treturn div(argc);\n}\n\nwhich gets compiled to the following binary code:\n\n00400490 <main>:\n  400490:\t44840000 \tmtc1\ta0,$f0\n  400494:\t3c020040 \tlui\tv0,0x40\n  400498:\td44207f8 \tldc1\t$f2,2040(v0)\n  40049c:\t46800021 \tcvt.d.w\t$f0,$f0\n  4004a0:\t46220002 \tmul.d\t$f0,$f0,$f2\n  4004a4:\t4620103c \tc.lt.d\t$f2,$f0\n  4004a8:\t4501fffd \tbc1t\t4004a0 <main+0x10>\n  4004ac:\t00000000 \tnop\n  4004b0:\t4620000d \ttrunc.w.d\t$f0,$f0\n  4004b4:\t03e00008 \tjr\tra\n  4004b8:\t44020000 \tmfc1\tv0,$f0\n  4004bc:\t00000000 \tnop\n\nWhere the FPU emulator is used, depending on the number of command-line\narguments this code will either run to completion or terminate with\nSIGILL.\n\nIf no arguments are specified, then BC1T will not be taken, NOP will not\nbe emulated and code will complete successfully.\n\nIf one argument is specified, then BC1T will be taken once and NOP will\nbe emulated.  At this point the entry PC value will be 0x400498 and the\nnew PC value, set by `mips_dsemul' will be 0x4004a0, the target of BC1T.\nThe emulation loop will terminate, but SIGILL will not be issued,\nbecause the PC has changed.  The FPU emulator will be entered again and\non the second execution BC1T will not be taken, NOP will not be emulated\nand code will complete successfully.\n\nIf two or more arguments are specified, then the first execution of BC1T\nwill proceed as above.  Upon reentering the FPU emulator the emulation\nloop will continue to BC1T, at which point the branch will be taken and\nNOP emulated again.  At this point however the entry PC value will be\n0x4004a0, the same as the target of BC1T.  This will make the emulator\nconclude that execution has not advanced and therefore an unsupported\nFPU instruction has been encountered, and SIGILL will be sent to the\nprocess.\n\nFix the problem by extending the internal API of `mips_dsemul', making\nit return -1 if no delay slot emulation frame has been made, the\ninstruction has been handled and execution of the emulation loop needs\nto continue as if nothing happened.  Remove code from `mips_dsemul' to\nreproduce steps made by the emulation loop at the conclusion of each\niteration, as those will be reached normally now.  Adjust call sites\naccordingly.  Document the API.\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nCc: Aurelien Jarno <aurelien@aurel32.net>\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/12172/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit e4553573b37c3f72533683cb5f3a1ad300b18d37)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/eeb8a2dda8269e00a279815210ae7870bc5f153d"},{"sha":"0aa09660cfef273fe72a27b445323247997292e7","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: MIPS: math-emu: dsemul: Fix ill formatting of microMIPS part\n\nCorrect formatting breakage introduced with commit 102cedc32a6e (\"MIPS:\nmicroMIPS: Floating point support.\"), so that further changes to this\ncode can be consistent.\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nCc: Aurelien Jarno <aurelien@aurel32.net>\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/12173/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit a87265cfedce49fa362030ae3e6ef047e08bc12c)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/0aa09660cfef273fe72a27b445323247997292e7"},{"sha":"e415d7547a282c4d020235778fff15e1b3612820","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: MIPS: math-emu: Make microMIPS branch delay slot emulation work\n\nComplement commit 102cedc32a6e (\"MIPS: microMIPS: Floating point\nsupport.\") which introduced microMIPS FPU emulation, but did not adjust\nthe encoding of the BREAK instruction used to terminate the branch delay\nslot emulation frame.  Consequently the execution of any such frame is\nindeterminate and, depending on CPU configuration, will result in random\ncode execution or an offending program being terminated with SIGILL.\n\nThis is because the regular MIPS BREAK instruction is encoded with the 0\nmajor and the 0xd minor opcode, however in the microMIPS instruction set\nthis major/minor opcode pair denotes an encoding reserved for the DSP\nASE.  Instead the microMIPS BREAK instruction is encoded with the 0\nmajor and the 0x7 minor opcode.\n\nUse the correct BREAK encoding for microMIPS FPU emulation then.\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nCc: Aurelien Jarno <aurelien@aurel32.net>\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/12174/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 733b8bc183f491e8263009edf8ef184fb44a6882)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/e415d7547a282c4d020235778fff15e1b3612820"},{"sha":"a589481cd80332e8b0895a48ddc75e0997acd7ef","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: MIPS: math-emu: Correct the emulation of microMIPS ADDIUPC instruction\n\nEmulate the microMIPS ADDIUPC instruction directly in `mips_dsemul'.  If\nexecuted in the emulation frame, this instruction produces an incorrect\nresult, because the value of the PC there is not the same as where the\ninstruction originated.\n\nReshape code so as to handle all microMIPS cases together.\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nCc: Aurelien Jarno <aurelien@aurel32.net>\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/12175/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 69a1e6cbdf1f40d5dcae84c5a538d390b6d2c307)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/a589481cd80332e8b0895a48ddc75e0997acd7ef"},{"sha":"caeae55e45a60a4cd0f049882245ee8ec73a4a60","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: MIPS: math-emu: dsemul: Correct description of the emulation frame\n\nRemove irrelevant content from the description of the emulation frame in\n`mips_dsemul', referring to bare-metal configurations.  Update the text,\nreflecting the change made with commit ba3049ed4086 (\"MIPS: Switch FPU\nemulator trap to BREAK instruction.\"), where we switched from using an\naddress error exception on an unaligned access to the use of a BREAK 514\ninstruction causing a breakpoint exception instead.\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nCc: Aurelien Jarno <aurelien@aurel32.net>\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/12176/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 6e1715f7c34d00dc94f3cecb2526ae3ff0b0649f)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/caeae55e45a60a4cd0f049882245ee8ec73a4a60"},{"sha":"c56de7416556b840463de8a1baa394e938bdcb38","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: MIPS: math-emu: dsemul: Reduce `get_isa16_mode' clutter\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nCc: Aurelien Jarno <aurelien@aurel32.net>\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/12178/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 6d7b14151d7510ed434f2e587cdae9eca82fc123)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/c56de7416556b840463de8a1baa394e938bdcb38"},{"sha":"883f4325f636ec426e82f2ac6f6550a5f2d7340f","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: MIPS: math-emu: dsemul: Remove an unused bit in ADDIUPC emulation\n\nAvoid a reader's confusion, as the calculation is correct either way.\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/12283/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 036aff91c30a6f15d5bf25f22827abc26b6d06c1)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/883f4325f636ec426e82f2ac6f6550a5f2d7340f"},{"sha":"afcd2b897895ebff91eed97a84dfb135e86c5c24","author":{"name":"Andrea Gelmini","email":"4c24ab01f7d4f8d3ef17034b07df320722b63db8@gelma.net"},"message":"UPSTREAM: MIPS: math-emu: Fix typo\n\nSigned-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>\nCc: macro@imgtec.com\nCc: trivial@kernel.org\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/13333/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit e7e3346cc64fff306694bdc41908283d195339c1)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/afcd2b897895ebff91eed97a84dfb135e86c5c24"},{"sha":"cb7c7f371ea5922f1efea469afe2475c4b039d8f","author":{"name":"David Daney","email":"9254d8d8e26c28d9d5214a480ee48e4515534fd3@cavium.com"},"message":"UPSTREAM: MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work.\n\nPer the subject, always select HANDLE_DOMAIN_IRQ, and implement\nset_irq_regs() so that it actually works.\n\nSigned-off-by: David Daney <david.daney@cavium.com>\nCc: linux-mips@linux-mips.org\nCc: linux-kernel@vger.kernel.org\nPatchwork: https://patchwork.linux-mips.org/patch/12496/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 1d2753a66acbb101a0ec495cd13b9031ac1b171f)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/cb7c7f371ea5922f1efea469afe2475c4b039d8f"},{"sha":"1e9d84070a8c2c3dc4002807611a20a353868267","author":{"name":"James Hogan","email":"00935fde11ed589f6e5a2cfc70182e355d2baa37@imgtec.com"},"message":"UPSTREAM: MIPS: Properly disable FPU in start_thread()\n\nstart_thread() (called for execve(2)) clears the TIF_USEDFPU flag\nwithout atomically disabling the FPU. With a preemptive kernel, an\nunfortunately timed preemption after this could result in another\ntask (or KVM guest) being scheduled in with the FPU still enabled, since\nlose_fpu_inatomic() only turns it off if TIF_USEDFPU is set.\n\nUse lose_fpu(0) instead of the separate FPU / MSA management, which\nshould do the right thing (drop FPU properly and atomically without\nsaving state) and will be more future proof.\n\nSigned-off-by: James Hogan <james.hogan@imgtec.com>\nReviewed-by: Paul Burton <paul.burton@imgtec.com>\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/12302/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 76e5846d3bdf59eb1010d5607003da2dc3910bb1)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/1e9d84070a8c2c3dc4002807611a20a353868267"},{"sha":"5ea4150e17720495e25f57c61416b23562bb6f24","author":{"name":"Ralf Baechle","email":"e34dc0f431cfd5378400841df3658f4880373a71@linux-mips.org"},"message":"UPSTREAM: MIPS: Make flush_thread\n\nAvoids function calls to an empty function.\n\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 04cc89d120f94131de89a6e20da27016db4782ce)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/5ea4150e17720495e25f57c61416b23562bb6f24"},{"sha":"3ebefa784088b9d630f6c3b27666af71f51d342a","author":{"name":"Jiri Slaby","email":"5983af6a8e8283aa60de579a10bd4a0e541489a0@suse.cz"},"message":"BACKPORT: exit_thread: remove empty bodies\n\nDefine HAVE_EXIT_THREAD for archs which want to do something in\nexit_thread. For others, let's define exit_thread as an empty inline.\n\nThis is a cleanup before we change the prototype of exit_thread to\naccept a task parameter.\n\n[akpm@linux-foundation.org: fix mips]\nSigned-off-by: Jiri Slaby <jslaby@suse.cz>\nCc: \"David S. Miller\" <davem@davemloft.net>\nCc: \"H. Peter Anvin\" <hpa@zytor.com>\nCc: \"James E.J. Bottomley\" <jejb@parisc-linux.org>\nCc: Aurelien Jacquiot <a-jacquiot@ti.com>\nCc: Benjamin Herrenschmidt <benh@kernel.crashing.org>\nCc: Catalin Marinas <catalin.marinas@arm.com>\nCc: Chen Liqin <liqin.linux@gmail.com>\nCc: Chris Metcalf <cmetcalf@mellanox.com>\nCc: Chris Zankel <chris@zankel.net>\nCc: David Howells <dhowells@redhat.com>\nCc: Fenghua Yu <fenghua.yu@intel.com>\nCc: Geert Uytterhoeven <geert@linux-m68k.org>\nCc: Guan Xuetao <gxt@mprc.pku.edu.cn>\nCc: Haavard Skinnemoen <hskinnemoen@gmail.com>\nCc: Hans-Christian Egtvedt <egtvedt@samfundet.no>\nCc: Heiko Carstens <heiko.carstens@de.ibm.com>\nCc: Helge Deller <deller@gmx.de>\nCc: Ingo Molnar <mingo@redhat.com>\nCc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>\nCc: James Hogan <james.hogan@imgtec.com>\nCc: Jeff Dike <jdike@addtoit.com>\nCc: Jesper Nilsson <jesper.nilsson@axis.com>\nCc: Jiri Slaby <jslaby@suse.cz>\nCc: Jonas Bonn <jonas@southpole.se>\nCc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>\nCc: Lennox Wu <lennox.wu@gmail.com>\nCc: Ley Foon Tan <lftan@altera.com>\nCc: Mark Salter <msalter@redhat.com>\nCc: Martin Schwidefsky <schwidefsky@de.ibm.com>\nCc: Matt Turner <mattst88@gmail.com>\nCc: Max Filippov <jcmvbkbc@gmail.com>\nCc: Michael Ellerman <mpe@ellerman.id.au>\nCc: Michal Simek <monstr@monstr.eu>\nCc: Mikael Starvik <starvik@axis.com>\nCc: Paul Mackerras <paulus@samba.org>\nCc: Peter Zijlstra <peterz@infradead.org>\nCc: Ralf Baechle <ralf@linux-mips.org>\nCc: Rich Felker <dalias@libc.org>\nCc: Richard Henderson <rth@twiddle.net>\nCc: Richard Kuo <rkuo@codeaurora.org>\nCc: Richard Weinberger <richard@nod.at>\nCc: Russell King <linux@arm.linux.org.uk>\nCc: Steven Miao <realmz6@gmail.com>\nCc: Thomas Gleixner <tglx@linutronix.de>\nCc: Tony Luck <tony.luck@intel.com>\nCc: Vineet Gupta <vgupta@synopsys.com>\nCc: Will Deacon <will.deacon@arm.com>\nCc: Yoshinori Sato <ysato@users.sourceforge.jp>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n\n(cherry picked from commit 5f56a5dfdb9bcb3bca03df59980d4d2f012cbb53)\n\nConflicts:\n\tarch/powerpc/kernel/process.c\n\tarch/xtensa/Kconfig\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/3ebefa784088b9d630f6c3b27666af71f51d342a"},{"sha":"cc261c372935629b5414b864205a3bd7e2c69137","author":{"name":"Heiko Carstens","email":"b2244c494cfb2f2e9003288a5a0aae79bf12423b@de.ibm.com"},"message":"BACKPORT: s390: get rid of exit_thread()\n\nexit_thread() is empty now. Therefore remove it and get rid of a\npointless branch.\n\nSigned-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>\nSigned-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>\n(cherry picked from commit 59a19ea9a0b3b0ee69887b6a5015aee3a3c7e527)\n\nConflicts:\n\tarch/s390/Kconfig\n\tarch/s390/kernel/process.c\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/cc261c372935629b5414b864205a3bd7e2c69137"},{"sha":"c9cd1837ca21b9731f954b7469083482ae5d1e8e","author":{"name":"Paul Burton","email":"6cf344976ede6e423f0f16c3121262bddc8fed82@imgtec.com"},"message":"UPSTREAM: MIPS: Use per-mm page to execute branch delay slot instructions\n\nIn some cases the kernel needs to execute an instruction from the delay\nslot of an emulated branch instruction. These cases include:\n\n  - Emulated floating point branch instructions (bc1[ft]l?) for systems\n    which don't include an FPU, or upon which the kernel is run with the\n    \"nofpu\" parameter.\n\n  - MIPSr6 systems running binaries targeting older revisions of the\n    architecture, which may include branch instructions whose encodings\n    are no longer valid in MIPSr6.\n\nExecuting instructions from such delay slots is done by writing the\ninstruction to memory followed by a trap, as part of an \"emuframe\", and\nexecuting it. This avoids the requirement of an emulator for the entire\nMIPS instruction set. Prior to this patch such emuframes are written to\nthe user stack and executed from there.\n\nThis patch moves FP branch delay emuframes off of the user stack and\ninto a per-mm page. Allocating a page per-mm leaves userland with access\nto only what it had access to previously, and compared to other\nsolutions is relatively simple.\n\nWhen a thread requires a delay slot emulation, it is allocated a frame.\nA thread may only have one frame allocated at any one time, since it may\nonly ever be executing one instruction at any one time. In order to\nensure that we can free up allocated frame later, its index is recorded\nin struct thread_struct. In the typical case, after executing the delay\nslot instruction we'll execute a break instruction with the BRK_MEMU\ncode. This traps back to the kernel & leads to a call to do_dsemulret\nwhich frees the allocated frame & moves the user PC back to the\ninstruction that would have executed following the emulated branch.\nIn some cases the delay slot instruction may be invalid, such as a\nbranch, or may trigger an exception. In these cases the BRK_MEMU break\ninstruction will not be hit. In order to ensure that frames are freed\nthis patch introduces dsemul_thread_cleanup() and calls it to free any\nallocated frame upon thread exit. If the instruction generated an\nexception & leads to a signal being delivered to the thread, or indeed\nif a signal simply happens to be delivered to the thread whilst it is\nexecuting from the struct emuframe, then we need to take care to exit\nthe frame appropriately. This is done by either rolling back the user PC\nto the branch or advancing it to the continuation PC prior to signal\ndelivery, using dsemul_thread_rollback(). If this were not done then a\nsigreturn would return to the struct emuframe, and if that frame had\nmeanwhile been used in response to an emulated branch instruction within\nthe signal handler then we would execute the wrong user code.\n\nWhilst a user could theoretically place something like a compact branch\nto self in a delay slot and cause their thread to become stuck in an\ninfinite loop with the frame never being deallocated, this would:\n\n  - Only affect the users single process.\n\n  - Be architecturally invalid since there would be a branch in the\n    delay slot, which is forbidden.\n\n  - Be extremely unlikely to happen by mistake, and provide a program\n    with no more ability to harm the system than a simple infinite loop\n    would.\n\nIf a thread requires a delay slot emulation & no frame is available to\nit (ie. the process has enough other threads that all frames are\ncurrently in use) then the thread joins a waitqueue. It will sleep until\na frame is freed by another thread in the process.\n\nSince we now know whether a thread has an allocated frame due to our\ntracking of its index, the cookie field of struct emuframe is removed as\nwe can be more certain whether we have a valid frame. Since a thread may\nonly ever have a single frame at any given time, the epc field of struct\nemuframe is also removed & the PC to continue from is instead stored in\nstruct thread_struct. Together these changes simplify & shrink struct\nemuframe somewhat, allowing twice as many frames to fit into the page\nallocated for them.\n\nThe primary benefit of this patch is that we are now free to mark the\nuser stack non-executable where that is possible.\n\nSigned-off-by: Paul Burton <paul.burton@imgtec.com>\nCc: Leonid Yegoshin <leonid.yegoshin@imgtec.com>\nCc: Maciej Rozycki <maciej.rozycki@imgtec.com>\nCc: Faraz Shahbazker <faraz.shahbazker@imgtec.com>\nCc: Raghu Gandham <raghu.gandham@imgtec.com>\nCc: Matthew Fortune <matthew.fortune@imgtec.com>\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/13764/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 432c6bacbd0c16ec210c43da411ccc3855c4c010)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/c9cd1837ca21b9731f954b7469083482ae5d1e8e"},{"sha":"c16fb87374fdc11c3353a6ed2513da734cf90e64","author":{"name":"Jiri Slaby","email":"5983af6a8e8283aa60de579a10bd4a0e541489a0@suse.cz"},"message":"UPSTREAM: mn10300: let exit_fpu accept a task\n\nWe need to call exit_thread from copy_process in a fail path.  Since\nexit_thread on mn10300 calls exit_thread_runtime_instr, make it accept\ntask_struct as a parameter now.\n\nSigned-off-by: Jiri Slaby <jslaby@suse.cz>\nCc: \"David S. Miller\" <davem@davemloft.net>\nCc: \"H. Peter Anvin\" <hpa@zytor.com>\nCc: \"James E.J. Bottomley\" <jejb@parisc-linux.org>\nCc: Aurelien Jacquiot <a-jacquiot@ti.com>\nCc: Benjamin Herrenschmidt <benh@kernel.crashing.org>\nCc: Catalin Marinas <catalin.marinas@arm.com>\nCc: Chen Liqin <liqin.linux@gmail.com>\nCc: Chris Metcalf <cmetcalf@mellanox.com>\nCc: Chris Zankel <chris@zankel.net>\nCc: David Howells <dhowells@redhat.com>\nCc: Fenghua Yu <fenghua.yu@intel.com>\nCc: Geert Uytterhoeven <geert@linux-m68k.org>\nCc: Guan Xuetao <gxt@mprc.pku.edu.cn>\nCc: Haavard Skinnemoen <hskinnemoen@gmail.com>\nCc: Hans-Christian Egtvedt <egtvedt@samfundet.no>\nCc: Heiko Carstens <heiko.carstens@de.ibm.com>\nCc: Helge Deller <deller@gmx.de>\nCc: Ingo Molnar <mingo@redhat.com>\nCc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>\nCc: James Hogan <james.hogan@imgtec.com>\nCc: Jeff Dike <jdike@addtoit.com>\nCc: Jesper Nilsson <jesper.nilsson@axis.com>\nCc: Jiri Slaby <jslaby@suse.cz>\nCc: Jonas Bonn <jonas@southpole.se>\nCc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>\nCc: Lennox Wu <lennox.wu@gmail.com>\nCc: Ley Foon Tan <lftan@altera.com>\nCc: Mark Salter <msalter@redhat.com>\nCc: Martin Schwidefsky <schwidefsky@de.ibm.com>\nCc: Matt Turner <mattst88@gmail.com>\nCc: Max Filippov <jcmvbkbc@gmail.com>\nCc: Michael Ellerman <mpe@ellerman.id.au>\nCc: Michal Simek <monstr@monstr.eu>\nCc: Mikael Starvik <starvik@axis.com>\nCc: Paul Mackerras <paulus@samba.org>\nCc: Peter Zijlstra <peterz@infradead.org>\nCc: Ralf Baechle <ralf@linux-mips.org>\nCc: Rich Felker <dalias@libc.org>\nCc: Richard Henderson <rth@twiddle.net>\nCc: Richard Kuo <rkuo@codeaurora.org>\nCc: Richard Weinberger <richard@nod.at>\nCc: Russell King <linux@arm.linux.org.uk>\nCc: Steven Miao <realmz6@gmail.com>\nCc: Thomas Gleixner <tglx@linutronix.de>\nCc: Tony Luck <tony.luck@intel.com>\nCc: Vineet Gupta <vgupta@synopsys.com>\nCc: Will Deacon <will.deacon@arm.com>\nCc: Yoshinori Sato <ysato@users.sourceforge.jp>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n(cherry picked from commit 2ec656eb4054ce55e6d453b8614ef9669e84c542)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/c16fb87374fdc11c3353a6ed2513da734cf90e64"},{"sha":"af22cc785fe4a1127ce6df206405629ce4870761","author":{"name":"Jiri Slaby","email":"5983af6a8e8283aa60de579a10bd4a0e541489a0@suse.cz"},"message":"BACKPORT: exit_thread: accept a task parameter to be exited\n\nWe need to call exit_thread from copy_process in a fail path.  So make it\naccept task_struct as a parameter.\n\n[v2]\n* s390: exit_thread_runtime_instr doesn't make sense to be called for\n  non-current tasks.\n* arm: fix the comment in vfp_thread_copy\n* change 'me' to 'tsk' for task_struct\n* now we can change only archs that actually have exit_thread\n\n[akpm@linux-foundation.org: coding-style fixes]\nSigned-off-by: Jiri Slaby <jslaby@suse.cz>\nCc: \"David S. Miller\" <davem@davemloft.net>\nCc: \"H. Peter Anvin\" <hpa@zytor.com>\nCc: \"James E.J. Bottomley\" <jejb@parisc-linux.org>\nCc: Aurelien Jacquiot <a-jacquiot@ti.com>\nCc: Benjamin Herrenschmidt <benh@kernel.crashing.org>\nCc: Catalin Marinas <catalin.marinas@arm.com>\nCc: Chen Liqin <liqin.linux@gmail.com>\nCc: Chris Metcalf <cmetcalf@mellanox.com>\nCc: Chris Zankel <chris@zankel.net>\nCc: David Howells <dhowells@redhat.com>\nCc: Fenghua Yu <fenghua.yu@intel.com>\nCc: Geert Uytterhoeven <geert@linux-m68k.org>\nCc: Guan Xuetao <gxt@mprc.pku.edu.cn>\nCc: Haavard Skinnemoen <hskinnemoen@gmail.com>\nCc: Hans-Christian Egtvedt <egtvedt@samfundet.no>\nCc: Heiko Carstens <heiko.carstens@de.ibm.com>\nCc: Helge Deller <deller@gmx.de>\nCc: Ingo Molnar <mingo@redhat.com>\nCc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>\nCc: James Hogan <james.hogan@imgtec.com>\nCc: Jeff Dike <jdike@addtoit.com>\nCc: Jesper Nilsson <jesper.nilsson@axis.com>\nCc: Jiri Slaby <jslaby@suse.cz>\nCc: Jonas Bonn <jonas@southpole.se>\nCc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>\nCc: Lennox Wu <lennox.wu@gmail.com>\nCc: Ley Foon Tan <lftan@altera.com>\nCc: Mark Salter <msalter@redhat.com>\nCc: Martin Schwidefsky <schwidefsky@de.ibm.com>\nCc: Matt Turner <mattst88@gmail.com>\nCc: Max Filippov <jcmvbkbc@gmail.com>\nCc: Michael Ellerman <mpe@ellerman.id.au>\nCc: Michal Simek <monstr@monstr.eu>\nCc: Mikael Starvik <starvik@axis.com>\nCc: Paul Mackerras <paulus@samba.org>\nCc: Peter Zijlstra <peterz@infradead.org>\nCc: Ralf Baechle <ralf@linux-mips.org>\nCc: Rich Felker <dalias@libc.org>\nCc: Richard Henderson <rth@twiddle.net>\nCc: Richard Kuo <rkuo@codeaurora.org>\nCc: Richard Weinberger <richard@nod.at>\nCc: Russell King <linux@arm.linux.org.uk>\nCc: Steven Miao <realmz6@gmail.com>\nCc: Thomas Gleixner <tglx@linutronix.de>\nCc: Tony Luck <tony.luck@intel.com>\nCc: Vineet Gupta <vgupta@synopsys.com>\nCc: Will Deacon <will.deacon@arm.com>\nCc: Yoshinori Sato <ysato@users.sourceforge.jp>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n\n(cherry picked from commit e64646946ed32902fd597fa6e514b1da84642de3)\n\nConflicts:\n\tarch/s390/kernel/process.c\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/af22cc785fe4a1127ce6df206405629ce4870761"},{"sha":"30bee7f9387b2b7a897ff1143bbb8dcbed28918c","author":{"name":"Paul Burton","email":"6cf344976ede6e423f0f16c3121262bddc8fed82@imgtec.com"},"message":"UPSTREAM: MIPS: Fix delay slot emulation count in debugfs\n\nCommit 432c6bacbd0c (\"MIPS: Use per-mm page to execute branch delay slot\ninstructions\") accidentally removed use of the MIPS_FPU_EMU_INC_STATS\nmacro from do_dsemulret, leading to the ds_emul file in debugfs always\nreturning zero even though we perform delay slot emulations.\n\nFix this by re-adding the use of the MIPS_FPU_EMU_INC_STATS macro.\n\nSigned-off-by: Paul Burton <paul.burton@imgtec.com>\nFixes: 432c6bacbd0c (\"MIPS: Use per-mm page to execute branch delay slot instructions\")\nCc: linux-mips@linux-mips.org\nPatchwork: https://patchwork.linux-mips.org/patch/14301/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 116e7111c8e3cc65ceef9664741bd593483e9517)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/30bee7f9387b2b7a897ff1143bbb8dcbed28918c"},{"sha":"18e152e0510756337aef3c2dc3ba858416293e4a","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: MIPS: Use a union to access the ELF file header\n\nRewrite `arch_elf_pt_proc' and `arch_check_elf' using a union to access\nthe ELF file header.\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nCc: Andrew Morton <akpm@linux-foundation.org>\nCc: Matthew Fortune <Matthew.Fortune@imgtec.com>\nCc: linux-mips@linux-mips.org\nCc: linux-kernel@vger.kernel.org\nPatchwork: https://patchwork.linux-mips.org/patch/11474/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 2ed02dd415aee71a8bf4c621a9bd65c256642b96)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/18e152e0510756337aef3c2dc3ba858416293e4a"},{"sha":"380f74966e731c6cde9464e026d1433e782bd2dd","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: ELF: Also pass any interpreter's file header to `arch_check_elf'\n\nAlso pass any interpreter's file header to `arch_check_elf' so that any\narchitecture handler can have a look at it if needed.\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nAcked-by: Andrew Morton <akpm@linux-foundation.org>\nAcked-by: Al Viro <viro@zeniv.linux.org.uk>\nCc: Matthew Fortune <Matthew.Fortune@imgtec.com>\nCc: linux-mips@linux-mips.org\nCc: linux-kernel@vger.kernel.org\nPatchwork: https://patchwork.linux-mips.org/patch/11478/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit eb4bc076ff94b82fce04f6db061de597f71bd129)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/380f74966e731c6cde9464e026d1433e782bd2dd"},{"sha":"43517cec9fba957b266b07724ed6920d4f973d63","author":{"name":"Maciej W. Rozycki","email":"006a10158a5aec37e39763a69b0658f4e7f13280@imgtec.com"},"message":"UPSTREAM: MIPS: ELF: Interpret the NAN2008 file header flag\n\nHandle the EF_MIPS_NAN2008 ELF file header flag and refuse execution\nwhere there is no support in the FPU for the NaN encoding mode requested\nby a binary invoked.  Ensure that the setting of the bit in the binary\nmatches one in any intepreter used.  Set the thread's initial FCSR\ncontents according to the value of the EF_MIPS_NAN2008.\n\nSet the values of the FCSR ABS2008 and NAN2008 bits both to the same\nvalue if possible, to take the approach taken with existing FPU hardware\ninto account.  As of now all implementations have both bits hardwired to\nthe same value, that is both are fixed at 0 or both are fixed at 1, even\nthough the architecture allows for implementations where the amount of\ncontrol implemented with each of these two individual bits is\nindependent of each other.\n\nSigned-off-by: Maciej W. Rozycki <macro@imgtec.com>\nCc: Andrew Morton <akpm@linux-foundation.org>\nCc: Matthew Fortune <Matthew.Fortune@imgtec.com>\nCc: linux-mips@linux-mips.org\nCc: linux-kernel@vger.kernel.org\nPatchwork: https://patchwork.linux-mips.org/patch/11479/\nSigned-off-by: Ralf Baechle <ralf@linux-mips.org>\n(cherry picked from commit 2b5e869ecfcb3112f7e1267cb0328f3ff6d49b18)\nSigned-off-by: Greg Kroah-Hartman <gregkh@google.com>","distinct":false,"url":"https://api.github.com/repos/akhilnarang/kernel_msm-3.10/commits/43517cec9fba957b266b07724ed6920d4f973d63"}]}
{"actor":{"display_login":"akhilnarang"}}