Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 973C3E00FC5; Fri, 1 Jul 2016 01:55:52 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0071.outbound.protection.outlook.com [104.47.32.71]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 645DEE00F3E for ; Fri, 1 Jul 2016 01:55:08 -0700 (PDT) Received: from BY2PR03CA048.namprd03.prod.outlook.com (10.141.249.21) by SN2PR03MB1936.namprd03.prod.outlook.com (10.164.114.160) with Microsoft SMTP Server (TLS) id 15.1.447.15; Fri, 1 Jul 2016 08:39:29 +0000 Received: from BN1AFFO11FD032.protection.gbl (2a01:111:f400:7c10::185) by BY2PR03CA048.outlook.office365.com (2a01:111:e400:2c5d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Fri, 1 Jul 2016 08:39:29 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD032.mail.protection.outlook.com (10.58.52.186) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Fri, 1 Jul 2016 08:39:28 +0000 Received: from ceres.localdomain (ceres.ap.freescale.net [10.192.208.81]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u618d60g003576; Fri, 1 Jul 2016 01:39:26 -0700 From: To: Date: Fri, 1 Jul 2016 16:37:49 +0800 Message-ID: <1467362325-6287-12-git-send-email-ting.liu@nxp.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1467362325-6287-1-git-send-email-ting.liu@nxp.com> References: <1467362325-6287-1-git-send-email-ting.liu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131118359691156197; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(87936001)(76176999)(50986999)(2906002)(19580395003)(8676002)(48376002)(356003)(68736007)(4326007)(8936002)(5003940100001)(106466001)(104016004)(105606002)(2950100001)(92566002)(2876002)(47776003)(50466002)(81166006)(2351001)(81156014)(19580405001)(97736004)(8666005)(86152002)(7846002)(77096005)(6806005)(33646002)(50226002)(189998001)(229853001)(305945005)(586003)(11100500001)(230783001)(575784001)(36756003)(110136002)(85426001)(69596002)(15975445007)(86362001)(7059030)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB1936; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD032; 1:w87aSZsGJcJmpxkCTJj77CSztiqq4uviL+AR9FKjV9Iz+y5QZ9+iOpy3+BE0Gu7A+Ediep2Ntfr1VS8l5F55CjJG9/l4wOnEijAzy+5uQFwdZ23H/ucyJ0gQxqv3KqinBDkNYI/APzFCSQni3x9bVjVtDJ6I0Cggj0DbreI0gt9hHDIcsWvXxKmowCKaUQgYfFfDu+KKhBjT1ocuunDlkSAq1SHfqwJhOg3BGuPQNZWS+wJVR1muI3AplyqJjxdbN2fSqot6S/eTW8oCT4D10dUgeFyY8lsSFYGrTum0MPkdGsE23wD0evh5sq0Uo237pcr88kNSSoMD1YCr9dejG/BvhGVdjNoUs3ZR8VMSSZt3fBTlDPXv3co8WWS3EgcnZ9jtd+yDLqQ0hA1uh6n9Hkew/FH4fOfE63TGYy/rA/xmjVYI0MK+oJotdoTnEKxlho2VfoGPGE98Q4jO1XFZrf/6ZewpWqzQiFNltRSQxYpZz2FWsN43M5wP1xPB5L6gWa9uaVZa90P9QTbc33fSBOm1uVLRcPEEKdu1PSerSWLGlx/cH64sSIKG6CAVzjPxrc3+8q12wv5nBxFwGiJZMWiApUieyU93AO0QmDQ9xhy4ewqIo0a/ycgveoed7daOEX0utKL9J3BGi7XN/TNe6fXClWnWIgmDPi5gHzc+nq/XfA/EpvvwFJ6H1/V3ukIufV/+yBiX6IjrVRRAsl1kK1xIaAghvkBc1xmprkdatOU= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 81524750-68c8-4bc5-f987-08d3a18b3760 X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1936; 2:yKEOQqDyDjDAycoIGIwFTxZu+gX93XXts9PtJ/TZqv1BOlZN+768KWkBYDGdS+X5rI5slrW4T7ySVUj1n4s91KO6PjRSuXLdRGE6NY4WRKyDOlB00aoH0E08xotr8nurT2AEdM+JM4od0aicONxIlFs31EjW90qeLg7zil/TNHRIPHeyCyUbaJ3vnmMGRbEt; 3:9IfrVus3xKAgb6cZ9sPgkqaAlclP9pfYlUAOpilRyvBJZFFC+P4LCghqvpeMR8c6vH7zr00Cb0I5u3S8esG8uyYm65/9Yoz5cZC8lBTNxcj5uF1FVP9G7b6udxbcvO0ytPXni0Nuvz+Esb/OMJOFEVRStgJW/ZIcX1UZ9hl+fVHZqdmfyF4wHQbM5zwJv3jSamvD9dr28J5oJ0qcSVznylbXp4E311SZBymTiBvXXPA=; 25:FcuN73EinWj337yX0G8A8pcZL/ZRU/NWssTuE95/4tjyUJawM9KJpD0qUzM6IRXZLkGGTut7FlZ6GTV2Pt3MOvZOVW6ia5rbl1oo/GhU8jRoIvCONYtIyQ28uj/lrYCIiDDQ4t431C0oLcwEM7jRmVqtRleBLke+eZcsa4NrhtnLKj2+Dpkf9U/fRrgJRfHtETVgNwwStcvfzvGctOiKTmv94jmFZdGR3HIHiR60LjFVa2T+zifmWAzZ0skF6lYS X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN2PR03MB1936; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132)(84791874153150)(46150409022019); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(13015025)(13018025)(13017025)(13024025)(13023025)(10201501046)(3002001)(6055026); SRVR:SN2PR03MB1936; BCL:0; PCL:0; RULEID:(400006); SRVR:SN2PR03MB1936; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1936; 4:16kpA4CESK7AuxEoXECbTdRFE5gR61LORwu85X6F1binkRW8g0uXaZOhmfbm2Y7damNd5OefHLnh/+Uc1C4GCeC4+caMTu2mOYbsS8L+/sk4NJ/Zm9JJw7ndofwKG77yJMJwDKpisDNMfGhpOECb44CNrrE7SSPvNiAaO+qsMYuctLpsf8kjykfnDufIGAzz9K3HKdKiGY45oOjRh35aRGluAPuX5Es+DseoyuDK8TQxQF9jVTGGpGRQiCAaeSLvb3HIYmMKiVINodLFldnpoUdRs2sHbeE162OAelp47DxkJ/Lj1NUhqbyI5eopyNQEYvPHJAmDnwv/YW/cRY6CWrsQJ5tgZ+OFlGhsuN3f1yAkBgEXsT/EPRBXVz1Pqfl6rTe0EhL7eEH/r81TEOT6wtLXN9xBf3fi7WQn0a2tps63YcIFu3gRwUOWaF5RLJ4jOuCj1jCqx4h1hW2lFVksYSmS2B23cDUburr8deABzHzKoxjvJmyJnG5de/zhmshYO7mwJgVmAP041QundZKW/liUosnTmr5G5LKFQpI9D57AK81A558jkspxjnz0J04EbBM+RDA5M96SpSqvCzKwXhD7e7s1wfDVR9cfvZFYkYEq0F9bpECfkkUmqBvFtriD X-Forefront-PRVS: 0990C54589 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB1936; 23:l5TLTSr1aU2CxH08GvjSAOh10heLII5mcHpt+r5Ca?= =?us-ascii?Q?wgfrDcmAcJ5FUW4SavRp3SmLbvTnGqgf7k6gDte8Urh/X0ZR0fQzYtGjc4CS?= =?us-ascii?Q?nfXhkB/GwrmfI9j4/t4imWSKMZlhBomEgQmaauvQRqgh9VN99uHeoDG+s//x?= =?us-ascii?Q?cr0ds85MebMwMzt7F5Ex1emnXUeusjYp2coCc3QWgZrRLdrQVtCmdd8eZ5vn?= =?us-ascii?Q?rrRajqRJ5aENU/QHwE6WyJsuQsIccy/3CAsfiC0cEpJ4/2GZLfxUD51IQMKy?= =?us-ascii?Q?vLarj6E9JCtTjbRp3jX8Aa3VVDbKowTp8nJeso/7DpGEvbSHRw8H2zFCCzKf?= =?us-ascii?Q?0CFHuXholCih8wvjTPNfH+Li/80vEOZbILxmQBBCelrUIgq/uCotOX30Ft2D?= =?us-ascii?Q?wz49rokYQ4AowDoJ1h5PD7NfekLMp+S1dqlOVk4Z0tYVRnIfV9xtK43nso1d?= =?us-ascii?Q?qbp5pPZFt6hoesQa+xb9fbwhoNe3nrX8PeLx2Kfdt0+h/9RPjykkW8S7TJeE?= =?us-ascii?Q?n+MUm9/22nT6dnkXBvDfsKtC8bZlaYraDfxA1lShCP2UoGMqJ7pkWCfk9zTH?= =?us-ascii?Q?YNUd+dC+yjUw9ka4OcICeZFS6Ev0zIcMsmEC7nKaBMWvrE3hmK7BBDMXSCit?= =?us-ascii?Q?r2WCcITeQUGVh5XXx5TuUDiNhzHC1ch11Gnq5zcJdi5gzfsXtJDIi8EvVmwb?= =?us-ascii?Q?bZZYEXfo1oaPPzca8v4piBECFCH3sHXGt6GgCSSwGw7D/4gqLEeHs1vvpeLH?= =?us-ascii?Q?u1hmQHDlmCNNyPRfFa3J/jHxgAqbIiea52TsEhw6+XEyZBQGj3ELtpNzWigz?= =?us-ascii?Q?4giT709ICAQwTOPktGKNJgsf2o1Itt5AKD7LJM7ISD8Xo0scPALLkVCwOh3j?= =?us-ascii?Q?8seJTyaP4PGnR/W/B7l9J0i2ZL7hddnRBnCs5Tqip4iogWoYsnS4vZfx786N?= =?us-ascii?Q?3A4y20/+BhjuW/PCcapFFPIDIjSklMw8qTzefEhAAeiuOF0JgkJp0hkHr+WW?= =?us-ascii?Q?52VcKIswzVedPEHKoIXO8w4gPsFfORxLQwBn8uVdo/ncOD9Irkq42hHCAe8x?= =?us-ascii?Q?TRlVJq0PShbbL7iFQy95SZqEVoqfXjLB/vtuyNkMR7BzVkrjk9AS8R1wHF67?= =?us-ascii?Q?zmuOg4LvWMghzser3ETWlysVS30gnMFENw5CAslxNZZPZzMH2k/Lc7DdMhqj?= =?us-ascii?Q?7U48ocKb2G3YSWzQaiLTgA2s3BPM8TihtwZ48fQgUOU8GxsDl7+zUrTpEyEB?= =?us-ascii?Q?CYugtXuHHrpNwxWheAWZ8LARlLAPieSUPiNaaLKU+hXqlfYU44VS+SirtJeH?= =?us-ascii?Q?3xcrZuJgpsDlDuiuAQ8FZqaxDH3OCnOtHK17fPZGN2ncZ2s6rbd9R9/ZWgrg?= =?us-ascii?Q?XmAZA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1936; 5:AtMTF4SQG+oiw8A7PsolNurwM1g92MHEHwDyuuTuPUO4cm+HVX0cTEOFQMjRimEcR1b9N3xrsnE2ZpVWUdd2Bawu2HgWlyTggcYFCCJWczJJJFuRTo8pyB4WIMoGMoPj7JpJmUdj5ogf5iHFB0oiGmjxzt2dbNW+0D1QrcFofRM=; 24:Nm2u8ATwUYFhwSqbjZBTRqWxemEFbo1RaFUDcqbbFo/ah0oswOscwQmFxz4wWySBu+pzNDbZl9NupLTKw0Wvc4oCTR2xPGk7WayBvsQf0pA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2016 08:39:28.8504 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB1936 Subject: [meta-freescale-layer][PATCH 11/67] linux-qoriq: upgrade to 4.1 plus fsl patches X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 08:55:52 -0000 Content-Type: text/plain From: Ting Liu The main features are: * Linux kernel 4.1.8 * ARM A7 (AARCH32), A53 and A57 (AARCH64), Little Endian (default) * Power Architecture e500mc, e5500, e6500 * Multicore SMP support and multithread (e6500) * 32-bit effective kernel addressing [e500mc, e5500, A57] * 64-bit effective addressing [e6500, A53, A57] * Huge Pages (hugetlbfs) * Linux Real-Time (RT) [P4080, B4860, LS1021A] * Kernel-based Virtual Machine (KVM) * Libvirt 1.2.19 * Linux Containers (LXC) 1.1.4 function support Detailed commit log can be found at: http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git/log/?h=sdk-v2.0.x Signed-off-by: Ting Liu --- .../linux/files/net-sctp-CVE-2014-0101.patch | 145 --------------------- ...LLVMLinux-use-static-inline-in-ARM-ftrace.patch | 48 ------- ...nux-Change-extern-inline-to-static-inline.patch | 59 --------- .../0001-powerpc-Align-TOC-to-256-bytes.patch | 37 ------ .../0003-use-static-inline-in-ARM-lifeboot.h.patch | 16 +-- .../modify-defconfig-t1040-nr-cpus.patch | 0 .../module-remove-MODULE_GENERIC_TABLE.patch | 77 ----------- ...pic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch | 32 +++++ .../{linux-qoriq_3.12.bb => linux-qoriq_4.1.bb} | 46 ++++--- 9 files changed, 59 insertions(+), 401 deletions(-) delete mode 100644 recipes-kernel/linux/files/net-sctp-CVE-2014-0101.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/0001-ARM-8158-LLVMLinux-use-static-inline-in-ARM-ftrace.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/0001-powerpc-Align-TOC-to-256-bytes.patch rename recipes-kernel/linux/{files => linux-qoriq}/modify-defconfig-t1040-nr-cpus.patch (100%) delete mode 100644 recipes-kernel/linux/linux-qoriq/module-remove-MODULE_GENERIC_TABLE.patch create mode 100644 recipes-kernel/linux/linux-qoriq/only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch rename recipes-kernel/linux/{linux-qoriq_3.12.bb => linux-qoriq_4.1.bb} (62%) diff --git a/recipes-kernel/linux/files/net-sctp-CVE-2014-0101.patch b/recipes-kernel/linux/files/net-sctp-CVE-2014-0101.patch deleted file mode 100644 index ddcb6c5..0000000 --- a/recipes-kernel/linux/files/net-sctp-CVE-2014-0101.patch +++ /dev/null @@ -1,145 +0,0 @@ -From 00c53b02cb01976b35d37670a4b5c5d7a6ad3c62 Mon Sep 17 00:00:00 2001 -From: Daniel Borkmann -Date: Mon, 3 Mar 2014 17:23:04 +0100 -Subject: [PATCH] net: sctp: fix sctp_sf_do_5_1D_ce to verify if we/peer is - AUTH capable - -[ Upstream commit ec0223ec48a90cb605244b45f7c62de856403729 ] - -RFC4895 introduced AUTH chunks for SCTP; during the SCTP -handshake RANDOM; CHUNKS; HMAC-ALGO are negotiated (CHUNKS -being optional though): - - ---------- INIT[RANDOM; CHUNKS; HMAC-ALGO] ----------> - <------- INIT-ACK[RANDOM; CHUNKS; HMAC-ALGO] --------- - -------------------- COOKIE-ECHO --------------------> - <-------------------- COOKIE-ACK --------------------- - -A special case is when an endpoint requires COOKIE-ECHO -chunks to be authenticated: - - ---------- INIT[RANDOM; CHUNKS; HMAC-ALGO] ----------> - <------- INIT-ACK[RANDOM; CHUNKS; HMAC-ALGO] --------- - ------------------ AUTH; COOKIE-ECHO ----------------> - <-------------------- COOKIE-ACK --------------------- - -RFC4895, section 6.3. Receiving Authenticated Chunks says: - - The receiver MUST use the HMAC algorithm indicated in - the HMAC Identifier field. If this algorithm was not - specified by the receiver in the HMAC-ALGO parameter in - the INIT or INIT-ACK chunk during association setup, the - AUTH chunk and all the chunks after it MUST be discarded - and an ERROR chunk SHOULD be sent with the error cause - defined in Section 4.1. [...] If no endpoint pair shared - key has been configured for that Shared Key Identifier, - all authenticated chunks MUST be silently discarded. [...] - - When an endpoint requires COOKIE-ECHO chunks to be - authenticated, some special procedures have to be followed - because the reception of a COOKIE-ECHO chunk might result - in the creation of an SCTP association. If a packet arrives - containing an AUTH chunk as a first chunk, a COOKIE-ECHO - chunk as the second chunk, and possibly more chunks after - them, and the receiver does not have an STCB for that - packet, then authentication is based on the contents of - the COOKIE-ECHO chunk. In this situation, the receiver MUST - authenticate the chunks in the packet by using the RANDOM - parameters, CHUNKS parameters and HMAC_ALGO parameters - obtained from the COOKIE-ECHO chunk, and possibly a local - shared secret as inputs to the authentication procedure - specified in Section 6.3. If authentication fails, then - the packet is discarded. If the authentication is successful, - the COOKIE-ECHO and all the chunks after the COOKIE-ECHO - MUST be processed. If the receiver has an STCB, it MUST - process the AUTH chunk as described above using the STCB - from the existing association to authenticate the - COOKIE-ECHO chunk and all the chunks after it. [...] - -Commit bbd0d59809f9 introduced the possibility to receive -and verification of AUTH chunk, including the edge case for -authenticated COOKIE-ECHO. On reception of COOKIE-ECHO, -the function sctp_sf_do_5_1D_ce() handles processing, -unpacks and creates a new association if it passed sanity -checks and also tests for authentication chunks being -present. After a new association has been processed, it -invokes sctp_process_init() on the new association and -walks through the parameter list it received from the INIT -chunk. It checks SCTP_PARAM_RANDOM, SCTP_PARAM_HMAC_ALGO -and SCTP_PARAM_CHUNKS, and copies them into asoc->peer -meta data (peer_random, peer_hmacs, peer_chunks) in case -sysctl -w net.sctp.auth_enable=1 is set. If in INIT's -SCTP_PARAM_SUPPORTED_EXT parameter SCTP_CID_AUTH is set, -peer_random != NULL and peer_hmacs != NULL the peer is to be -assumed asoc->peer.auth_capable=1, in any other case -asoc->peer.auth_capable=0. - -Now, if in sctp_sf_do_5_1D_ce() chunk->auth_chunk is -available, we set up a fake auth chunk and pass that on to -sctp_sf_authenticate(), which at latest in -sctp_auth_calculate_hmac() reliably dereferences a NULL pointer -at position 0..0008 when setting up the crypto key in -crypto_hash_setkey() by using asoc->asoc_shared_key that is -NULL as condition key_id == asoc->active_key_id is true if -the AUTH chunk was injected correctly from remote. This -happens no matter what net.sctp.auth_enable sysctl says. - -The fix is to check for net->sctp.auth_enable and for -asoc->peer.auth_capable before doing any operations like -sctp_sf_authenticate() as no key is activated in -sctp_auth_asoc_init_active_key() for each case. - -Now as RFC4895 section 6.3 states that if the used HMAC-ALGO -passed from the INIT chunk was not used in the AUTH chunk, we -SHOULD send an error; however in this case it would be better -to just silently discard such a maliciously prepared handshake -as we didn't even receive a parameter at all. Also, as our -endpoint has no shared key configured, section 6.3 says that -MUST silently discard, which we are doing from now onwards. - -Before calling sctp_sf_pdiscard(), we need not only to free -the association, but also the chunk->auth_chunk skb, as -commit bbd0d59809f9 created a skb clone in that case. - -I have tested this locally by using netfilter's nfqueue and -re-injecting packets into the local stack after maliciously -modifying the INIT chunk (removing RANDOM; HMAC-ALGO param) -and the SCTP packet containing the COOKIE_ECHO (injecting -AUTH chunk before COOKIE_ECHO). Fixed with this patch applied. - -This fixes CVE-2014-0101 -Upstream-Status: Backport - -Fixes: bbd0d59809f9 ("[SCTP]: Implement the receive and verification of AUTH chunk") -Signed-off-by: Daniel Borkmann -Cc: Vlad Yasevich -Cc: Neil Horman -Acked-by: Vlad Yasevich -Signed-off-by: David S. Miller -Signed-off-by: Jiri Slaby -Signed-off-by: Sona Sarmadi ---- - net/sctp/sm_statefuns.c | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c -index dfe3f36..56ebe71 100644 ---- a/net/sctp/sm_statefuns.c -+++ b/net/sctp/sm_statefuns.c -@@ -768,6 +768,13 @@ sctp_disposition_t sctp_sf_do_5_1D_ce(struct net *net, - return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); - } - -+ /* Make sure that we and the peer are AUTH capable */ -+ if (!net->sctp.auth_enable || !new_asoc->peer.auth_capable) { -+ kfree_skb(chunk->auth_chunk); -+ sctp_association_free(new_asoc); -+ return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); -+ } -+ - /* set-up our fake chunk so that we can process it */ - auth.skb = chunk->auth_chunk; - auth.asoc = chunk->asoc; --- -1.9.1 - diff --git a/recipes-kernel/linux/linux-qoriq/0001-ARM-8158-LLVMLinux-use-static-inline-in-ARM-ftrace.patch b/recipes-kernel/linux/linux-qoriq/0001-ARM-8158-LLVMLinux-use-static-inline-in-ARM-ftrace.patch deleted file mode 100644 index 47f13c7..0000000 --- a/recipes-kernel/linux/linux-qoriq/0001-ARM-8158-LLVMLinux-use-static-inline-in-ARM-ftrace.patch +++ /dev/null @@ -1,48 +0,0 @@ -From aeea3592a13bf12861943e44fc48f1f270941f8d Mon Sep 17 00:00:00 2001 -From: Behan Webster -Date: Wed, 24 Sep 2014 01:06:46 +0100 -Subject: ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h - -With compilers which follow the C99 standard (like modern versions of gcc and -clang), "extern inline" does the wrong thing (emits code for an externally -linkable version of the inline function). In this case using static inline -and removing the NULL version of return_address in return_address.c does -the right thing. - -Signed-off-by: Behan Webster -Reviewed-by: Mark Charlebois -Acked-by: Steven Rostedt -Signed-off-by: Russell King - -diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h -index 39eb16b..bfe2a2f 100644 ---- a/arch/arm/include/asm/ftrace.h -+++ b/arch/arm/include/asm/ftrace.h -@@ -45,7 +45,7 @@ void *return_address(unsigned int); - - #else - --extern inline void *return_address(unsigned int level) -+static inline void *return_address(unsigned int level) - { - return NULL; - } -diff --git a/arch/arm/kernel/return_address.c b/arch/arm/kernel/return_address.c -index fafedd8..f6aa84d 100644 ---- a/arch/arm/kernel/return_address.c -+++ b/arch/arm/kernel/return_address.c -@@ -63,11 +63,6 @@ void *return_address(unsigned int level) - #warning "TODO: return_address should use unwind tables" - #endif - --void *return_address(unsigned int level) --{ -- return NULL; --} -- - #endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) / else */ - - EXPORT_SYMBOL_GPL(return_address); --- -cgit v0.10.2 - diff --git a/recipes-kernel/linux/linux-qoriq/0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline.patch b/recipes-kernel/linux/linux-qoriq/0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline.patch deleted file mode 100644 index 0ab03fb..0000000 --- a/recipes-kernel/linux/linux-qoriq/0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline.patch +++ /dev/null @@ -1,59 +0,0 @@ -From a2561791169351cbf1ac5ca0c4299a0eef7eca65 Mon Sep 17 00:00:00 2001 -From: Behan Webster -Date: Tue, 3 Sep 2013 22:27:26 -0400 -Subject: [PATCH] ARM: LLVMLinux: Change "extern inline" to "static inline" in - glue-cache.h - -With compilers which follow the C99 standard (like modern versions of gcc and -clang), "extern inline" does the wrong thing (emits code for an externally -linkable version of the inline function). "static inline" is the correct choice -instead. - -Author: Behan Webster -Signed-off-by: Behan Webster -Reviewed-by: Mark Charlebois ---- - arch/arm/include/asm/glue-cache.h | 22 +++++++++++----------- - 1 file changed, 11 insertions(+), 11 deletions(-) - -diff --git a/arch/arm/include/asm/glue-cache.h b/arch/arm/include/asm/glue-cache.h -index c81adc0..a3c24cd 100644 ---- a/arch/arm/include/asm/glue-cache.h -+++ b/arch/arm/include/asm/glue-cache.h -@@ -130,22 +130,22 @@ - #endif - - #ifndef __ASSEMBLER__ --extern inline void nop_flush_icache_all(void) { } --extern inline void nop_flush_kern_cache_all(void) { } --extern inline void nop_flush_kern_cache_louis(void) { } --extern inline void nop_flush_user_cache_all(void) { } --extern inline void nop_flush_user_cache_range(unsigned long a, -+static inline void nop_flush_icache_all(void) { } -+static inline void nop_flush_kern_cache_all(void) { } -+static inline void nop_flush_kern_cache_louis(void) { } -+static inline void nop_flush_user_cache_all(void) { } -+static inline void nop_flush_user_cache_range(unsigned long a, - unsigned long b, unsigned int c) { } - --extern inline void nop_coherent_kern_range(unsigned long a, unsigned long b) { } --extern inline int nop_coherent_user_range(unsigned long a, -+static inline void nop_coherent_kern_range(unsigned long a, unsigned long b) { } -+static inline int nop_coherent_user_range(unsigned long a, - unsigned long b) { return 0; } --extern inline void nop_flush_kern_dcache_area(void *a, size_t s) { } -+static inline void nop_flush_kern_dcache_area(void *a, size_t s) { } - --extern inline void nop_dma_flush_range(const void *a, const void *b) { } -+static inline void nop_dma_flush_range(const void *a, const void *b) { } - --extern inline void nop_dma_map_area(const void *s, size_t l, int f) { } --extern inline void nop_dma_unmap_area(const void *s, size_t l, int f) { } -+static inline void nop_dma_map_area(const void *s, size_t l, int f) { } -+static inline void nop_dma_unmap_area(const void *s, size_t l, int f) { } - #endif - - #ifndef MULTI_CACHE --- -2.1.4 - diff --git a/recipes-kernel/linux/linux-qoriq/0001-powerpc-Align-TOC-to-256-bytes.patch b/recipes-kernel/linux/linux-qoriq/0001-powerpc-Align-TOC-to-256-bytes.patch deleted file mode 100644 index 2131c9d..0000000 --- a/recipes-kernel/linux/linux-qoriq/0001-powerpc-Align-TOC-to-256-bytes.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 7d4d16a6ccdd6d965b84284262a67d5b63426d50 Mon Sep 17 00:00:00 2001 -From: Zhenhua Luo -Date: Mon, 9 Nov 2015 04:36:29 -0600 -Subject: [PATCH] powerpc: Align TOC to 256 bytes - -Recent toolchains(gcc-5.2) force the TOC to be 256 byte aligned. We need -to enforce this alignment in our linker script, otherwise pointers -to our TOC variables (__toc_start, __prom_init_toc_start) could -be incorrect. - -If they are bad, we die a few hundred instructions into boot. - -Upstream-Status: Backport - -Backport from https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5e95235 - -Signed-off-by: Zhenhua Luo ---- - arch/powerpc/kernel/vmlinux.lds.S | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S -index f096e72..3266864 100644 ---- a/arch/powerpc/kernel/vmlinux.lds.S -+++ b/arch/powerpc/kernel/vmlinux.lds.S -@@ -213,6 +213,8 @@ SECTIONS - *(.opd) - } - -+ . = ALIGN(256); -+ - .got : AT(ADDR(.got) - LOAD_OFFSET) { - __toc_start = .; - #ifndef CONFIG_RELOCATABLE --- -2.3.3 - diff --git a/recipes-kernel/linux/linux-qoriq/0003-use-static-inline-in-ARM-lifeboot.h.patch b/recipes-kernel/linux/linux-qoriq/0003-use-static-inline-in-ARM-lifeboot.h.patch index 6d06776..161bada 100644 --- a/recipes-kernel/linux/linux-qoriq/0003-use-static-inline-in-ARM-lifeboot.h.patch +++ b/recipes-kernel/linux/linux-qoriq/0003-use-static-inline-in-ARM-lifeboot.h.patch @@ -4,24 +4,10 @@ Date: Thu, 8 Oct 2015 22:48:22 -0500 Subject: [PATCH] use static inline in ARM lifeboot.h --- - drivers/input/mouse/lifebook.h | 2 +- drivers/input/mouse/sentelic.h | 2 +- drivers/input/mouse/trackpoint.h | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) + 2 files changed, 2 insertions(+), 2 deletions(-) -diff --git a/drivers/input/mouse/lifebook.h b/drivers/input/mouse/lifebook.h -index 4c4326c..e4c2453 100644 ---- a/drivers/input/mouse/lifebook.h -+++ b/drivers/input/mouse/lifebook.h -@@ -19,7 +19,7 @@ int lifebook_init(struct psmouse *psmouse); - inline void lifebook_module_init(void) - { - } --inline int lifebook_detect(struct psmouse *psmouse, bool set_properties) -+static inline int lifebook_detect(struct psmouse *psmouse, bool set_properties) - { - return -ENOSYS; - } diff --git a/drivers/input/mouse/sentelic.h b/drivers/input/mouse/sentelic.h index aa697ec..9e69e94 100644 --- a/drivers/input/mouse/sentelic.h diff --git a/recipes-kernel/linux/files/modify-defconfig-t1040-nr-cpus.patch b/recipes-kernel/linux/linux-qoriq/modify-defconfig-t1040-nr-cpus.patch similarity index 100% rename from recipes-kernel/linux/files/modify-defconfig-t1040-nr-cpus.patch rename to recipes-kernel/linux/linux-qoriq/modify-defconfig-t1040-nr-cpus.patch diff --git a/recipes-kernel/linux/linux-qoriq/module-remove-MODULE_GENERIC_TABLE.patch b/recipes-kernel/linux/linux-qoriq/module-remove-MODULE_GENERIC_TABLE.patch deleted file mode 100644 index 5a67155..0000000 --- a/recipes-kernel/linux/linux-qoriq/module-remove-MODULE_GENERIC_TABLE.patch +++ /dev/null @@ -1,77 +0,0 @@ -module: remove MODULE_GENERIC_TABLE - -MODULE_DEVICE_TABLE() calles MODULE_GENERIC_TABLE(); make it do the -work directly. This also removes a wart introduced in the last patch, -where the alias is defined to be an unknown struct type "struct -type##__##name##_device_id" instead of "struct type##_device_id" (it's -an extern so GCC doesn't care, but it's wrong). - -The other user of MODULE_GENERIC_TABLE (ISAPNP_CARD_TABLE) is unused, -so delete it. - - - -Signed-off-by: Rusty Russell -Signed-off-by: Zhenhua Luo - -Upstream-Status: Backport ---- - include/linux/isapnp.h | 4 ---- - include/linux/module.h | 19 ++++++++----------- - 2 files changed, 8 insertions(+), 15 deletions(-) - -diff --git a/include/linux/isapnp.h b/include/linux/isapnp.h -index e2d28b0..3c77bf9 100644 ---- a/include/linux/isapnp.h -+++ b/include/linux/isapnp.h -@@ -56,10 +56,6 @@ - #define ISAPNP_DEVICE_ID(_va, _vb, _vc, _function) \ - { .vendor = ISAPNP_VENDOR(_va, _vb, _vc), .function = ISAPNP_FUNCTION(_function) } - --/* export used IDs outside module */ --#define ISAPNP_CARD_TABLE(name) \ -- MODULE_GENERIC_TABLE(isapnp_card, name) -- - struct isapnp_card_id { - unsigned long driver_data; /* data private to the driver */ - unsigned short card_vendor, card_device; -diff --git a/include/linux/module.h b/include/linux/module.h -index 54aef1b..a9f6812 100644 ---- a/include/linux/module.h -+++ b/include/linux/module.h -@@ -83,15 +83,6 @@ void sort_extable(struct exception_table_entry *start, - void sort_main_extable(void); - void trim_init_extable(struct module *m); - --#ifdef MODULE --#define MODULE_GENERIC_TABLE(gtype,name) \ --extern const struct gtype##_id __mod_##gtype##_table \ -- __attribute__ ((unused, alias(__stringify(name)))) -- --#else /* !MODULE */ --#define MODULE_GENERIC_TABLE(gtype,name) --#endif -- - /* Generic info of form tag = "info" */ - #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info) - -@@ -142,8 +133,14 @@ extern const struct gtype##_id __mod_##gtype##_table \ - /* What your module does. */ - #define MODULE_DESCRIPTION(_description) MODULE_INFO(description, _description) - --#define MODULE_DEVICE_TABLE(type,name) \ -- MODULE_GENERIC_TABLE(type##__##name##_device, name) -+#ifdef MODULE -+/* Creates an alias so file2alias.c can find device table. */ -+#define MODULE_DEVICE_TABLE(type, name) \ -+ extern const struct type##_device_id __mod_##type##__##name##_device_table \ -+ __attribute__ ((unused, alias(__stringify(name)))) -+#else /* !MODULE */ -+#define MODULE_DEVICE_TABLE(type, name) -+#endif - - /* Version of form [:][-]. - Or for CVS/RCS ID version, everything but the number is stripped. --- -2.5.0 - diff --git a/recipes-kernel/linux/linux-qoriq/only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch b/recipes-kernel/linux/linux-qoriq/only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch new file mode 100644 index 0000000..5f3220d --- /dev/null +++ b/recipes-kernel/linux/linux-qoriq/only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch @@ -0,0 +1,32 @@ +From 15895f6880829ee502f0a48412173fb452b23c0b Mon Sep 17 00:00:00 2001 +From: Ting Liu +Date: Fri, 17 Jun 2016 10:57:35 +0800 +Subject: [PATCH] only set vmpic_msi_feature if CONFIG_EPAPR_PARAVIRT defined + +Upstream-Status: Pending + +Signed-off-by: Ting Liu +--- + arch/powerpc/sysdev/fsl_msi.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c +index 963661a..95d7111 100644 +--- a/arch/powerpc/sysdev/fsl_msi.c ++++ b/arch/powerpc/sysdev/fsl_msi.c +@@ -658,10 +658,12 @@ static const struct fsl_msi_feature ipic_msi_feature = { + .msiir_offset = 0x38, + }; + ++#ifdef CONFIG_EPAPR_PARAVIRT + static const struct fsl_msi_feature vmpic_msi_feature = { + .fsl_pic_ip = FSL_PIC_IP_VMPIC, + .msiir_offset = 0, + }; ++#endif + + static const struct of_device_id fsl_of_msi_ids[] = { + { +-- +1.9.2 + diff --git a/recipes-kernel/linux/linux-qoriq_3.12.bb b/recipes-kernel/linux/linux-qoriq_4.1.bb similarity index 62% rename from recipes-kernel/linux/linux-qoriq_3.12.bb rename to recipes-kernel/linux/linux-qoriq_4.1.bb index 5d89255..ce67c4d 100644 --- a/recipes-kernel/linux/linux-qoriq_3.12.bb +++ b/recipes-kernel/linux/linux-qoriq_4.1.bb @@ -1,43 +1,40 @@ -inherit kernel kernel-arch qoriq_build_64bit_kernel -inherit fsl-kernel-localversion +inherit kernel qoriq_build_64bit_kernel require recipes-kernel/linux/linux-dtb.inc -DESCRIPTION = "Linux kernel for Freescale platforms" +SUMMARY = "Linux Kernel for Freescale QorIQ platforms" +SECTION = "kernel" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" -SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;branch=sdk-v1.9.x \ +SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;branch=sdk-v2.0.x \ file://modify-defconfig-t1040-nr-cpus.patch \ - file://net-sctp-CVE-2014-0101.patch \ - file://0001-ARM-8158-LLVMLinux-use-static-inline-in-ARM-ftrace.patch \ - file://0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline.patch \ file://0003-use-static-inline-in-ARM-lifeboot.h.patch \ - file://0001-powerpc-Align-TOC-to-256-bytes.patch \ file://fix-the-compile-issue-under-gcc6.patch \ - file://module-remove-MODULE_GENERIC_TABLE.patch \ + file://only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch \ " -SRCREV = "43cecda943a6c40a833b588801b0929e8bd48813" +SRCREV = "bd51baffc04ecc73f933aee1c3a37c8b44b889a7" S = "${WORKDIR}/git" -DEPENDS_append = " libgcc" -# not put uImage into /boot of rootfs, install kernel-image if needed +DEPENDS_append = " libgcc dtc-native" +# not put Images into /boot of rootfs, install kernel-image if needed RDEPENDS_kernel-base = "" KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" - KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" + ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" ZIMAGE_BASE_NAME[vardepsexclude] = "DATETIME" SCMVERSION ?= "y" -LOCALVERSION = "" DELTA_KERNEL_DEFCONFIG ?= "" - +DELTA_KERNEL_DEFCONFIG_prepend_fsl-lsch2 = "freescale.config " +DELTA_KERNEL_DEFCONFIG_prepend_fsl-lsch3 = "freescale.config " do_configure_prepend() { # copy desired defconfig so we pick it up for the real kernel_do_configure - cp ${KERNEL_DEFCONFIG} .config + cp ${KERNEL_DEFCONFIG} ${B}/.config + # add config fragments for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do if [ -f "${deltacfg}" ]; then @@ -46,14 +43,25 @@ do_configure_prepend() { ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg} elif [ -f "${S}/arch/${ARCH}/configs/${deltacfg}" ]; then ${S}/scripts/kconfig/merge_config.sh -m .config \ - ${S}/arch/powerpc/configs/${deltacfg} + ${S}/arch/${ARCH}/configs/${deltacfg} fi done - cp .config ${WORKDIR}/defconfig + + #add git revision to the local version + if [ "${SCMVERSION}" = "y" ]; then + # append sdk version if SDK_VERSION is defined + sdkversion='' + if [ -n "${SDK_VERSION}" ]; then + sdkversion="-${SDK_VERSION}" + fi + head=`git --git-dir=${S}/.git rev-parse --verify --short HEAD 2> /dev/null` + printf "%s%s%s%s" +sdk $sdkversion +g $head > ${B}/.scmversion + fi } do_install_append_qoriq-arm() { install -m 0644 arch/${ARCH}/boot/zImage ${D}/boot/zImage-${KERNEL_VERSION} + ln -sf zImage-${KERNEL_VERSION} ${D}/boot/zImage } do_deploy_append_qoriq-arm() { @@ -63,6 +71,4 @@ do_deploy_append_qoriq-arm() { } FILES_kernel-image += "/boot/zImage*" - -# make everything compatible for the time being COMPATIBLE_MACHINE = "(qoriq)" -- 1.9.2