Received: by 10.223.176.5 with SMTP id f5csp3243146wra; Mon, 29 Jan 2018 10:39:05 -0800 (PST) X-Google-Smtp-Source: AH8x226kIq9szAKW2Gozs/vz7hT2ntYlFJGWAC683/x3v/tGZAlPi0elynDnGHYHgcG7Fm/+oMmp X-Received: by 2002:a17:902:7597:: with SMTP id j23-v6mr13308395pll.191.1517251144920; Mon, 29 Jan 2018 10:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517251144; cv=none; d=google.com; s=arc-20160816; b=up44sXdx4Irnke0WqgimP5uHSSmZb5+47383hHA5rE9BOouZSn+kzqvzzJPl98hTBi B20jfzCIfhK20TxnL2JSG0RSWcZdJvC3VnoNPyPfKsfuOul5UMq+BpbiRwlqgGnsSD8P EX8s9JDvQq9m2WU1VFqW2753P8KWOvd1pNJmaNAtfiVszDl/mCKnlor8UxABjv+F+tll O1SKaoDxq41wpSxk2c/hf4HhegKRHOnl+NYrUBAPimg6ejpWjo6UsuVXGC2RBmzmhzGz O05C2TGeozPbtQdM2Thmrp9gnhfEOhXNUM8xaeOKhupqEMvtbzJYUC3BsUqAcjDr2lOj 1MAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Y8r0OHq4DW9IA+Z/MtdjnpbpKzGZ8QDn4elfeSU61GE=; b=Z4kAG/4YXAWxC2eqW53I3055P8p+vn9llM5TvL+SJft/14XWWJo0oiN9d6OkX9Cwb/ Y5rONOBPcFFzd6AO8xfY9EOLy6Z4paK7v5Ua1KT5Q8G4ny7pY6z3qNVNx7gdSLj1L0Nn +n2RMHsu5ytN6b+ogu3wIZK8vnEpE/7v+j1JXLdcofvrRWL53ddoPVOr/JHIEa5095d1 7CGrKWiHXHp7EX26ymtdSs5J4rnxIQmhIEgfxhB5mTCuHLriXR7/bP0yzEpjTbzUU3pY m71MEqIbxGS71uV+LHMQywC6GWQoo8cL329cDF+gR5om9+N4l7Y0BR1XufwdoSi1KxlG srUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vLgdsXb+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b63si12417661pfe.50.2018.01.29.10.38.50; Mon, 29 Jan 2018 10:39:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vLgdsXb+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751505AbeA2Si1 (ORCPT + 99 others); Mon, 29 Jan 2018 13:38:27 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:47095 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751301AbeA2Si0 (ORCPT ); Mon, 29 Jan 2018 13:38:26 -0500 Received: by mail-lf0-f65.google.com with SMTP id q194so11452043lfe.13 for ; Mon, 29 Jan 2018 10:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Y8r0OHq4DW9IA+Z/MtdjnpbpKzGZ8QDn4elfeSU61GE=; b=vLgdsXb+fFkqi1GAPvDsZHwyxyzeIHvy60DrBVYe7YTtPxGAwEAdGftbSOr1scpsHE KJitixgcDkBWERg5Ie5kC1A6EV6ZNgffk7t2BVWysuI362xE8eGKUZ9D+TBhWj9fi8kq D9bWOFntYqHsXWXYcoyVbUJzKBiT6dL9PwSk8FL36hnublgqmOBI1Ixoo7BwfbLVsBmn 6Ixgxg4fVRD2lME3OLidLsVLirNkHtBDW9581bayuB0ZILPJEz+hosXDgILVfJuyB92+ JLnv4vX0v3PUY1YQY05DiF8JpxNWDFZc5Uti64hTSn1gve4+hBM22tRPh20p1m7lWKWr sdTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Y8r0OHq4DW9IA+Z/MtdjnpbpKzGZ8QDn4elfeSU61GE=; b=gsAzJzhNzdNOf5wOkvPgH5ZyD3iRqrqQfGE15bBILNSpm9v2zLZvsiptIDM747zNh/ YVW54d7QM3qOT9e+wFZAkEHmoMAcvFXa9s3ssbOGvKpW4Tc5AgYHtdNOuWTYUS0lswGc vJ0leiZfyKPckvYOGEdpltGG1DSUNY3AD+wjyP+VS537a1ORVIKI7wTKXxvdvGOunEw8 mE3rISlqXNJiInvY6a+xi+b+XLvo38OYBdV0RRlS4a7MuZYCrVtKDOUi6mF13gLx6cPZ dVXxL3wFiAER/wa3vg/rpCjoQAVkaBUimGdIBocTLV2tyHa/hJX7LkCymQT957eeAmZS GXVA== X-Gm-Message-State: AKwxytdOg8mVhr81BGLjY+1/63h0aUrZSXQ5FwycC5s27UaGsc9sBtdv ovwblRb1dwWwoMpDv5i7aRA= X-Received: by 10.46.71.149 with SMTP id u143mr15194327lja.12.1517251104403; Mon, 29 Jan 2018 10:38:24 -0800 (PST) Received: from octofox.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id h76sm84559ljh.77.2018.01.29.10.38.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Jan 2018 10:38:23 -0800 (PST) From: Max Filippov To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-xtensa@linux-xtensa.org, Chris Zankel , Max Filippov Subject: [PULL 00/21] Xtensa improvements for v4.16 Date: Mon, 29 Jan 2018 10:38:09 -0800 Message-Id: <1517251089-17683-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, please pull the following batch of updates for the Xtensa architecture. There's a simple merge conflict in the Documentation/features/debug/KASAN/arch-support.txt The following changes since commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4: Linux 4.14 (2017-11-12 10:46:13 -0800) are available in the git repository at: git://github.com/jcmvbkbc/linux-xtensa.git tags/xtensa-20180129 for you to fetch changes up to ca47480921587ae30417dd234a9f79af188e3666: xtensa: fix futex_atomic_cmpxchg_inatomic (2018-01-05 15:55:59 -0800) ---------------------------------------------------------------- Xtensa improvements for v4.16: - add SSP support; - add KASAN support; - improvements to xtensa-specific assembly: - use ENTRY and ENDPROC consistently; - clean up and unify word alignment macros; - clean up and unify fixup marking; - use 'call' instead of 'callx' where possible; - various cleanups: - consiolidate kernel stack size related definitions; - replace #ifdef'fed/commented out debug printk statements with pr_debug; - use struct exc_table instead of flat array for exception handling data; - build kernel with -mtext-section-literals; simplify xtensa linker script; - fix futex_atomic_cmpxchg_inatomic. ---------------------------------------------------------------- Arnd Bergmann (1): xtensa: shut up gcc-8 warnings Max Filippov (20): xtensa: add -mno-serialize-volatile to CFLAGS xtensa: build kernel with text-section-literals xtensa: use call instead of callx in assembly code xtensa: clean up fixups in assembly code xtensa: clean up word alignment macros in assembly code xtensa: clean up functions in assembly code xtensa: consolidate kernel stack size related definitions xtensa: print hardware config ID on startup xtensa: enable stack protector xtensa: clean up custom-controlled debug output xtensa: clean up exception handling structure xtensa: implement early_trap_init xtensa: extract init_kio xtensa: don't clear swapper_pg_dir in paging_init xtensa: move fixmap and kmap just above the KSEG xtensa: add support for KASAN xtensa: use __memset in __xtensa_clear_user xtensa: use generic strncpy_from_user with KASAN xtensa: print kernel sections info in mem_init xtensa: fix futex_atomic_cmpxchg_inatomic .../features/debug/KASAN/arch-support.txt | 2 +- .../features/debug/stackprotector/arch-support.txt | 2 +- Documentation/xtensa/mmu.txt | 78 ++++++------ arch/xtensa/Kconfig | 7 ++ arch/xtensa/Makefile | 7 +- arch/xtensa/boot/boot-redboot/bootstrap.S | 1 + arch/xtensa/boot/lib/Makefile | 6 + arch/xtensa/include/asm/asmmacro.h | 40 ++++++ arch/xtensa/include/asm/current.h | 4 +- arch/xtensa/include/asm/fixmap.h | 4 +- arch/xtensa/include/asm/futex.h | 23 ++-- arch/xtensa/include/asm/highmem.h | 2 +- arch/xtensa/include/asm/kasan.h | 37 ++++++ arch/xtensa/include/asm/kmem_layout.h | 7 ++ arch/xtensa/include/asm/linkage.h | 9 ++ arch/xtensa/include/asm/mmu_context.h | 1 + arch/xtensa/include/asm/nommu_context.h | 4 + arch/xtensa/include/asm/page.h | 2 - arch/xtensa/include/asm/pgtable.h | 3 +- arch/xtensa/include/asm/ptrace.h | 15 +-- arch/xtensa/include/asm/regs.h | 1 + arch/xtensa/include/asm/stackprotector.h | 40 ++++++ arch/xtensa/include/asm/string.h | 23 +++- arch/xtensa/include/asm/thread_info.h | 13 +- arch/xtensa/include/asm/traps.h | 35 ++++++ arch/xtensa/include/asm/uaccess.h | 9 +- arch/xtensa/kernel/Makefile | 3 - arch/xtensa/kernel/align.S | 7 +- arch/xtensa/kernel/asm-offsets.c | 16 +++ arch/xtensa/kernel/coprocessor.S | 3 +- arch/xtensa/kernel/entry.S | 103 ++++++--------- arch/xtensa/kernel/head.S | 10 +- arch/xtensa/kernel/module.c | 19 ++- arch/xtensa/kernel/pci.c | 30 ++--- arch/xtensa/kernel/process.c | 6 + arch/xtensa/kernel/setup.c | 49 +++++--- arch/xtensa/kernel/signal.c | 8 +- arch/xtensa/kernel/traps.c | 64 +++++----- arch/xtensa/kernel/vectors.S | 17 ++- arch/xtensa/kernel/vmlinux.lds.S | 90 ++++---------- arch/xtensa/kernel/xtensa_ksyms.c | 5 + arch/xtensa/lib/checksum.S | 74 +++++------ arch/xtensa/lib/memcopy.S | 81 +++++------- arch/xtensa/lib/memset.S | 45 +++---- arch/xtensa/lib/pci-auto.c | 45 ++----- arch/xtensa/lib/strncpy_user.S | 60 ++++----- arch/xtensa/lib/strnlen_user.S | 28 ++--- arch/xtensa/lib/usercopy.S | 138 +++++++++------------ arch/xtensa/mm/Makefile | 5 + arch/xtensa/mm/cache.c | 3 - arch/xtensa/mm/fault.c | 22 ++-- arch/xtensa/mm/init.c | 36 ++++-- arch/xtensa/mm/kasan_init.c | 95 ++++++++++++++ arch/xtensa/mm/mmu.c | 31 ++--- arch/xtensa/mm/tlb.c | 6 +- arch/xtensa/platforms/iss/console.c | 4 +- arch/xtensa/platforms/iss/network.c | 14 +-- 57 files changed, 829 insertions(+), 663 deletions(-) create mode 100644 arch/xtensa/include/asm/kasan.h create mode 100644 arch/xtensa/include/asm/linkage.h create mode 100644 arch/xtensa/include/asm/stackprotector.h create mode 100644 arch/xtensa/mm/kasan_init.c -- Thanks. -- Max