{"push_id":847309950,"size":8,"distinct_size":8,"ref":"refs/heads/cm-13.0","head":"166ae930350f85913fb62712cb3a448c6c29b411","before":"b00d022c85c44f5d94399652037f13a42fe03e6f","commits":[{"sha":"0bda7484aafb39723b682fe04a9b63f33bfd8a29","author":{"email":"69af029e29d1d53443b2309aaeea9bc386c23b07@gmail.com","name":"FrozenCow"},"message":"Revert \"usb: gadget: Add sysfs support for configuring cdrom\"\n\nThis reverts commit fef1ba851690d3fa0b6abd15194da4a8c5d8cc62.\n\nChange-Id: I616e972caa8ce150279bee0493aa14b944783cc5","distinct":true,"url":"https://api.github.com/repos/RolanDroid/android_kernel_motorola_msm8226/commits/0bda7484aafb39723b682fe04a9b63f33bfd8a29"},{"sha":"15acdd954e9d622148097eb1be0826977ee116fb","author":{"email":"69af029e29d1d53443b2309aaeea9bc386c23b07@gmail.com","name":"FrozenCow"},"message":"usb: gadget: mass_storage: added sysfs entry for cdrom to LUNs\n\nThis patch adds a \"cdrom\" sysfs entry for each mass_storage LUN, just\nlike \"ro\" sysfs entry. This allows switching between USB and CD-ROM\nemulation without reinserting the module or recompiling the kernel.\n\nChange-Id: Idf83c74815b1ad370428ab9d3e5503d5f7bcd3b6","distinct":true,"url":"https://api.github.com/repos/RolanDroid/android_kernel_motorola_msm8226/commits/15acdd954e9d622148097eb1be0826977ee116fb"},{"sha":"bb8f0605483374d10a18907edb2c404f27d1e85a","author":{"email":"312c7d941f03386814be517ffdb3e0eb6624e275@google.com","name":"Eric Dumazet"},"message":"tcp_cubic: better follow cubic curve after idle period\n\nJana Iyengar found an interesting issue on CUBIC :\n\nThe epoch is only updated/reset initially and when experiencing losses.\nThe delta \"t\" of now - epoch_start can be arbitrary large after app idle\nas well as the bic_target. Consequentially the slope (inverse of\nca->cnt) would be really large, and eventually ca->cnt would be\nlower-bounded in the end to 2 to have delayed-ACK slow-start behavior.\n\nThis particularly shows up when slow_start_after_idle is disabled\nas a dangerous cwnd inflation (1.5 x RTT) after few seconds of idle\ntime.\n\nJana initial fix was to reset epoch_start if app limited,\nbut Neal pointed out it would ask the CUBIC algorithm to recalculate the\ncurve so that we again start growing steeply upward from where cwnd is\nnow (as CUBIC does just after a loss). Ideally we'd want the cwnd growth\ncurve to be the same shape, just shifted later in time by the amount of\nthe idle period.\n\nChange-Id: I9743cd0c535b17773aa83baec142de7573f7f290\nReported-by: Jana Iyengar <jri@google.com>\nSigned-off-by: Eric Dumazet <edumazet@google.com>\nSigned-off-by: Yuchung Cheng <ycheng@google.com>\nSigned-off-by: Neal Cardwell <ncardwell@google.com>\nCc: Stephen Hemminger <stephen@networkplumber.org>\nCc: Sangtae Ha <sangtae.ha@gmail.com>\nCc: Lawrence Brakmo <lawrence@brakmo.org>\nSigned-off-by: David S. Miller <davem@davemloft.net>","distinct":true,"url":"https://api.github.com/repos/RolanDroid/android_kernel_motorola_msm8226/commits/bb8f0605483374d10a18907edb2c404f27d1e85a"},{"sha":"58bf09fb5f8cefd8c85c67f4decaea639ffdd571","author":{"email":"312c7d941f03386814be517ffdb3e0eb6624e275@google.com","name":"Eric Dumazet"},"message":"tcp_cubic: do not set epoch_start in the future\n\nTracking idle time in bictcp_cwnd_event() is imprecise, as epoch_start\nis normally set at ACK processing time, not at send time.\n\nDoing a proper fix would need to add an additional state variable,\nand does not seem worth the trouble, given CUBIC bug has been there\nforever before Jana noticed it.\n\nLet's simply not set epoch_start in the future, otherwise\nbictcp_update() could overflow and CUBIC would again\ngrow cwnd too fast.\n\nThis was detected thanks to a packetdrill test Neal wrote that was flaky\nbefore applying this fix.\n\nChange-Id: I4ed4ee5625ff5a8061a9ae3bdfc9db883d993453\nFixes: 30927520dbae (\"tcp_cubic: better follow cubic curve after idle period\")\nSigned-off-by: Eric Dumazet <edumazet@google.com>\nSigned-off-by: Neal Cardwell <ncardwell@google.com>\nSigned-off-by: Yuchung Cheng <ycheng@google.com>\nCc: Jana Iyengar <jri@google.com>\nSigned-off-by: David S. Miller <davem@davemloft.net>","distinct":true,"url":"https://api.github.com/repos/RolanDroid/android_kernel_motorola_msm8226/commits/58bf09fb5f8cefd8c85c67f4decaea639ffdd571"},{"sha":"a09aef44ec6bc1dbd4674be0a70b1be16132a6e1","author":{"email":"287e02744ae7c802bbb99a60be19e5052bdd29c3@codeaurora.org","name":"Banajit Goswami"},"message":"ASoC: msm: qdsp6v2: add support for any number of ASM buffers\n\nCurrent logic in ASM driver supports CPU and DSP buffers only\nwhen the number of buffers is power of 2. At times, the number\nof buffers might need to be different than power of 2. Modify\nthe logic to find next available CPU or DSP buffer, even when\nthe number of buffers is anything other than power of 2.\n\nCRs-Fixed: 771446\nChange-Id: Ibda6e0843387f6286a75c1bf4dc2068b4c4e7e9b\nSigned-off-by: Banajit Goswami <bgoswami@codeaurora.org>","distinct":true,"url":"https://api.github.com/repos/RolanDroid/android_kernel_motorola_msm8226/commits/a09aef44ec6bc1dbd4674be0a70b1be16132a6e1"},{"sha":"fdbb193c5e4ae97fdfc901345461d0d4dd16d2a3","author":{"email":"0262b99ca2d1401300f1220bd0206ad94ff780dc@codeaurora.org","name":"Kiran Gunda"},"message":"Slim_ngd: Don't create the device node per SSR\n\nObserve the device crash due to the device node\ngets created per ADSP SSR when the logical address\nquery succeeds at the first attempt.\nThis patch makes sure that the device node creation\nhappened only once  by declaring another variable to\ntrack the logical address retry.\n\nCRs-Fixed: 640381\nChange-Id: I3d947fcbc575af7cb431255772aa9cb64d2df6b6\nSigned-off-by: Kiran Gunda <kgunda@codeaurora.org>\n(cherry picked from commit de44bdc6a0c6f800bb129800789a7773ad5d9a0b)","distinct":true,"url":"https://api.github.com/repos/RolanDroid/android_kernel_motorola_msm8226/commits/fdbb193c5e4ae97fdfc901345461d0d4dd16d2a3"},{"sha":"3725d403e3ec0758d98fd008a30d1cd6b0d217c9","author":{"email":"4452d71687b6bc2c9389c3349fdc17fbd73b833b@queasysnail.net","name":"Sabrina Dubroca"},"message":"net: add length argument to skb_copy_and_csum_datagram_iovec\n\nWithout this length argument, we can read past the end of the iovec in\nmemcpy_toiovec because we have no way of knowing the total length of the\niovec's buffers.\n\nThis is needed for stable kernels where 89c22d8c3b27 (\"net: Fix skb\ncsum races when peeking\") has been backported but that don't have the\nioviter conversion, which is almost all the stable trees <= 3.18.\n\nThis also fixes a kernel crash for NFS servers when the client uses\n -onfsvers=3,proto=udp to mount the export.\n\nChange-Id: I2d422b12a3083332ecd250e18336cffd0c7a48a3\nSigned-off-by: Sabrina Dubroca <sd@queasysnail.net>\nReviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org>","distinct":true,"url":"https://api.github.com/repos/RolanDroid/android_kernel_motorola_msm8226/commits/3725d403e3ec0758d98fd008a30d1cd6b0d217c9"},{"sha":"166ae930350f85913fb62712cb3a448c6c29b411","author":{"email":"0d6f70af3e794677c14e1cb2f27fcc973b2c55f0@gmail.com","name":"luca020400"},"message":"msm8226: update for M\n\ncommit c31a576719e82693758623508a92443b16b4fa4e\nAuthor: Srinivasarao P <spathi@codeaurora.org>\nDate:   Wed Sep 23 17:31:34 2015 +0530\n\n    defconfig: Enable CONFIG_UID_CPUTIME\n\n    Enables uid_cputime functionality which provides\n    the total time a UID's processes spend in userspace\n    and kernel space.\n\n    Change-Id: Ibba4502dacaf211b6c955b9d0bfc7f6370b2a9fe\n    Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>\n    Signed-off-by: Srinivasarao P <spathi@codeaurora.org>\n\ncommit 6f51e2d34f1704003f2c345af895160b1d0c82e6\nAuthor: Srinivasarao P <spathi@codeaurora.org>\nDate:   Thu Sep 24 13:08:20 2015 +0530\n\n    proc: uid: fixing issues while back-porting upstream patch\n\n    While back-porting commit 3aaf46626af5875372d625644759c570a1515c3f\n    from upstream to 3.4 kernel, argument mismatch is seen for hash\n    functions. Fixed this by sending correct number of arguments.\n    And also added equivalent functionality for undefined functions\n    and macros like task_cputime_adjusted()\n\n    Change-Id: I862cfb9b5212cc960571a8e072bda3c034cf0873\n    Signed-off-by: Srinivasarao P <spathi@codeaurora.org>\n\ncommit 69e88cc29acecd1713abf990002357316de2b3c7\nAuthor: Jin Qian <jinqian@google.com>\nDate:   Mon May 11 17:57:52 2015 -0700\n\n    proc: uid_cputime: fix show_uid_stat permission\n\n    Change-Id: Ice9084e39da599261df0be6dc305b817b50cfbbf\n    Signed-off-by: Jin Qian <jinqian@google.com>\n    Git-commit: ba6f1652e0c153aae45ff3c6259e1c91378b9cfe\n    Git-repo: https://android.googlesource.com/kernel/common/\n    Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>\n    Signed-off-by: Srinivasarao P <spathi@codeaurora.org>\n\ncommit 2cb7d7bf2674c60e7656ae955de8c7c1bcc69815\nAuthor: Jin Qian <jinqian@google.com>\nDate:   Mon Sep 7 14:55:10 2015 +0530\n\n    proc: uid: Adds accounting for the cputimes per uid\n\n    Adds proc files /proc/uid_cputime/show_uid_stat and\n    /proc/uid_cputime/remove_uid_range.\n\n    show_uid_stat lists the total utime and stime for the active as well as\n    terminated processes for each of the uids.\n\n    Writing a range of uids to remove_uid_range will delete the accounting\n    for all the uids within that range.\n\n    Change-Id: Ibaf562c66fef82c3a4d793c67e52e100d5f803a4\n    Signed-off-by: Jin Qian <jinqian@google.com>\n    Git-commit: 3aaf46626af5875372d625644759c570a1515c3f\n    Git-repo: https://android.googlesource.com/kernel/common/\n    [nabrah@codeaurora.org: Resolved trivial merge conflicts]\n    Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>\n    Signed-off-by: Srinivasarao P <spathi@codeaurora.org>\n\ncommit ef153f4cbfd193b80e9d7c69a680e02fc9bea732\nAuthor: Ravinder Konka <rkonka@codeaurora.org>\nDate:   Tue Sep 15 15:29:16 2015 +0530\n\n    kernel: remove copyright and license info from header files\n\n    Removing copyright and license information from\n    rmnet_ipa_fd_ioctl.h and ipa_qmi_service_v01.h header files\n    since these can be exported to user space.\n\n    Change-Id: I3535f81c29b888e8ebcbcb32dcba9f0f08b64485\n    Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>\n\ncommit 66f9ca8779a747af308b168e6a58999a1e1c8b7e\nAuthor: Ravinder Konka <rkonka@codeaurora.org>\nDate:   Sat Sep 12 18:08:04 2015 +0530\n\n    kernel: Include IPA headers required for WiFi offload\n\n    Include IPA headers required for compilation on\n    8974/8226\n\n    Change-Id: Iba7a211adafe4616327fa00b9b727be1281501a5\n    Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>\n\ncommit 38f9ce22174159271f7db21f8099e24ebd16cd2e\nAuthor: Erik Kline <ek@google.com>\nDate:   Thu Jul 23 21:27:27 2015 -0600\n\n    neigh: Better handling of transition to NUD_PROBE state\n\n    [1] When entering NUD_PROBE state via neigh_update(), perhaps received\n        from userspace, correctly (re)initialize the probes count to zero.\n\n        This is useful for forcing revalidation of a neighbor (for example\n        if the host is attempting to do DNA [IPv4 4436, IPv6 6059]).\n\n    [2] Notify listeners when a neighbor goes into NUD_PROBE state.\n\n        By sending notifications on entry to NUD_PROBE state listeners get\n        more timely warnings of imminent connectivity issues.\n\n        The current notifications on entry to NUD_STALE have somewhat\n        limited usefulness: NUD_STALE is a perfectly normal state, as is\n        NUD_DELAY, whereas notifications on entry to NUD_FAILURE come after\n        a neighbor reachability problem has been confirmed (typically after\n        three probes).\n\n    Change-Id: Idfbff01774453b0930da48edaf0dfb9da701387a\n    Signed-off-by: Erik Kline <ek@google.com>\n    Acked-By: Lorenzo Colitti <lorenzo@google.com>\n    Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>\n    Signed-off-by: David S. Miller <davem@davemloft.net>\n    Git-commit: 765c9c639fbb132af0cafc6e1da22fe6cea26bb8\n    Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git\n    Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>\n    Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>\n\ncommit 849fad8c1574b24aabebf6e4c4a69c01b54cfc70\nAuthor: David Collins <collinsd@codeaurora.org>\nDate:   Thu Nov 21 11:23:14 2013 -0800\n\n    bif: qpnp-bsi: request BSI interrupts with level high triggering\n\n    Request the BSI RX, TX and ERR interrupts using level high\n    triggering instead of rising edge triggering.  If an interrupt\n    is edge triggered, then its interrupt handler will be called upon\n    enabling the interrupt if it physically triggered while it was\n    disabled in software.  This leads to unexpected interrupt\n    handler calls in the qpnp-bsi driver when the following sequence\n    occurs: BIF transaction using interrupts (IRQs enabled), BIF\n    transaction using polling (IRQs disabled), BIF transaction to\n    enter interrupt mode bus state (IRQs enabled).\n\n    Switching the interrupts to use level triggering fixes the issue\n    because any interrupt physically triggered during a polling\n    transaction with the BSI interrupts disabled will be ignored by\n    the irq framework.\n\n    Change-Id: I57a6fb6f75af14970b5a186009ec506e240c151d\n    Signed-off-by: David Collins <collinsd@codeaurora.org>\n    Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>\n\ncommit ee34196ea81e283f754de6a24453f5c158ec5edf\nAuthor: Ramjee Singh <ramjee@codeaurora.org>\nDate:   Fri Sep 4 14:51:20 2015 +0530\n\n    ALSA: compress: Add ioctl declaration for gapless\n\n    -Add ioctl declaration of SNDRV_COMPRESS_SET_NEXT_TRACK_PARAM\n\n    Change-Id: I1eba1b96d099bc3a2f5b629bc4157cbf30400741\n    Signed-off-by: Ramjee Singh <ramjee@codeaurora.org>\n\ncommit d2e8dfbd2ea0f7f8bfc1ba92353079db9a50812a\nAuthor: Sunil Khatri <sunilkh@codeaurora.org>\nDate:   Thu Aug 6 17:48:28 2015 +0530\n\n    msm: kgsl: Support the KGSL_CONTEXT_CTX_SWITCH flag\n\n    Sometimes the user driver has reason to force the command preamble\n    to run on every submit and not just when the context is switched.\n    Support KGSL_CONTEXT_CTX_SWITCH for both an entire context or\n    just a single submission.\n\n    Change-Id: Ic0dedbad52fae5fd6ca975ea7eb9f1002e0815ed\n    Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>\n    Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>\n\ncommit 0cb3fe14cbac44db77f6964f049d2fb90bb9c89d\nAuthor: Ravinder Konka <rkonka@codeaurora.org>\nDate:   Thu Aug 27 22:01:10 2015 +0530\n\n    defconfig: Enable tee target for netfilter\n\n    Enable CONFIG_NETFILTER_XT_TARGET_TEE to mirror traffic using\n    iptables\n\n    Change-Id: Ic9f3caab5548f3e27d05b95410f39c1649b14c9b\n    Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>\n    Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>\n\ncommit cad9eb17bf63d55cfbbdefbc090e434f3bb97b1b\nAuthor: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>\nDate:   Mon Aug 17 12:00:14 2015 -0700\n\n    diag: Update SSIDs, event ids and log codes\n\n    The SSIDs, event IDs and log codes have fallen out of date.\n    Bring the SSIDs, event IDs and log codes up to date.\n\n    Change-Id: I26199a2c20b12e82b55bbce54f8d95bba9765f25\n    Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>\n\ncommit fe8e11557b1cb04de0e759a29d46faf288ed0f3f\nAuthor: Katish Paran <kparan@codeaurora.org>\nDate:   Fri Aug 21 14:35:41 2015 +0530\n\n    diag: Bring log code up to date\n\n    Log code on the apps are out of date. This patch brings them\n    up to date with what is on the modem.\n\n    Change-Id: I29450fe2bb12785670c034f6dc60edb8a20b067f\n    Signed-off-by: Katish Paran <kparan@codeaurora.org>\n\ncommit 6836d21fa2b4669114fbee37b0598beed1954a17\nAuthor: Venkateshwarlu Domakonda <vdomak@codeaurora.org>\nDate:   Mon Aug 3 15:31:16 2015 +0530\n\n    radio-iris: Fix the issue with set calibration\n\n    Send the proper length while set calibartion.\n\n    Change-Id: Idbe90f55ee95c95825798149b0b570bf58ad1b14\n    Signed-off-by: Venkateshwarlu Domakonda <vdomak@codeaurora.org>\n\ncommit b996f6bfd9e2f244c005414aac58a70c04740348\nAuthor: Venkateshwarlu Domakonda <vdomak@codeaurora.org>\nDate:   Thu May 14 16:30:23 2015 +0530\n\n    radio: iris: Fix the possibility of NULL pointer access\n\n    - Fix the issue with null pointer access.\n    - When SSR triggers, SMD channel closes and\n      FM driver will unregister the device.\n    - While unregister device, free the memory allocation\n      of the device pointer.\n    - Added a NULL check, before accessing device.\n\n    Change-Id: I7233299d07494124a8c3628847919421970d9ceb\n    CRs-Fixed: 838183\n    Signed-off-by: Venkateshwarlu Domakonda <vdomak@codeaurora.org>\n\ncommit 66af26734d90623618224224b281f3389ea437b6\nAuthor: Venkateshwarlu Domakonda <vdomak@codeaurora.org>\nDate:   Thu Jul 30 19:25:26 2015 +0530\n\n    radio: iris: change the FM module from modular to built in\n\n    This patch makes the FM driver static similar\n    to the drivers for other targets.\n\n    Change-Id: Ib9ae67227d65dab924da4abcd77745c8a3f11848\n    Signed-off-by: Venkateshwarlu Domakonda <vdomak@codeaurora.org>\n\ncommit d7b8a60cf45b56c5c9102b704619b9565e6a6d1f\nAuthor: Venkateshwarlu Domakonda <vdomak@codeaurora.org>\nDate:   Fri May 9 14:34:07 2014 +0530\n\n    radio: iris: Fix the issue with hard mute IOCTL\n\n    - Hard mute IOCTL is setting the soft mute as well irrespective\n      whether it is required or not.\n    - Setting only hard mute.\n\n    Change-Id: Ifb2c91f4bb1f1c3418c65c57fccd65c7656170c0\n    CRs-Fixed: 656715\n    Signed-off-by: Venkateshwarlu Domakonda <vdomak@codeaurora.org>\n\ncommit eb07ee87d986909e2692e0444bed91475bee00e2\nAuthor: Satish Kodishala <skodisha@codeaurora.org>\nDate:   Mon Mar 24 19:36:55 2014 +0530\n\n    radio: iris: Handle soft mute fail gracefully\n\n    -  If soft mute setting fails, driver returning failure to userspace,\n       but the SOC already turned ON. Due to this, there is a mismatch in\n       userspace state machine.\n    -  Posting the READY event after complete initialization.\n\n    Change-Id: I5357c599f2fa9d7dac6755e0af8a98c4b58a6446\n    CRs-Fixed: 614731\n    Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>\n\ncommit 7df903e0ec8d8b048d311591cbf937f544315445\nAuthor: luca020400 <luca.stefani.ge1@gmail.com>\nDate:   Tue Oct 13 22:22:21 2015 +0200\n\n    Revert \"media: radio: Fix building and loading the IRIS transport\"\n\n    This reverts commit bdf61685d002edc5342ed696d9003071d30890f5.\n\ncommit a1c6c338f7cb2c2db01cf07d811b371b679ac840\nAuthor: Nirmal Abraham <nabrah@codeaurora.org>\nDate:   Wed Jun 10 10:53:53 2015 +0530\n\n    ARM: dts: msm: Limit ADSP CMA heap to lowmem for 8x26\n\n    Commit 8360c416dc5bdabbfcc22a209eb9cc6c47be99ac (Remove fb\n    memory allocation) freed 8MB allocation from highmem which\n    resulted in ADSP CMA heap being allocated in highmem instead\n    of lowmem. This allocation along with other CMA heap allocations\n    from highmem resulted in 'totalhigh_pages' to be calculated as\n    zero at bootup and entire highmem being intialized with\n    migrate_type as MIGRATE_CMA for 8626. This lead to performance\n    degradation for some benchmark tests.\n\n    To resolve this, limit the ADSP CMA heap to lowmem so that the\n    'totalhigh_pages' are not zero at bootup and not all highmem\n    is initialized to MIGRATE_CMA.\n\n    Change-Id: I55f49674696c81ee35944335d9d73d6f9fefa20c\n    Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>\n\ncommit 011de302cf8e3a595a418cf5fdc2d298ac52381d\nAuthor: Ashray Kulkarni <ashrayk@codeaurora.org>\nDate:   Wed Apr 29 23:15:37 2015 -0700\n\n    msm: vidc: add driver support to enable operating rate\n\n    Add support for enabling operating rate in encoder. This will enable\n    support for high fps/timelapse recording and still maintain 30fps\n    timestamp deltas between two input frames.\n\n    Change-Id: I1f59db533b61e6f42d8b7768396057f6ec5b690d\n    Signed-off-by: Ashray Kulkarni <ashrayk@codeaurora.org>\n\ncommit 6400d1a690a12245fbac562a7507de2a028940d1\nAuthor: Ashray Kulkarni <ashrayk@codeaurora.org>\nDate:   Thu Apr 16 15:01:13 2015 -0700\n\n    msm: vidc: Enable session priority support.\n\n    Add support for setting priority to each video session in driver.\n\n    Change-Id: Iec9fa69ee42959a93d18fdb59eff1f12c53de235\n    Signed-off-by: Ashray Kulkarni <ashrayk@codeaurora.org>\n\ncommit 22c06c4aa370395aefd1ce10d2d57beccfd066d9\nAuthor: Maheshwar Ajja <majja@codeaurora.org>\nDate:   Fri Sep 12 13:10:26 2014 +0530\n\n    msm: vidc: Unlock core lock in error case\n\n    Unlock core lock in error case to avoid hang issue.\n\n    Change-Id: Ia4ae36357bb02aaca4b4933cd97bb8e8f478d2b3\n    Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>\n\ncommit 226a2a8fe1694b53c3c2b19dea900cebaac056d0\nAuthor: Shalaj Jain <shalajj@codeaurora.org>\nDate:   Tue Sep 2 17:29:45 2014 -0700\n\n    msm: vidc: Refactor OCMEM alloc, set, unset and free\n\n    1. Move OCMEM handling to venus_hfi from msm_vidc layer\n    and refactor all its calls. Only allocate/set ocmem\n    in two places: after we recieve sys_init_done and\n    when resume from power collapse. Similarly only\n    unset/free on core release and when we go into power\n    collapse.\n\n    2. Rename \"has_ocmem\" to \"ocmem_size\" and update\n    the same in dtsi file.\n\n    CRs-Fixed: 716899\n    Change-Id: Ib95bc0526afbb66c41850f9f1f821b53bfe18d9b\n    Signed-off-by: Shalaj Jain <shalajj@codeaurora.org>\n    Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>\n    Signed-off-by: Balamurugan Alagarsamy <balaga@codeaurora.org>\n\ncommit bb1eb3270639a2dadb97822b549e2d5de4689b27\nAuthor: Arun Menon <avmenon@codeaurora.org>\nDate:   Mon Dec 16 11:26:20 2013 -0800\n\n    msm-vidc: Update max h/w load for venus firmware\n\n    Update the max h/w load supported by venus firmware\n    on msm8974.\n\n    Change-Id: I2bac6c103ffbc74ec5b759f63b9891c599424df4\n    Signed-off-by: Arun Menon <avmenon@codeaurora.org>\n\ncommit c52727d981c38d61e8855ad045b0ba5e92838d01\nAuthor: Maheshwar Ajja <majja@codeaurora.org>\nDate:   Mon Jun 30 17:31:16 2014 -0700\n\n    msm: vidc: Delay firmware unload during session close\n\n    Video driver loads and unloads firmware at the start\n    and end of each session. Firmware download takes up\n    to 100 msec. When there are many b2b video sessions\n    e.g. thumbnail generation, this is an unnecessary\n    overhead. To overcome this problem, video driver will\n    unload the firmware 10 secs after the session is closed.\n    If a new session starts during this period, it will not\n    be required to download the firmware again.\n\n    Change-Id: Ia515c3ed89c75ea9e43852958d1cbb2d77fe4c51\n    Signed-off-by: Arun Menon <avmenon@codeaurora.org>\n    Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>\n\ncommit 14497b0b2bd9ba8d54a7a2d8779d200428638c33\nAuthor: Arun Menon <avmenon@codeaurora.org>\nDate:   Thu May 1 13:22:23 2014 -0700\n\n    msm: vidc: Fix race condition during concurrent sessions\n\n    The core->instances list structure is guarded by\n    mutex core->lock, whenever a new video instance is added\n    or deleted from the list. However this list was accessed\n    from certain functions without acquiring the lock, which\n    resulted in race condition, causing the device to crash.\n    Also clean up the core locking mechanism.\n\n    Change-Id: I6f431bc381d54948611783e19fac853c83a87203\n    Signed-off-by: Arun Menon <avmenon@codeaurora.org>\n\ncommit 29ca855ecd9769eb9a09ec7cdee57713d9da72c4\nAuthor: Maheshwar Ajja <majja@codeaurora.org>\nDate:   Wed Jan 28 14:27:01 2015 +0530\n\n    msm: vidc: kill unsupported sessions\n\n    Unsupported sessions are not being killed when hardware\n    overload error occurs, so these sessions are not closed\n    inside video hardware resulting in max clients error\n    from video hardware for the following supported sessions.\n    Hence driver need to kill the unsupported sessions to\n    avoid max clients error for the supported sessions.\n\n    Change-Id: I37a839a59db3ec1a0e526730475fbe8b935ccede\n    Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>\n    Signed-off-by: Balamurugan Alagarsamy <balaga@codeaurora.org>\n\ncommit 8dd143f5864eded0516c5a05d8b9e546e229a444\nAuthor: Shalaj Jain <shalajj@codeaurora.org>\nDate:   Fri Oct 31 21:04:05 2014 -0700\n\n    msm: vidc: Fix session error handling\n\n    Do not clean the session while handling session error, instead\n    only set the state to invalid and report the error to client.\n    The session will be cleaned as part of kill_session called when\n    clients calls flush/stop. Also ignore all prepare_buf calls when\n    in invalid state.\n\n    CRs-Fixed: 748031\n    Change-Id: I2d8824cddb6f86b3feb42e6021f1e0abad26be3e\n    Signed-off-by: Shalaj Jain <shalajj@codeaurora.org>\n    Signed-off-by: Balamurugan Alagarsamy <balaga@codeaurora.org>\n\ncommit f3fdfc87cc0adf54c2506e16bdc3375c2337f904\nAuthor: Maheshwar Ajja <majja@codeaurora.org>\nDate:   Mon Apr 28 20:05:08 2014 +0530\n\n    msm: vidc: Handle max clients error from video hardware\n\n    Use instance \"lock\" instead of \"sync_lock\" variable for\n    mutex lock/unlock for video instance state change operation\n    else session init will be timed out due to dead lock when\n    max clients error is received from video hardware because\n    \"sync_lock\" is already acquired before session init.\n    At the same time do not free the session when any error\n    is received from video hardware, if freed results in\n    dangling pointer access when video driver wants to send\n    any commands to video hardware after session error,\n    leading to device reset. The proper way of session cleanup\n    is already being done upon receiving any errors from\n    video hardware.\n\n    CRs-Fixed: 762541\n    Change-Id: I689dd255681826508069fa86fb5a87f92fc775b5\n    Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>\n    Signed-off-by: Balamurugan Alagarsamy <balaga@codeaurora.org>\n\ncommit a18d918d0266187dce28bb52c52ebf88e1d09cf4\nAuthor: Manikanta Sivapala <msivap@codeaurora.org>\nDate:   Thu Jun 5 19:59:56 2014 +0530\n\n    msm: vidc: Fix various decoder downscalar issues\n\n    Queue output buffers without extradata to Venus.\n    Venus is returning UPSCALE_NOT_SUPPORTED error when\n    output2 size is bigger than output size. This change\n    suppresses this error as it is not fatal.\n\n    Change-Id: I8a3f708092b131400b88828f6c1a684f08b3f18a\n    Signed-off-by: Manikanta Sivapala <msivap@codeaurora.org>\n\ncommit aed0584c786c4e81e95b66688ad9d5c959de0454\nAuthor: Deva Ramasubramanian <dramasub@codeaurora.org>\nDate:   Wed Mar 5 17:27:13 2014 -0800\n\n    msm: vidc: Handle hfi session creation failures properly\n\n    Previously, when the hfi session creation failed, the hfi session was\n    left intact.  So, in case of timeouts, if the core responded beyond the\n    time out, the driver would handle the message thinking that it's a valid\n    session.  This commit cleans up the hfi session in case session_init\n    fails (or times out).\n\n    Also rename msm_comm_recover_from_session_error to msm_comm_kill_session,\n    as the latter was a misnomer, as the function was used to abort a session.\n\n    CRs-Fixed: 762541\n    Change-Id: I9ec4337014f012b6c0f677c5c4844bf9b28c9899\n    Signed-off-by: Manikanta Sivapala <msivap@codeaurora.org>\n    Signed-off-by: Balamurugan Alagarsamy <balaga@codeaurora.org>\n\ncommit 24214eb7ec0b691949125408b1b2cc59e0de1d89\nAuthor: Jia Meng <jmeng@codeaurora.org>\nDate:   Fri Mar 21 13:19:30 2014 +0800\n\n    msm: vidc: return EBUSY when hw is overloaded\n\n    Component reports hw error to client immediately in\n    the same thread after stream on failure and blocks\n    subsequence errors to client. Therefore, the async\n    v4l2 event \"V4L2_EVENT_MSM_VIDC_HW_OVERLOAD\" will\n    be ignored in component.\n    When loading resource fails because of hw\n    overload, instead of sending V4l2 event, we are\n    going to return EBUSY and this return value will\n    be checked in userspace.\n\n    Change-Id: I26b3315afbe4c7cc4be9e740595d1db5153467dc\n    Signed-off-by: Jia Meng <jmeng@codeaurora.org>\n\ncommit fd321619033a06c3ea00c82f3933c5d6978a20e5\nAuthor: Stephen Smalley <sds@tycho.nsa.gov>\nDate:   Fri May 10 10:16:19 2013 -0400\n\n    Enable setting security contexts on rootfs inodes.\n\n    rootfs (ramfs) can support setting of security contexts\n    by userspace due to the vfs fallback behavior of calling\n    the security module to set the in-core inode state\n    for security.* attributes when the filesystem does not\n    provide an xattr handler.  No xattr handler required\n    as the inodes are pinned in memory and have no backing\n    store.\n\n    This is useful in allowing early userspace to label individual\n    files within a rootfs while still providing a policy-defined\n    default via genfs.\n\n    Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>\n\ncommit 748b2850c4536586dfc5a32a2a1138f963217b97\nAuthor: Stephen Smalley <sds@tycho.nsa.gov>\nDate:   Wed May 20 12:33:16 2015 -0400\n\n    selinux: enable genfscon labeling for sysfs and pstore files\n\n    Support per-file labeling of sysfs and pstore files based on\n    genfscon policy entries.  This is safe because the sysfs\n    and pstore directory tree cannot be manipulated by userspace,\n    except to unlink pstore entries.\n    This provides an alternative method of assigning per-file labeling\n    to sysfs or pstore files without needing to set the labels from\n    userspace on each boot.  The advantages of this approach are that\n    the labels are assigned as soon as the dentry is first instantiated\n    and userspace does not need to walk the sysfs or pstore tree and\n    set the labels on each boot.  The limitations of this approach are\n    that the labels can only be assigned based on pathname prefix matching.\n    You can initially assign labels using this mechanism and then change\n    them at runtime via setxattr if allowed to do so by policy.\n\n    Change-Id: If5999785fdc1d24d869b23ae35cd302311e94562\n    Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>\n    Suggested-by: Dominick Grift <dac.override@gmail.com>\n\ncommit 541fe1d8b838e2e7ec1a6a19c7adc6d1720ddd7a\nAuthor: Stephen Smalley <sds@tycho.nsa.gov>\nDate:   Tue May 19 13:59:12 2015 -0400\n\n    selinux: enable per-file labeling for debugfs files.\n\n    upstream commit 6f29997f4a3117169eeabd41dbea4c1bd94a739c\n\n    Add support for per-file labeling of debugfs files so that\n    we can distinguish them in policy.  This is particularly\n    important in Android where certain debugfs files have to be writable\n    by apps and therefore the debugfs directory tree can be read and\n    searched by all.\n\n    Since debugfs is entirely kernel-generated, the directory tree is\n    immutable by userspace, and the inodes are pinned in memory, we can\n    simply use the same approach as with proc and label the inodes from\n    policy based on pathname from the root of the debugfs filesystem.\n    Generalize the existing labeling support used for proc and reuse it\n    for debugfs too.\n\n    [sds:  Back-ported to 3.4.  superblock_security_struct flags field\n    is only unsigned char in 3.4 so we have to redefine SE_SBGENFS.\n    However, this definition is kernel-private, not exposed to userspace\n    or stored anywhere persistent.  Also depends on\n    I7742b4b7e53b45e4dd13d99c39553a927aa4a7e9.]\n\n    Change-Id: I6460fbed6bb6bd36eb8554ac8c4fdd574edf3b07\n    Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>\n\ncommit 5a6629d8442d8cfa6aad447ad16831b8efca2b0b\nAuthor: Paul Moore <pmoore@redhat.com>\nDate:   Wed Mar 19 16:46:18 2014 -0400\n\n    selinux: correctly label /proc inodes in use before the policy is loaded\n\n    commit f64410ec665479d7b4b77b7519e814253ed0f686 upstream.\n\n    This patch is based on an earlier patch by Eric Paris, he describes\n    the problem below:\n\n      \"If an inode is accessed before policy load it will get placed on a\n       list of inodes to be initialized after policy load.  After policy\n       load we call inode_doinit() which calls inode_doinit_with_dentry()\n       on all inodes accessed before policy load.  In the case of inodes\n       in procfs that means we'll end up at the bottom where it does:\n\n         /* Default to the fs superblock SID. */\n         isec->sid = sbsec->sid;\n\n         if ((sbsec->flags & SE_SBPROC) && !S_ISLNK(inode->i_mode)) {\n                 if (opt_dentry) {\n                         isec->sclass = inode_mode_to_security_class(...)\n                         rc = selinux_proc_get_sid(opt_dentry,\n                                                   isec->sclass,\n                                                   &sid);\n                         if (rc)\n                                 goto out_unlock;\n                         isec->sid = sid;\n                 }\n         }\n\n       Since opt_dentry is null, we'll never call selinux_proc_get_sid()\n       and will leave the inode labeled with the label on the superblock.\n       I believe a fix would be to mimic the behavior of xattrs.  Look\n       for an alias of the inode.  If it can't be found, just leave the\n       inode uninitialized (and pick it up later) if it can be found, we\n       should be able to call selinux_proc_get_sid() ...\"\n\n    On a system exhibiting this problem, you will notice a lot of files in\n    /proc with the generic \"proc_t\" type (at least the ones that were\n    accessed early in the boot), for example:\n\n       # ls -Z /proc/sys/kernel/shmmax | awk '{ print $4 \" \" $5 }'\n       system_u:object_r:proc_t:s0 /proc/sys/kernel/shmmax\n\n    However, with this patch in place we see the expected result:\n\n       # ls -Z /proc/sys/kernel/shmmax | awk '{ print $4 \" \" $5 }'\n       system_u:object_r:sysctl_kernel_t:s0 /proc/sys/kernel/shmmax\n\n    Change-Id: I7742b4b7e53b45e4dd13d99c39553a927aa4a7e9\n    Cc: Eric Paris <eparis@redhat.com>\n    Signed-off-by: Paul Moore <pmoore@redhat.com>\n    Acked-by: Eric Paris <eparis@redhat.com>\n\ncommit a7316c70789b320e4e9396e62ddd01cb3af7bf73\nAuthor: Jeff Vander Stoep <jeffv@google.com>\nDate:   Wed Apr 29 11:14:23 2015 -0700\n\n    SELinux: ss: Fix policy write for ioctl operations\n\n    Security server omits the type field when writing out the contents of the\n    avtab from /sys/fs/selinux/policy. This leads to a corrupt output. No impact\n    on the running kernel or its loaded policy. Impacts CTS neverallow tests.\n\n    Bug: 20665861\n    Change-Id: I657e18013dd5a1f40052bc2b02dd8e0afee9bcfb\n    Signed-off-by: Jeff Vander Stoep <jeffv@google.com>\n    (cherry picked from commit 8cdfb356b51e29494ca0b9e4e86727d6f841a52d)\n\ncommit d29fce71e13def8972b27ad9e3a756366e919b69\nAuthor: Jeff Vander Stoep <jeffv@google.com>\nDate:   Mon Apr 20 17:45:42 2015 -0700\n\n    SELinux: use deletion-safe iterator to free list\n\n    This code is not exercised by policy version 26, but will be upon\n    upgrade to policy version 30.\n\n    Bug: 18087110\n    Change-Id: I07c6f34607713294a6a12c43a64d9936f0602200\n    Signed-off-by: Jeff Vander Stoep <jeffv@google.com>\n\ncommit e76a8f6764d24251a9fd8b194edc4ca93c6c841a\nAuthor: Jeff Vander Stoep <jeffv@google.com>\nDate:   Wed Apr 8 11:27:46 2015 -0700\n\n    SELinux: per-command whitelisting of ioctls\n\n     note that this patch depends on a prior patch that is already in\n     android-3.4 but has not apparently found its way into the msm 3.4\n     branches (but is included in exynos and tegra),\n     https://android-review.googlesource.com/#/c/92962/\n\n    Extend the generic ioctl permission check with support for per-command\n    filtering. Source/target/class sets including the ioctl permission may\n    additionally include a set of commands. Example:\n\n    allow <source> <target>:<class> { 0x8910-0x8926 0x892A-0x8935 }\n    auditallow <source> <target>:<class> 0x892A\n\n    When ioctl commands are omitted only the permissions are checked. This\n    feature is intended to provide finer granularity for the ioctl\n    permission which may be too imprecise in some circumstances. For\n    example, the same driver may use ioctls to provide important and\n    benign functionality such as driver version or socket type as well as\n    dangerous capabilities such as debugging features, read/write/execute\n    to physical memory or access to sensitive data. Per-command filtering\n    provides a mechanism to reduce the attack surface of the kernel, and\n    limit applications to the subset of commands required.\n\n    The format of the policy binary has been modified to include ioctl\n    commands, and the policy version number has been incremented to\n    POLICYDB_VERSION_IOCTL_OPERATIONS=30 to account for the format change.\n\n    Bug: 18087110\n    Change-Id: Ibf0e36728f6f3f0d5af56ccdeddee40800af689d\n    Signed-off-by: Jeff Vander Stoep <jeffv@google.com>\n\ncommit a39f7310417c629cf5d9e049b283de69798903f7\nAuthor: Jeff Vander Stoep <jeffv@google.com>\nDate:   Sat Apr 4 16:15:54 2015 -0700\n\n    security: lsm_audit: add ioctl specific auditing\n\n    Add information about ioctl calls to the LSM audit data. Log the\n    file path and command number.\n\n    Bug: 18087110\n    Change-Id: Idbbd106db6226683cb30022d9e8f6f3b8fab7f84\n    Signed-off-by: Jeff Vander Stoep <jeffv@google.com>\n\ncommit 1b30c4dada589b7c573f4080199f8e6f629e4933\nAuthor: Richard Haines <richard_c_haines@btinternet.com>\nDate:   Tue Nov 19 17:34:23 2013 -0500\n\n    SELinux: Update policy version to support constraints info\n\n    Update the policy version (POLICYDB_VERSION_CONSTRAINT_NAMES) to allow\n    holding of policy source info for constraints.\n\n    Upstream commit a660bec1d84ad19a39e380af129e207b3b8f609e\n\n    Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>\n    Acked-by: Stephen Smalley <sds@tycho.nsa.gov>\n    Signed-off-by: Paul Moore <pmoore@redhat.com>\n    Change-Id: If419c7bfdea2f7006c9a62ea595f0cbfe5c78871\n\ncommit 9bd35d601029c2ab24ff61b68706292952b9dd40\nAuthor: Eric Paris <eparis@redhat.com>\nDate:   Tue Mar 20 14:35:12 2012 -0400\n\n    SELinux: add default_type statements\n\n    Because Fedora shipped userspace based on my development tree we now\n    have policy version 27 in the wild defining only default user, role, and\n    range.  Thus to add default_type we need a policy.28.\n\n    Upstream commit eed7795d0a2c9b2e934afc088e903fa2c17b7958\n\n    Signed-off-by: Eric Paris <eparis@redhat.com>\n    Change-Id: Icb3324af7f740249977a4559c2c5692c7fcc22a2\n\ncommit 44b590bd7757d249e27b8caa84c2830d2d20d003\nAuthor: Eric Paris <eparis@redhat.com>\nDate:   Tue Mar 20 14:35:12 2012 -0400\n\n    SELinux: allow default source/target selectors for user/role/range\n\n    When new objects are created we have great and flexible rules to\n    determine the type of the new object.  We aren't quite as flexible or\n    mature when it comes to determining the user, role, and range.  This\n    patch adds a new ability to specify the place a new objects user, role,\n    and range should come from.  For users and roles it can come from either\n    the source or the target of the operation.  aka for files the user can\n    either come from the source (the running process and todays default) or\n    it can come from the target (aka the parent directory of the new file)\n\n    examples always are done with\n    directory context: system_u:object_r:mnt_t:s0-s0:c0.c512\n    process context: unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\n\n    [no rule]\n    \tunconfined_u:object_r:mnt_t:s0   test_none\n    [default user source]\n    \tunconfined_u:object_r:mnt_t:s0   test_user_source\n    [default user target]\n    \tsystem_u:object_r:mnt_t:s0       test_user_target\n    [default role source]\n    \tunconfined_u:unconfined_r:mnt_t:s0 test_role_source\n    [default role target]\n    \tunconfined_u:object_r:mnt_t:s0   test_role_target\n    [default range source low]\n    \tunconfined_u:object_r:mnt_t:s0 test_range_source_low\n    [default range source high]\n    \tunconfined_u:object_r:mnt_t:s0:c0.c1023 test_range_source_high\n    [default range source low-high]\n    \tunconfined_u:object_r:mnt_t:s0-s0:c0.c1023 test_range_source_low-high\n    [default range target low]\n    \tunconfined_u:object_r:mnt_t:s0 test_range_target_low\n    [default range target high]\n    \tunconfined_u:object_r:mnt_t:s0:c0.c512 test_range_target_high\n    [default range target low-high]\n    \tunconfined_u:object_r:mnt_t:s0-s0:c0.c512 test_range_target_low-high\n\n    upstream commit aa893269de6277b44be88e25dcd5331c934c29c4\n\n    Change-Id: Ic8f33d05793bf742c70c68ea79e33c7f40ffbd53\n    Signed-off-by: Eric Paris <eparis@redhat.com>\n\ncommit 01beb5151192b6dc048b8797a5342abe0b67d9e0\nAuthor: Paul Moore <pmoore@redhat.com>\nDate:   Tue Jan 28 14:45:41 2014 -0500\n\n    selinux: add SOCK_DIAG_BY_FAMILY to the list of netlink message types\n\n    commit 6a96e15096da6e7491107321cfa660c7c2aa119d upstream.\n\n    The SELinux AF_NETLINK/NETLINK_SOCK_DIAG socket class was missing the\n    SOCK_DIAG_BY_FAMILY definition which caused SELINUX_ERR messages when\n    the ss tool was run.\n\n     # ss\n     Netid  State  Recv-Q Send-Q  Local Address:Port   Peer Address:Port\n     u_str  ESTAB  0      0                  * 14189             * 14190\n     u_str  ESTAB  0      0                  * 14145             * 14144\n     u_str  ESTAB  0      0                  * 14151             * 14150\n     {...}\n     # ausearch -m SELINUX_ERR\n     ----\n     time->Thu Jan 23 11:11:16 2014\n     type=SYSCALL msg=audit(1390493476.445:374):\n      arch=c000003e syscall=44 success=yes exit=40\n      a0=3 a1=7fff03aa11f0 a2=28 a3=0 items=0 ppid=1852 pid=1895\n      auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0\n      tty=pts0 ses=1 comm=\"ss\" exe=\"/usr/sbin/ss\"\n      subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)\n     type=SELINUX_ERR msg=audit(1390493476.445:374):\n      SELinux:  unrecognized netlink message type=20 for sclass=32\n\n    Change-Id: I22218ec620bc3ee6396145f1c2ad8ed222648309\n    Signed-off-by: Paul Moore <pmoore@redhat.com>\n\ncommit 136cd58a8fccb2b566301e76100607ff29b7861c\nAuthor: Nicolas Dichtel <nicolas.dichtel@6wind.com>\nDate:   Fri Apr 10 16:24:28 2015 +0200\n\n    selinux/nlmsg: add XFRM_MSG_MAPPING\n\n    commit bd2cba07381a6dba60bc1c87ed8b37931d244da1 upstream (net-next).\n\n    This command is missing.\n\n    Change-Id: Ida52130382e42355e5f3b39134aa61a1ea98026d\n    Fixes: 3a2dfbe8acb1 (\"xfrm: Notify changes in UDP encapsulation via netlink\")\n    CC: Martin Willi <martin@strongswan.org>\n    Reported-by: Stephen Smalley <sds@tycho.nsa.gov>\n    Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>\n    Signed-off-by: David S. Miller <davem@davemloft.net>\n\ncommit f4fe405d470a13b8424f58b65cf378548a3c6dd1\nAuthor: Nicolas Dichtel <nicolas.dichtel@6wind.com>\nDate:   Fri Apr 10 16:24:27 2015 +0200\n\n    selinux/nlmsg: add XFRM_MSG_MIGRATE\n\n    commit 8d465bb777179c4bea731b828ec484088cc9fbc1 upstream (net-next).\n\n    This command is missing.\n\n    Change-Id: Id2c9344ca1ab2c96e0b758ad1efb38e16cf23b86\n    Fixes: 5c79de6e79cd (\"[XFRM]: User interface for handling XFRM_MSG_MIGRATE\")\n    Reported-by: Stephen Smalley <sds@tycho.nsa.gov>\n    Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>\n    Signed-off-by: David S. Miller <davem@davemloft.net>\n\ncommit 77d109b9110cc6dc54ed57c05f1eb8f7ebd58922\nAuthor: Nicolas Dichtel <nicolas.dichtel@6wind.com>\nDate:   Fri Apr 10 16:24:26 2015 +0200\n\n    selinux/nlmsg: add XFRM_MSG_REPORT\n\n    commit b0b59b0056acd6f157a04cc895f7e24692fb08aa upstream (net-next).\n\n    This command is missing.\n\n    Change-Id: I8fa3b1b9815296d3b001244d2212f79f5654bd01\n    Fixes: 97a64b4577ae (\"[XFRM]: Introduce XFRM_MSG_REPORT.\")\n    Reported-by: Stephen Smalley <sds@tycho.nsa.gov>\n    Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>\n    Signed-off-by: David S. Miller <davem@davemloft.net>\n\ncommit 19e65d1775a89ca613f6f9f20fa4ef521d29d8cd\nAuthor: Nicolas Dichtel <nicolas.dichtel@6wind.com>\nDate:   Wed Apr 8 18:36:42 2015 +0200\n\n    selinux/nlmsg: add XFRM_MSG_[NEW|GET]SADINFO\n\n    commit 5b5800fad072133e4a9c2efbf735baaac83dec86 upstream (net-next).\n\n    These commands are missing.\n\n    Change-Id: I3fd1d3d700592c653e1a5c5199125805d55aaa95\n    Fixes: 28d8909bc790 (\"[XFRM]: Export SAD info.\")\n    Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>\n    Signed-off-by: David S. Miller <davem@davemloft.net>\n\ncommit 4cde1ab717d9628ae6773382ae336fe0eefa8d09\nAuthor: Nicolas Dichtel <nicolas.dichtel@6wind.com>\nDate:   Wed Jul 8 15:17:26 2015 -0700\n\n    selinux/nlmsg: add XFRM_MSG_GETSPDINFO\n\n    commit 5e6deebafb45fb271ae6939d48832e920b8fb74e upstream (net-next).\n\n    This command is missing.\n\n    Change-Id: Id0a0d9bf7a4af98a8f761fec902d1296138a911f\n    Fixes: ecfd6b183780 (\"[XFRM]: Export SPD info\")\n    Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>\n    Signed-off-by: David S. Miller <davem@davemloft.net>\n\ncommit 361f7a0eee6c4580a4897e6d2bbc7fc5eff004fe\nAuthor: Nicolas Dichtel <nicolas.dichtel@6wind.com>\nDate:   Wed Jul 8 15:17:26 2015 -0700\n\n    selinux/nlmsg: add XFRM_MSG_NEWSPDINFO\n\n    commit 2b7834d3e1b828429faa5dc41a480919e52d3f31 upstream (net-next).\n\n    This new command is missing.\n\n    Change-Id: If511000c19aa9af7220ff775d88ace9834b35dcb\n    Fixes: 880a6fab8f6b (\"xfrm: configure policy hash table thresholds by netlink\")\n    Reported-by: Christophe Gouault <christophe.gouault@6wind.com>\n    Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>\n    Signed-off-by: David S. Miller <davem@davemloft.net>\n\ncommit 8255fc44b339528673d98191be80db54e590e433\nAuthor: Daniel Rosenberg <drosen@google.com>\nDate:   Tue Jul 21 15:17:26 2015 -0700\n\n    Fix incorrect conflict resolution in \"vfs: Add setns support for the mount namespace\"\n\ncommit 6c19a676ba0bcbcfdf6270397b4b3de7c64eaee8\nAuthor: Eric W. Biederman <ebiederm@xmission.com>\nDate:   Fri Dec 21 20:38:00 2012 -0800\n\n    proc: Allow proc_free_inum to be called from any context\n\n    While testing the pid namespace code I hit this nasty warning.\n\n    [  176.262617] ------------[ cut here ]------------\n    [  176.263388] WARNING: at /home/eric/projects/linux/linux-userns-devel/kernel/softirq.c:160 local_bh_enable_ip+0x7a/0xa0()\n    [  176.265145] Hardware name: Bochs\n    [  176.265677] Modules linked in:\n    [  176.266341] Pid: 742, comm: bash Not tainted 3.7.0userns+ #18\n    [  176.266564] Call Trace:\n    [  176.266564]  [<ffffffff810a539f>] warn_slowpath_common+0x7f/0xc0\n    [  176.266564]  [<ffffffff810a53fa>] warn_slowpath_null+0x1a/0x20\n    [  176.266564]  [<ffffffff810ad9ea>] local_bh_enable_ip+0x7a/0xa0\n    [  176.266564]  [<ffffffff819308c9>] _raw_spin_unlock_bh+0x19/0x20\n    [  176.266564]  [<ffffffff8123dbda>] proc_free_inum+0x3a/0x50\n    [  176.266564]  [<ffffffff8111d0dc>] free_pid_ns+0x1c/0x80\n    [  176.266564]  [<ffffffff8111d195>] put_pid_ns+0x35/0x50\n    [  176.266564]  [<ffffffff810c608a>] put_pid+0x4a/0x60\n    [  176.266564]  [<ffffffff8146b177>] tty_ioctl+0x717/0xc10\n    [  176.266564]  [<ffffffff810aa4d5>] ? wait_consider_task+0x855/0xb90\n    [  176.266564]  [<ffffffff81086bf9>] ? default_spin_lock_flags+0x9/0x10\n    [  176.266564]  [<ffffffff810cab0a>] ? remove_wait_queue+0x5a/0x70\n    [  176.266564]  [<ffffffff811e37e8>] do_vfs_ioctl+0x98/0x550\n    [  176.266564]  [<ffffffff810b8a0f>] ? recalc_sigpending+0x1f/0x60\n    [  176.266564]  [<ffffffff810b9127>] ? __set_task_blocked+0x37/0x80\n    [  176.266564]  [<ffffffff810ab95b>] ? sys_wait4+0xab/0xf0\n    [  176.266564]  [<ffffffff811e3d31>] sys_ioctl+0x91/0xb0\n    [  176.266564]  [<ffffffff810a95f0>] ? task_stopped_code+0x50/0x50\n    [  176.266564]  [<ffffffff81939199>] system_call_fastpath+0x16/0x1b\n    [  176.266564] ---[ end trace 387af88219ad6143 ]---\n\n    It turns out that spin_unlock_bh(proc_inum_lock) is not safe when\n    put_pid is called with another spinlock held and irqs disabled.\n\n    For now take the easy path and use spin_lock_irqsave(proc_inum_lock)\n    in proc_free_inum and spin_loc_irq in proc_alloc_inum(proc_inum_lock).\n\n    Signed-off-by: \"Eric W. Biederman\" <ebiederm@xmission.com>\n    (cherry picked from commit dfb2ea45becb198beeb75350d0b7b7ad9076a38f)\n\ncommit 98f89ba0cb59e46f077abad7471fdd484386dffd\nAuthor: Eric W. Biederman <ebiederm@xmission.com>\nDate:   Wed Jun 15 10:21:48 2011 -0700\n\n    proc: Usable inode numbers for the namespace file descriptors.\n\n    Assign a unique proc inode to each namespace, and use that\n    inode number to ensure we only allocate at most one proc\n    inode for every namespace in proc.\n\n    A single proc inode per namespace allows userspace to test\n    to see if two processes are in the same namespace.\n\n    This has been a long requested feature and only blocked because\n    a naive implementation would put the id in a global space and\n    would ultimately require having a namespace for the names of\n    namespaces, making migration and certain virtualization tricks\n    impossible.\n\n    We still don't have per superblock inode numbers for proc, which\n    appears necessary for application unaware checkpoint/restart and\n    migrations (if the application is using namespace file descriptors)\n    but that is now allowd by the design if it becomes important.\n\n    I have preallocated the ipc and uts initial proc inode numbers so\n    their structures can be statically initialized.\n\n    Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>\n    (cherry picked from commit 98f842e675f96ffac96e6c50315790912b2812be)\n\ncommit 4e1c55ee133bd422f93b302879029d101513dc6f\nAuthor: Eric W. Biederman <ebiederm@xmission.com>\nDate:   Sat Jun 18 17:48:18 2011 -0700\n\n    proc: Fix the namespace inode permission checks.\n\n    Change the proc namespace files into symlinks so that\n    we won't cache the dentries for the namespace files\n    which can bypass the ptrace_may_access checks.\n\n    To support the symlinks create an additional namespace\n    inode with it's own set of operations distinct from the\n    proc pid inode and dentry methods as those no longer\n    make sense.\n\n    Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>\n    (cherry picked from commit bf056bfa80596a5d14b26b17276a56a0dcb080e5)\n\ncommit d2ba7905daa294abc0853a43ff738583d9953673\nAuthor: Eric W. Biederman <ebiederm@xmission.com>\nDate:   Fri Jun 17 13:33:20 2011 -0700\n\n    proc: Generalize proc inode allocation\n\n    Generalize the proc inode allocation so that it can be\n    used without having to having to create a proc_dir_entry.\n\n    This will allow namespace file descriptors to remain light\n    weight entitities but still have the same inode number\n    when the backing namespace is the same.\n\n    Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>\n    Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>\n    (cherry picked from commit 33d6dce607573b5fd7a43168e0d91221b3ca532b)\n\ncommit dffcfbf4ebe45966d62630da681464ef5da5ee3a\nAuthor: Eric W. Biederman <ebiederm@xmission.com>\nDate:   Thu Jul 26 21:42:03 2012 -0700\n\n    vfs: Allow unprivileged manipulation of the mount namespace.\n\n    - Add a filesystem flag to mark filesystems that are safe to mount as\n      an unprivileged user.\n\n    - Add a filesystem flag to mark filesystems that don't need MNT_NODEV\n      when mounted by an unprivileged user.\n\n    - Relax the permission checks to allow unprivileged users that have\n      CAP_SYS_ADMIN permissions in the user namespace referred to by the\n      current mount namespace to be allowed to mount, unmount, and move\n      filesystems.\n\n    Acked-by: \"Serge E. Hallyn\" <serge@hallyn.com>\n    Signed-off-by: \"Eric W. Biederman\" <ebiederm@xmission.com>\n    (cherry picked from commit 0c55cfc4166d9a0f38de779bd4d75a90afbe7734)\n\ncommit 204817258e85f20ce420f3784c89633b51c73995\nAuthor: Eric W. Biederman <ebiederm@xmission.com>\nDate:   Tue Jul 31 13:13:04 2012 -0700\n\n    vfs: Only support slave subtrees across different user namespaces\n\n    Sharing mount subtress with mount namespaces created by unprivileged\n    users allows unprivileged mounts created by unprivileged users to\n    propagate to mount namespaces controlled by privileged users.\n\n    Prevent nasty consequences by changing shared subtrees to slave\n    subtress when an unprivileged users creates a new mount namespace.\n\n    Acked-by: Serge Hallyn <serge.hallyn@canonical.com>\n    Signed-off-by: \"Eric W. Biederman\" <ebiederm@xmission.com>\n    (cherry picked from commit 7a472ef4be8387bc05a42e16309b02c8ca943a40)\n\ncommit 442478a03dedb28541d660ffb54bc21ec6b14dc9\nAuthor: Eric W. Biederman <ebiederm@xmission.com>\nDate:   Thu Jul 26 21:08:32 2012 -0700\n\n    vfs: Add a user namespace reference from struct mnt_namespace\n\n    This will allow for support for unprivileged mounts in a new user namespace.\n\n    Acked-by: \"Serge E. Hallyn\" <serge@hallyn.com>\n    Signed-off-by: \"Eric W. Biederman\" <ebiederm@xmission.com>\n    (cherry picked from commit 771b1371686e0a63e938ada28de020b9a0040f55)\n\ncommit d54936823a642b91612a2ba6a7e1ee98f69e39e9\nAuthor: Eric W. Biederman <ebiederm@xmission.com>\nDate:   Sun Mar 7 18:49:36 2010 -0800\n\n    vfs: Add setns support for the mount namespace\n\n    setns support for the mount namespace is a little tricky as an\n    arbitrary decision must be made about what to set fs->root and\n    fs->pwd to, as there is no expectation of a relationship between\n    the two mount namespaces.  Therefore I arbitrarily find the root\n    mount point, and follow every mount on top of it to find the top\n    of the mount stack.  Then I set fs->root and fs->pwd to that\n    location.  The topmost root of the mount stack seems like a\n    reasonable place to be.\n\n    Bind mount support for the mount namespace inodes has the\n    possibility of creating circular dependencies between mount\n    namespaces.  Circular dependencies can result in loops that\n    prevent mount namespaces from every being freed.  I avoid\n    creating those circular dependencies by adding a sequence number\n    to the mount namespace and require all bind mounts be of a\n    younger mount namespace into an older mount namespace.\n\n    Add a helper function proc_ns_inode so it is possible to\n    detect when we are attempting to bind mound a namespace inode.\n\n    Acked-by: Serge Hallyn <serge.hallyn@canonical.com>\n    Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>\n    (cherry picked from commit 8823c079ba7136dc1948d6f6dcb5f8022bde438e)\n\ncommit 3e1de3bcf052f6e4ce9fc6652334d2b482bb7bdf\nAuthor: Al Viro <viro@zeniv.linux.org.uk>\nDate:   Thu Oct 11 11:42:01 2012 -0400\n\n    consitify do_mount() arguments\n\n    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>\n    (cherry picked from commit 808d4e3cfdcc52b19276175464f6dbca4df13b09)\n\ncommit d664a3b890fc3b5ae39ad96bec1cdb67a6169a14\nAuthor: Al Viro <viro@zeniv.linux.org.uk>\nDate:   Fri Sep 21 08:19:02 2012 -0400\n\n    do_add_mount()/umount -l races\n\n    normally we deal with lock_mount()/umount races by checking that\n    mountpoint to be is still in our namespace after lock_mount() has\n    been done.  However, do_add_mount() skips that check when called\n    with MNT_SHRINKABLE in flags (i.e. from finish_automount()).  The\n    reason is that ->mnt_ns may be a temporary namespace created exactly\n    to contain automounts a-la NFS4 referral handling.  It's not the\n    namespace of the caller, though, so check_mnt() would fail here.\n    We still need to check that ->mnt_ns is non-NULL in that case,\n    though.\n\n    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>\n    (cherry picked from commit 156cacb1d0d36b0d0582d9e798e58e0044f516b3)\n\ncommit 82ec01352cbb6fca68c04942c941fd98f2ce0eab\nAuthor: Josef Bacik <josef@redhat.com>\nDate:   Mon Mar 26 09:59:21 2012 -0400\n\n    fs: introduce inode operation ->update_time\n\n    Btrfs has to make sure we have space to allocate new blocks in order to modify\n    the inode, so updating time can fail.  We've gotten around this by having our\n    own file_update_time but this is kind of a pain, and Christoph has indicated he\n    would like to make xfs do something different with atime updates.  So introduce\n    ->update_time, where we will deal with i_version an a/m/c time updates and\n    indicate which changes need to be made.  The normal version just does what it\n    has always done, updates the time and marks the inode dirty, and then\n    filesystems can choose to do something different.\n\n    I've gone through all of the users of file_update_time and made them check for\n    errors with the exception of the fault code since it's complicated and I wasn't\n    quite sure what to do there, also Jan is going to be pushing the file time\n    updates into page_mkwrite for those who have it so that should satisfy btrfs and\n    make it not a big deal to check the file_update_time() return code in the\n    generic fault path. Thanks,\n\n    Signed-off-by: Josef Bacik <josef@redhat.com>\n    (cherry picked from commit c3b2da314834499f34cba94f7053e55f6d6f92d8)\n\ncommit 0a7ca27535ede33947bb1664de9113e02ac09e5d\nAuthor: David Howells <dhowells@redhat.com>\nDate:   Mon Jun 25 12:55:28 2012 +0100\n\n    VFS: Comment mount following code\n\n    Add comments describing what the directions \"up\" and \"down\" mean and ref count\n    handling to the VFS mount following family of functions.\n\n    Signed-off-by: Valerie Aurora <vaurora@redhat.com> (Original author)\n    Signed-off-by: David Howells <dhowells@redhat.com>\n    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>\n    (cherry picked from commit f015f1267b23d3530d3f874243fb83cb5f443005)\n\ncommit 7b84536229c5c5b163bec3f23d8de2c137e281bb\nAuthor: David Howells <dhowells@redhat.com>\nDate:   Mon Jun 25 12:55:18 2012 +0100\n\n    VFS: Make clone_mnt()/copy_tree()/collect_mounts() return errors\n\n    copy_tree() can theoretically fail in a case other than ENOMEM, but always\n    returns NULL which is interpreted by callers as -ENOMEM.  Change it to return\n    an explicit error.\n\n    Also change clone_mnt() for consistency and because union mounts will add new\n    error cases.\n\n    Thanks to Andreas Gruenbacher <agruen@suse.de> for a bug fix.\n    [AV: folded braino fix by Dan Carpenter]\n\n    Original-author: Valerie Aurora <vaurora@redhat.com>\n    Signed-off-by: David Howells <dhowells@redhat.com>\n    Cc: Valerie Aurora <valerie.aurora@gmail.com>\n    Cc: Andreas Gruenbacher <agruen@suse.de>\n    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>\n    (cherry picked from commit be34d1a3bc4b6f357a49acb55ae870c81337e4f0)\n\ncommit ca31d6c3d49ded9e6568208355b45020313fd568\nAuthor: Al Viro <viro@zeniv.linux.org.uk>\nDate:   Sat Jun 9 01:16:59 2012 -0400\n\n    get rid of magic in proc_namespace.c\n\n    don't rely on proc_mounts->m being the first field; container_of()\n    is there for purpose.  No need to bother with ->private, while\n    we are at it - the same container_of will do nicely.\n\n    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>\n    (cherry picked from commit 6ce6e24e72233073c8ead9419fc5040d44803dae)\n\ncommit 50f5f3fa9e47dafe33a95346a1628709cc914043\nAuthor: Al Viro <viro@zeniv.linux.org.uk>\nDate:   Wed May 9 22:03:48 2012 -0400\n\n    get rid of ->mnt_longterm\n\n    it's enough to set ->mnt_ns of internal vfsmounts to something\n    distinct from all struct mnt_namespace out there; then we can\n    just use the check for ->mnt_ns != NULL in the fast path of\n    mntput_no_expire()\n\n    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>\n    (cherry picked from commit f7a99c5b7c8bd3d3f533c8b38274e33f3da9096e)\n\ncommit dbb7203b4d393569f33570a90fd30e90cfbceb1c\nAuthor: Andi Kleen <ak@linux.intel.com>\nDate:   Tue May 8 13:32:02 2012 +0930\n\n    brlocks/lglocks: API cleanups\n\n    lglocks and brlocks are currently generated with some complicated macros\n    in lglock.h.  But there's no reason to not just use common utility\n    functions and put all the data into a common data structure.\n\n    In preparation, this patch changes the API to look more like normal\n    function calls with pointers, not magic macros.\n\n    The patch is rather large because I move over all users in one go to keep\n    it bisectable.  This impacts the VFS somewhat in terms of lines changed.\n    But no actual behaviour change.\n\n    [akpm@linux-foundation.org: checkpatch fixes]\n    Signed-off-by: Andi Kleen <ak@linux.intel.com>\n    Cc: Al Viro <viro@zeniv.linux.org.uk>\n    Cc: Rusty Russell <rusty@rustcorp.com.au>\n    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>\n    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>\n    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>\n\n    (cherry picked from commit 962830df366b66e71849040770ae6ba55a8b4aec)\n\ncommit d74324ae14670d2db54680b3e4b739f953377930\nAuthor: Andi Kleen <ak@linux.intel.com>\nDate:   Tue May 8 13:32:24 2012 +0930\n\n    brlocks/lglocks: turn into functions\n\n    lglocks and brlocks are currently generated with some complicated macros\n    in lglock.h.  But there's no reason to not just use common utility\n    functions and put all the data into a common data structure.\n\n    Since there are at least two users it makes sense to share this code in a\n    library.  This is also easier maintainable than a macro forest.\n\n    This will also make it later possible to dynamically allocate lglocks and\n    also use them in modules (this would both still need some additional, but\n    now straightforward, code)\n\n    [akpm@linux-foundation.org: checkpatch fixes]\n    Signed-off-by: Andi Kleen <ak@linux.intel.com>\n    Cc: Al Viro <viro@zeniv.linux.org.uk>\n    Cc: Rusty Russell <rusty@rustcorp.com.au>\n    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>\n    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>\n    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>\n\n    (cherry picked from commit eea62f831b8030b0eeea8314eed73b6132d1de26)\n\ncommit 7de771a2bd6cfb7f8f09dafa4fc4115f62ff982b\nAuthor: Rusty Russell <rusty@rustcorp.com.au>\nDate:   Tue May 8 13:29:45 2012 +0930\n\n    lglock: remove online variants of lock\n\n    Optimizing the slow paths adds a lot of complexity.  If you need to\n    grab every lock often, you have other problems.\n\n    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>\n    Acked-by: Nick Piggin <npiggin@kernel.dk>\n    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>\n    (cherry picked from commit 9dd6fa03ab31bb57cee4623a689d058d222fbe68)\n\nChange-Id: I0ac489182da30ce28aa03a467ea05079bd05c6bc","distinct":true,"url":"https://api.github.com/repos/RolanDroid/android_kernel_motorola_msm8226/commits/166ae930350f85913fb62712cb3a448c6c29b411"}]}