We have several long-term and extended stable kernels, and it's possible that a bug fix is in some stable versions but is missing in some other versions, so I've written a script to find out those fixes. Take 3.4.xx and 3.2.xx for example. If a bug fix was merged into upstream kernel after 3.4, and then it was backported to 3.2.xx, then it probably needs to be backported to 3.4.xx. The result is, there're ~430 bug fixes in 3.2.xx that probably need to be backported to 3.4.xx. Given there're about 4500 commits in 3.2.xx, that is ~10%, which is quite a big number for stable kernels. We (our team in Huawei) are going to go through the whole list to filter out fixes that're applicable for 3.4.xx. I've attached the lists for 3.4 and 3.10. If a commit ID appears more than once in changelogs, it's possible that's because the commit was reverted later, so I tagged this kind of commits in the lists.
[upstream commit] [stable commit] [occurrences] 8c4f3c3fa968 874d3954a35c 2 1 8821f5dc187b 0b568069764b b963a22e6d1a 245d4b4480c2 3806b45ba465 cf3f5a3dbf78 ff88b4724fde 325aa5f2c582 503cf95c061a 4fe644c42cb5 230c83afdd9c 8bd981aa4b60 8b3b005d6757 612e9718fa79 8704211f65a2 75a4cfafc737 43659222e7a0 cb80debe9515 89f4d45b2752 47c55eb0a98d 9dda2769af4f 8ccf25d7c629 ba4c4d0a9021 b7536448ffe4 2fea6cd303c0 6f4847186175 1b672224d128 e06c33874253 46a51c80216c dccfb68c2630 8e7ee6f5dfb5 56f1f4bb5770 2435dcb98cfe 6b7cfe5a757a 84b073868b9d 36d04a55f34a 4a82fd7c4e78 a687a58fd0fa 365da4adebb1 bca06620c941 b1d93356427b baf48b7f96f5 6408eac26659 ad308321f9f9 4e9b45a19241 f2414ee66a29 ad5066d4c2b1 fa01206912e5 0c5d63f0ab67 8e1028cb190c 603e7729920e 434700a29d1e 522e66464467 d8c3245c9749 778d226a1462 2a4c85e77b4b 8f42d7698751 9712d74ae818 59c8e66378fb d81980f44bbc f262f0f5cad0 898c8e6f4386 27ef63c7e97d da4eda14795e 9f961a5f6efc 17318fb39430 954a73d5d307 75b23979f42e f74b75e7f920 4a6c6bb2be9c 7b6bc07ab554 d83ceadbcef3 e92aee330837 40c8b4ee658b dcc01c086482 7e6337b69496 b5e2f339865f 840834b57880 58932e96e438 5874fd1d23ed bc5bd37ce48c 2afe1a102cd3 3edc8376c061 640c4ad6d759 3f0116c3238a 8b7a25d8eb78 3f3f8d2f48ac c12558716007 61875f30daf6 ee698d67a4af 638298dc66ea 21f58875dda7 455f58925247 3585a755cec3 f217c980ca98 dc77997de6b3 25f2bd7f5add 83e92c513be4 08a5dd3842f2 a6f20aa6d2d1 20ecf9fd3beb 24d009c5a58b 6329b8d917ad f9ec1e9afbfe bf378d341e48 d08b0a5594dd 75c7caf5a052 498a727b33ee 5676005acf26 8f0ce108f5e1 d1211af3049f 28cfcc851d5c 8f21bd009005 0b2d10f8f2e6 7f42ec394156 ccebcc74c81d 85601f8cf67c 798761949ee8 b62cd96de316 47bd9ac912fe f875fdbf344b c9e34fa1d28f 19b85cfb190e 4f31ab80a2bf fc0919c68cb2 73449fe73fa3 38a172bef8c9 f1f1e271a236 0a3658cccdf5 50a0ff96891f 855f5f1d882a b8f651365224 cc6b54aa54bf 32eed83c07cc cac6a5ae0118 fbeecda256ba efeb9e60d48f b5f9e3533584 2e923a0527ac 9eb9bfa030d8 280847b53243 559a2e36f047 06a7c3c27814 941781515755 18e391862cce c68d59cb0bd6 9d8924297cd9 bc96269f7222 69820e01aa75 60d3bfb16dc6 73d9f7eef3d9 be47dfad8e39 212a871a3934 384a27453c74 df0cfd699034 c3ffb34128a3 2b29a9fdcb92 13380d462256 41aacc1eea64 ac8905cf6be3 b22ce2785d97 fbbd6511ab0d f5f6cbb61610 c349bf07d6c0 d74c6d514fe3 efd99ef3a97b 4704fe4f03a5 5e72fdb8d827 ff8a43c10f14 8ab959a23fae e877dd2f2581 c372ce3c31bf d482b9d55860 735143e24807 4c2aee0032b7 81b043782e78 5ece263f1d93 ea8e22401547 6fab3febf6d9 d03160d52da8 757c4f6260fe eb4a22ba43d9 ddb6b5a96437 4f440a7abb7c 9186a1fd9ed1 14d747003cb7 d8a083cc7466 6380025aff79 acfdd4b1f759 2c8efb72eb19 1d5b569ef85d b395e4661bfa 1ebd0b21ab14 39a53ec969b5 5b77a1f3d7b7 ba1251e87fc4 84eb2ae1807d fb2e4631a7e2 178c059e7640 ff98736cbbbe 0fc110f4e4f5 64bb65c2cc9b a1923f1d4723 5e61ced05ec8 707aee401d24 c971eae7d1ca 0439f31c35d1 70bea7f2c038 bd5fe738e388 0aaf4c42a313 61ac51301e6c d546eadecc19 5dae5fd24071 2ca3bc2ba143 5f8a2e68b679 3c574b0665d5 4b18f08be01a 1f8adde06e86 e4daf1ffbe6c 6fa3efc24bdb 96f15f29038e 6af864ccfe6d f7929f34fa0e b8aea41ad64a d52392b1a804 8dd6177dc6b5 7ae48b56f8d9 a35561fe3af2 86f0b5b86d14 4bcfe68e7e4d 61be2b9a18ec 8ac7e3f3ac40 46f6c1aaf790 272f254b2719 5be1efb4c2ed e93a7f00a3db 9538aa46c242 a4d0e7c132a9 5b9ab3f7324a 28518ed66242 cc7282b8d5ab 53fcffc423f4 60478295d687 c0a05a14a4e7 016fcab8ff46 95d909e86710 8e3f8755545c 9371cadbbcc7 8d9256906a97 79c4d036e08c c378f70adbc1 b5f8e9877fee 8246aca7058f 1aa33199c596 14611e51a57d 2235df8b82f6 7e6d72c15ff4 809feb1735e5 6241f22ca12a e4498ad1ef9c b0df96a0068d 93cfcb8c998e 3f6fa3d489e1 a1b0505ef3db 1cfc7df3de10 d23288a5a9fb 414abbd2cd4c 2af951daef68 35848f68b07d e4af376d04b0 bddee96b5d0d 28009d3918aa 696df78509d1 df8c1e2ba1f2 77d848372875 9990a882ec3c 30d5b709da23 041aacd868cd 693026ef2e75 51f2a0a803cd 5863e10b441e e1c3e37d2c1d 12a7ad3b810e 624d1705fa1d 39a9b8ac9333 29c303b89a1b 57ab048532c0 9e443904906c 2 2 6030ea9b3597 fd162a76f160 b996ac90f595 4e9169bee6bc dbda92d16f86 ff766b8d26c7 698b82236314 21544884d7d5 b8cb62f82103 b35b16d2be61 f8b8404337de 134c3faa909c d1603990ea62 ea3d15ac86cb bf593907f723 e4f37de094d8 df465abfe06f 08647d0f99db 2d8f4447b58b 0f9613bfc25a 5e4211f1c475 9e5adb3632ba f000cfdde5de 4d839b14d209 cb3b3152b2f5 90647b580ec2 2 1 da94a829305f 5b9ca6b68cfa 92bdd3f5eba2 17db9f4f8858 8a2f132a01c2 7d578af04dda 4ef366c583d6 36466ac6c36c 771d09b3c4c4 c58c2d2597e0 5bf8fae33d14 5b9ce8be3223 9ecd1a75d977 23005ee8bad9 376414945d15 a1db4d774b1d 59ccb4ebbc35 9b372fb74740 ac69c26e7acc 83a5c25c27aa 03393fd5cc2b 276d632e34fc 2810e5b9a773 bccc108d6724 9eaee8beeeb3 4ea6949b9f6e 9bc297ea0622 c818d4b8f41d 091f0ea30074 638030fe4b54 2 1 a87783699b23 d9403f4bd2de c815797663b7 71eac9d144be 8c58bf3eec3b 2a068400fcef 7791c8423f1f b12bcd7b3fe0 3668011d4ad5 c5ba30a73ebc a6e4d5a03e9e 649aeb46c8ff fd9b86d37a60 ac93bc6a8ab8 201c373e8e48 077c9f651e2d 10b3a32d292c c1bfba08b914 1ccc819da6fd 1619f441963e 2 2 c8f6d8351ba8 2114b0ee3840 a3c3cac5d318 f7b72b71fe00 506026c3ec27 a27e05b0cf32 6407d75afd08 0cbb6f3def0c 44f3b503c164 f5dd62805f10 502624bdad3d 4725f1715429 f16fdc9d2dc1 dc9c65a5bdf4 e12a2d53ae45 53e587aa5ca8 1 2 c481420248c6 4221c304a05e 0259d9eb30d0 17ae25f05e68 71d9a2b95fc9 ae04c6d22a95 dcb852905772 6b68bff89410 63b77bf48988 cf09126f9652 2 1 dc652f90e088 19c42ce9869f 25ff1195f8a0 0bdb6ae5a644 66ff0fe9e7bd abfcdd7ef364 888b65b4bc5e 20c4ec0f41d9 0cd9cb76ae26 4b8fefaee7a9 1539d4f82ad5 40de8047654d d76a3a77113d 164ed4383ca6 b022032e195f 7e6c247f30c6 411678288d61 9ba240246fdb 51c94491c82c b2fd07f1a7d2 5559ecadad5a 85bea48d42a7 01e3a8feb40e 55dbc154cfc1 1ffff6032087 cd7dcf3412bc 5f85f176c2f1 bd2f21ebab93 fc98ab873aa3 3668b9c17765 43a66b4c417a a8d646529547 dbcea7615d8d d1baabc8006f 40509ca982c0 664e1221e782 8edfdab37157 5db2cb168b89 a14430db686b 82159cdc841e e670c6af1251 928ab2854c08 cf1d24443677 4f8adbff06ab 7b2459690584 24d369d8ad2a 333576255d4c 0c384c6e92e0 71ccb9b01981 31b9905f62ed 356050d8b1e5 2d5a267e3678 fa1e11d5231c d14eeaffa77b 5018860321dc 923ab36b14cb eba0e3c3a0ba a796ce4827fc e5b33dc9d160 da07f4596510 7e51cde276ca 905de42d8653 56d08fef2369 1bf2642f4cb2 f01fc1a82c2e 8ebfe28181b0 9ba5c80b1aea 4eedfd4758cd 165b1b8bbc17 96c2c850f708 a073dbff359f 9ca2044f9041 570637dc8eeb 1f276d988f8e 620ae90ed8ca 606eea676790 94a32d10f47b 293665035a70 3f63c340a72f def389b91124 f4d6f7dce71a 624e808fcb1f 2582d529c44d ead759f15413 3a61eda81ebc 264758482384 2c262b2a5235 5e35e9063b10 eed307e290b9 32d938cda6d0 b6e51600f4e9 0f260fd5c5b7 132c803f7b70 e52ca26060bb a93bc0c6e07e adddb4096d7b ca0ba26fbbd2 f9c0efa2e87f ec0971ba5372 a1e16e8184d4 ed9dc8ce7a1c c3dc62cc3a32 f046f89a99cc 5a8c68b488f8 80902822658a ae02f16fd87c 24261fc23db9 53bd21b81773 08dff7b7d629 1bdb24f5ab52 d3b9d7a9051d 0eb97065d4a9 a24a6078754f 52cbf32ab420 2d4fa940f996 5bd7c59c9340 0fe51aa5eee5 541f862ec524 d13402a4a944 7b2f4ae43091 e06c93cacb82 3aed32554e8a 68d929862e29 7feecf3f2b58 81fa4e581d92 3b048fc19613 d80a361d779a 316d0bb70f66 2 1 64325a3be08d 689901ce9ced 151743fd8dfb fea5417579fa 99d249021abd 76610d6dfbe4 a464918419f9 3207e0076af2 8a964f44e01a 81745233d8df 23cb21092eb9 e0179c31e081 838f427955dc deca5de87684 e70ab9779919 7c4bf08d3fa2 98c350cda2c1 55a058d4a89c cfd757010691 6f06c8d13890 e387ef5c47dd fdf60a1cce3e 80da2e0df5af f94c6107b49a 389cd784969e d3493114eccc 22056e2b4624 56546c8c2a08 4c4bc25d0fa6 8e53d294a77b 3a2d63f87989 4189aa4ceebb 326cf0f0f308 a2a9af6cffeb fdfa175d0a9c 59bebf6c060b 085b7a45c63d 3c5add9c302a fa5ce5f94c0f ee0a25ab1c31 d953e0e837e6 77327a71f984 03a7ffe4e542 24625640fe27 513b032c98b4 7063a9950d10 db3985e5ca8f 8f8dc63d1c49 3399cfb5df95 7366b52c44b4 957f4aca5fa0 581e58916c90 8afd500cb52a 2ff3ae3932b9 edac894389f9 bc32ef0a6d6a 7e5a5104c6af 41247561dc21 091e26dfc156 3e411534ea3b 860d21e2c585 99d930c0ffe5 6a040ce72598 066f289835f0 2 2 55ee64b30a38 5a82145cb978 317efce99162 754aed1b98d1 320cde19a4e8 ef5936a9b697 95cf00fa5d5e 667958738244 848e8f5f0ad3 6d0d3f3aca8f 98fd485795db fd61506bd23f fd7b9270120c 31317e96c36a 36f318bb124b 8d675985b73d e7e034e18a0a 6ec37f667282 2 1 2bd3bc4e8472 61869db60d56 8a7d7cbf7b5f c0e2ce8b690f ab3cd8670e0b 91c90db1aa92 c489ee290bdb 78e3ae2d57c0 9ddf1aeb2134 d027778a1cf8 1da80cfa8727 8474b1ab89e4 4518f611ba21 f3825cc9679a 2 1 f05bb0c7b624 393143615d9f 2 2 1c8c38c588ea a2d2dcd9e1aa 24171dd92096 959f049dfb62 42c364ace52a 08a43c183143 6f8c2e793367 24d64ff793d8 2291dff02e5f 36a2828e0446 d3286144c92e 1a14c25a0b52 ebebd49a8eab 6521d6734943 2 1 6f16f4998f98 3bba3a68cc9e f652e7d2916f 0d36c06afe8a bc009eca8d53 3e4ba2bf729b 81d0a6ae7bef e8d9897ff064 7ed4165e2d01 5b7d898a1904 18a9df42d53f b60dc9751a36 bc3b7756b5ff 31980f8fa9e5 93be8788e648 87ae8984bd9c f4953fe6c4ae 63dddb4936fa ab9d6e4ffe19 c31f484c903a 5b632fe85ec8 23bc781f1103 eda85d6ad490 55fa88bba337 cafa59b9011a 8b003924dec6 a796a1dd5da9 7c6c7b3f34d1 31efee60f489 f6f82cba2ccb 0fde901f1ddd 29abfe4ddc74 fe0c9610bb68 fa1dd81ceffe 479696840239 850722ddad9d bcdee04ea7ae 499f98ab5a0b 7c34158231b2 efd6621c748e 8d238027b87e 4efbbb6ce0d1 6169b673618b 7f778c1b063b bd25f0783dc3 61252278ee28 63a077e27648 d59c4a70d307 25a172655f83 a4616d110b0d 8f5718a6d9a2 1c96fb0c7ebd a02dc74b317d a0d3e01dadd6 e7d841ca03b7 28c4566d30b8 2 2 40ff2c3b3da3 1506cb20191c 54f7be5b8312 51e8eac1d513 d0c2ce16bec0 449a2eba6930 084940d5b101 bd38add8120c 4c9287c6009b 56bd27c70e51 1ee3ff6110c1 9ca39c6da78c 0c1abbd1aa04 ea321ea69e56 4f29ef050848 fc5884d265e7 e66fc1fba248 bf78d71280f1 2656a9abcf1e b9678188b8f5 1c5c12c666fd 9ef928b0104a 1680260226a8 247a0b330ef3 b9cdc88df8e6 30d395b124c5 2 1 f0263d2d222e 8bc528cece6b 5edee61edeaa bd8320996b15 87cac8f879a5 511c73bcf8e7 1102dcab8493 a393ace58e47 41e58a1f2b90 7fc829044c78 5592906f8b01 1676fff2a360 fcc14ac1a869 9ce8ea33f11c 60cefed485a0 39d18dc4b8b0 2 2 893d290f1d74 32eb44e290d1 87f4d7c1d36f deb4856fc435 2843b673d034 4e0ba0daed15 d0ddfbd3d134 8a3a3f4a507d 201e72acb2d3 c5ee58688baa 2 2 d60e7ec18c3f 5b4478f5dabb 695ddeb45758 e423cb5f6c73 e412e95a268f 9a8dc834132f 9430738d8022 9b945af86d36 84e28a307e37 8b627487f0ca e4db0952e542 7737238648b5 b3c5dce81584 d2f11b9e8718 b32f4c7ed85c 14b557c19dbe 824efd374159 0c53cadfdcd9 adf00b26d18e c948a535b39a 2 1 ee66401bb94b 3a5a8c3f4009 193819cf2e6e 04ed02cc7d43 329e56780e51 0afc4d3b3b13 b4338e1efc33 93ed2b137b97 10c6c383e435 ba3fd3d6cf4a c01af4fec2c8 6e9b3851b52f bc21fde2d549 748e7f2af936 2096ae6ca647 db50e323d9c7 6c4ae5c2e7bf 65c5e411f783 6eda541d1211 e9fb4c8ec396 4fe9f8e203fd 163aec38df49 2 1 bcb4a75bde38 3084fc2f2e8c 4c7b417ecb75 3313aa9015c7 2f1f4d9b6039 2cd21e826291 80b4812407c6 4e19de3be14c deb09ddaff14 b39bfb4cc09a 8a55ade76551 b457f46761db d8dc3494f77a 01d35d12e9a7 bd49940a35ec 0a193b148d6d 985f61f7ee64 8654636ef742 2 1 f39c1bfb5a03 7b8b925af13a 2 1 7be0670f7b91 da75c41ed3cf e6391a182865 7672832a4ebe e2f2886a824f 06335856d22e fc108d24d3a6 3a0ae8e18c18 d821a4c4d11a 78e96c146124 6f33814bd4d9 307937c6743d 2 1 a46d2619d718 a3aaee9f1070 c1c52848cef5 3fd4e8f0ecd9 4fc79db178f0 22d4436ddd85 94543a8d4fb3 cfc41fe51189 58569aee5a1a f7532f73105d 483001c765af 95964784565a 02e2b1249436 88963fd6c66b b79d866c8b70 e5000b33460e 2 1 f65ca1dc6a8c 788c8de383e3 3dd4765fce04 c52f6cc5d3e4 ca57df79d4f6 3927df7e5035 955c1cd74015 27c4b68bb5e9 3715c5309f6d 1b772a147a18 2c95a3290919 e551857183b5 c0394506e69b 2028a493b8ff 380e99fc44d7 1b5b48b8974d 5aaa0b7a2ed5 c812fe636b6e b939c2acf1dc 80aa998e8260 5752cdb805ff d6f34925144b 5baefd6d8416 7b9a23129399 196951e91262 d6a2a0400e36 f55a6faa3843 3c910e7e4681 f2ebd422f71c 0f3cbc35d209 9f846a16d213 be2c05493abc a4dff3043c23 2492cd118dc5 2 1
[upstream commit] [3.8] [3.5] [3.2] 813e8e3d6aaa ad78bf26dcd6 72594a9654c5 b268daffdcb9 431aab3ee0da ccf3e90b8c47 fdeadb43fdf1 ee2966b0890d 912e663127c5 832f8486e808 1a3e5173f5e7 699f24ad3234 84b073868b9d ff3e34f6f0b9 3a794f008cd2 36d04a55f34a 365da4adebb1 38a9449db1a4 73402fc4efcf bca06620c941 bd80c8ba995c 88056cc7a119 8ae87a279145 fae009d15a44 9e06f75bc7e9 3522bf7bfa24 bb9f53faee23 d34b5bdf1dbe 6408eac26659 b52cf4ed98bb e41d8f1e4199 ad308321f9f9 29f4c090079f 32a728b043c3 db390b3932f0 ea029c28dead f6181359e805 f123d74abf91 22ff2304c037 d07ba8422f1e f3ae133df108 2c4dcebb12f6 99b6697a50c2 9a6a141cae6f 65d7dd2f3479 f9f1cee88bf9 522e66464467 c70ddaa61326 d8c3245c9749 17405453f4ad 04989392279e 778d226a1462 7ca32f44e870 51e2746bcdea 2a4c85e77b4b 0a5a5499ad88 0b5afeb981bb 33499a15c2f7 9d6d98de6154 f74b75e7f920 2774911a3bf9 0bcf0b161636 4a6c6bb2be9c 7b6bc07ab554 4312473110f9 416abe5cc494 d83ceadbcef3 af73623f5f10 625c3ecc6590 dcc01c086482 7a4f2714d366 c8bd3ac46959 7e6337b69496 c5340bd14336 85a5e64fa5ad dcf6d294830d 24498530d1a0 279f438e36c0 7fa787c95dac(2 1) 95bd09eb2750 6228c4edf909 638298dc66ea c14cc99bb0b2 7426bb0a6fa0 21f58875dda7 455f58925247 672d3ddaa414 b32bbeac32ba 3585a755cec3 2f6c94796337 1faec133b47c 61875f30daf6 b4349786da19 6b41287ba4df ee698d67a4af f3fc4884ebe6 018e31d2bd17 f2f5f771c5fc f6c0873963a9 cc173961a680 0be01fc195fd 300cf9b93f74 fdc51f4bf544 c70d86b0536e d8cacd3a259b 35109ecd4891 cac6a5ae0118 342c71ef2217 65db46174f91 fbeecda256ba 27c505ca84e1 3a0953af525e d0f7efed5ef7 59e998561103 4ebd88713582 90e775b71ac4 55c943e0a09a 2ba85e7af4c6 8428ae31628e 63b66e5ba54b d280fd3cae52 d482b9d55860 8b0bb1238c6c e846e88cfcbb 735143e24807 3f577573cd54 736e38a13011 605d7815de0a 961246b4ed8d e5bb683b0c24 650e61355b81 d28828aae0b1 10a0b6176b9f 6e838363519d 84235de394d9 4e0c7c422e59(2 2) f217c980ca98 2eadc1f3fdab dc77997de6b3 6d0bb818041a 4621647c72a1 3396b096c54a e0d87718b18c e5903d399a7b 5bfaf762b60b d9f966357b14 c8ba9c3025b5 1b672224d128 e06c33874253 46a51c80216c dccfb68c2630 2435dcb98cfe 6b7cfe5a757a 603e7729920e 434700a29d1e