Commit Graph

1045466 Commits

Author SHA1 Message Date
Daniel Mentz
a71e480e82 ANDROID: build.config: Set DTC to absolute path
The device tree compiler specified by $(DTC) is actually used as a
prerequisite for the following .dtb makefile rule:

$(obj)/%.dtb: $(src)/%.dts $(DTC) FORCE

Ensure that it's set to an absolute path so that make can actually find
it. Otherwise, make will not instantiate that rule, because it can't
find dtc.

Bug: 198176779
Fixes: 023411cbe9 ("ANDROID: Use DTC from the hermetic toolchain")
Signed-off-by: Daniel Mentz <danielmentz@google.com>
Change-Id: I4e190192b39c4cf18c6412cc85895ed1ce2ec6dd
2021-09-17 18:06:27 +00:00
Maciej Żenczykowski
c510b49c5d ANDROID: gki - CONFIG_USB_NET_AX8817X=y
Found an Apple Ethernet USB dongle which only works on older
Pixels, but not on newer ones.

Test: TreeHugger
Bug: 200269356
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Id366434cc0a41f5e7e8f336dbdb854c7c117b35d
2021-09-17 13:54:43 +00:00
Biao Li
cad4f67e5b ANDROID: fuse: Allocate zeroed memory for canonical path
The page used to contain the fuse_dentry_canonical_path to be handled in
fuse_dev_do_write is allocated using __get_free_pages(GFP_KERNEL).
The returned page may contain undefined data, that by chance may be
considered as a valid path name that is not in the cache. In that case,
if the FUSE daemon mistakenly doesn't fill the canonical path buffer,
the FUSE driver may fall into two blocking

  request_wait_answer(fuse_dev_write->kern_path->fuse_lookup_name)

causing a deadlock condition.

The stack is as follows:
find            S    0 20511  20117 0x00000000
Call trace:
[<ffffff8008085e78>] __switch_to+0xb8/0xd4
[<ffffff8008a0cac4>] __schedule+0x458/0x714
[<ffffff8008a0ce0c>] schedule+0x8c/0xa8
[<ffffff800833865c>] request_wait_answer+0x74/0x220
[<ffffff8008339f70>] __fuse_request_send+0x8c/0xa0
[<ffffff8008339fe4>] fuse_request_send+0x60/0x6c
[<ffffff800833c1a8>] fuse_dentry_canonical_path+0xb8/0x104
[<ffffff800820b14c>] do_sys_open+0x1b4/0x260
[<ffffff800820b27c>] SyS_openat+0x3c/0x4c
[<ffffff8008083540>] el0_svc_naked+0x34/0x38
mount.ntfs-3g   S    0  5845      1 0x00000000
Call trace:
[<ffffff8008085e78>] __switch_to+0xb8/0xd4
[<ffffff8008a0cac4>] __schedule+0x458/0x714
[<ffffff8008a0ce0c>] schedule+0x8c/0xa8
[<ffffff800833865c>] request_wait_answer+0x74/0x220
[<ffffff8008339f70>] __fuse_request_send+0x8c/0xa0
[<ffffff8008339fe4>] fuse_request_send+0x60/0x6c
[<ffffff800833bdb0>] fuse_simple_request+0x128/0x16c
[<ffffff800833dddc>] fuse_lookup_name+0x104/0x1b0
[<ffffff800833dee4>] fuse_lookup+0x5c/0x11c
[<ffffff800821861c>] lookup_slow+0xfc/0x174
[<ffffff800821b474>] walk_component+0xf0/0x290
[<ffffff800821bbac>] path_lookupat+0xa0/0x128
[<ffffff800821c7f4>] filename_lookup+0x84/0x124
[<ffffff800821c8d8>] kern_path+0x44/0x54
[<ffffff800833b0c8>] fuse_dev_do_write+0x828/0xa0c
[<ffffff800833b610>] fuse_dev_write+0x90/0xb4
[<ffffff800820b770>] do_iter_readv_writev+0xf4/0x13c
[<ffffff800820cc88>] do_readv_writev+0xec/0x220
[<ffffff800820d05c>] vfs_writev+0x60/0x74
[<ffffff800820d0ec>] do_writev+0x7c/0x100
[<ffffff800820e348>] SyS_writev+0x38/0x48
[<ffffff8008083540>] el0_svc_naked+0x34/0x38

Fix by ensuring that the page allocated for the canonical path is zeroed.

Bug: 194856119
Bug: 196051870
Fixes: 24ab59f6bb42 ("ANDROID: fuse: Add support for d_canonical_path")
Signed-off-by: Biao Li <libiao@allwinnertech.com>
Signed-off-by: Shuosheng Huang <huangshuosheng@allwinnertech.com>
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I400815dc1049d90c308f5cf87ce60de97ff82131
2021-09-17 11:08:21 +01:00
Matthias Maennich
436688c6f3 ANDROID: pause DrNo for maennich@ due to OOO
Bug: 000
Change-Id: I4f4f5e729f44770024e255554409f79cd3a98a40
Signed-off-by: Matthias Maennich <maennich@google.com>
2021-09-17 08:57:24 +00:00
Greg Kroah-Hartman
e74ef7cf8f Merge tag 'v5.15-rc1' into android-mainline
Linux 5.15-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ib4933c598d27b18268860e7549966ef7724652fc
2021-09-16 09:51:19 +02:00
Greg Kroah-Hartman
936699ade8 ANDROID: disable INFINIBAND_QIB from allmodconfig build
Clang can't seem to build this driver in the 5.15-rc1 release, so
disable it until either the kernel code is changed, or the compiler is
fixed up.

Full discussion upstream can be found at:
	https://lore.kernel.org/r/202109112002.NZceUwiC-lkp@intel.com

and at:
	https://github.com/ClangBuiltLinux/linux/issues/1452

Fixes: 6880fa6c56 ("Linux 5.15-rc1")
Cc: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I5d55f40ce5b783d1212e6c649eb6c7799c6be100
2021-09-16 09:48:47 +02:00
Miles Chen
e930fc6535 FROMLIST: scripts/sorttable: riscv: fix undelcred identifier 'EM_RISCV' error
Fix the following build break by adding a conditional definition
of EM_RISCV in order to allow cross-compilation on machines
which do not have EM_RISCV definition in their host.

build break log from [1]:
scripts/sorttable.c:352:7: error: use of undeclared identifier 'EM_RISCV'

[1] https://lore.kernel.org/lkml/e8965b25-f15b-c7b4-748c-d207dda9c8e8@i2se.com/

Fixes: 54fed35fd3 ("riscv: Enable BUILDTIME_TABLE_SORT")
Cc: Jisheng Zhang <jszhang@kernel.org>
Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Link: https://lore.kernel.org/r/20210913030625.4525-1-miles.chen@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I597d91c741bfcc0e879908e4e0c8aa114b9ccda4
2021-09-16 09:19:17 +02:00
Steve Muckle
544114d973 ANDROID: align include/net, net/ TEST_MAPPING config with platform
The configuration for CtsNetTestCases has an exclude-annotation in the
platform TEST_MAPPING.

Bug: 199933857
Change-Id: I7219518b21c8678c9f70b6f0b0eb8dd3a5468f00
Signed-off-by: Steve Muckle <smuckle@google.com>
2021-09-15 18:14:38 +00:00
Greg Kroah-Hartman
c0d1ebaba1 Merge 2d338201d5 ("Merge branch 'akpm' (patches from Andrew)") into android-mainline
Steps on the way to 5.15-rc1

Resolves merge conflict in:
	fs/proc/base.c

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ic554ca8447961e52fbc6f27d91470a816b59a771
2021-09-15 14:34:48 +02:00
Greg Kroah-Hartman
2febafed49 Merge cc09ee80c3 ("Merge tag 'mm-slub-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I8fd7a6384a9cc7b6c607d755150accbcfa07fb6b
2021-09-15 14:32:12 +02:00
Greg Kroah-Hartman
58ec8f8eaf Revert "ANDROID: mm: add get_each_object_track function"
This reverts commit 1fb8e678a5.

It causes build errors in 5.15-rc1 and there are no in-kernel users of
this api so remove it.  If it is needed, someone can easily add a
working version of it back.

Bug: 177377077
Cc: Vijayanand Jitta <vjitta@codeaurora.org>
Cc: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I74fe57124b74e9695636d139b1f548b69fbc9039
2021-09-15 14:28:13 +02:00
Greg Kroah-Hartman
f318f4a0d7 Merge ac08b1c68d ("Merge tag 'pci-v5.15-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci") into android-mainline
Steps on the way to 5.15-rc1

Resolves merge conflicts in:
	init/Kconfig

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie57720dd32785337c938b5815719a71750710240
2021-09-15 12:16:41 +02:00
Greg Kroah-Hartman
ab9ab647e5 Merge 626bf91a29 ("Merge tag 'net-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I679be256fdc4432bdd97eba340694176ce403109
2021-09-15 12:08:30 +02:00
Greg Kroah-Hartman
c47abe0f1f Merge 2d7b4cdbb5 ("Merge tag 'backlight-next-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I6395e9878d60dbb4c0faf23b49ad05f697f80b72
2021-09-15 08:46:31 +02:00
Greg Kroah-Hartman
df30793b7c ANDROID: fix export made in "Revert "genirq: Restrict export of irq_to_desc()""
In commit 2cb5bf9e38 ("Revert "genirq: Restrict export of
irq_to_desc()"") the ability for the symbol to be exported was restored,
but the _GPL marking was removed for some reason.  As Android exports
always need to be _GPL, restore the _GPL marking of irq_to_desc() to
follow that rule, and to be synced with what is done upstream at the
same time.

Bug: 199823932
Fixes: 2cb5bf9e38 ("Revert "genirq: Restrict export of irq_to_desc()"")
Cc: Huang Yiwei <hyiwei@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ib4e8d060805c8f59f9737abb77fc98e221e17a43
2021-09-15 08:43:06 +02:00
Huang Yiwei
2cb5bf9e38 Revert "genirq: Restrict export of irq_to_desc()"
This reverts commit 64a1b95bb9 and
commit 11cc92eb74.

Commit 64a1b95bb9 ("genirq: Restrict export of irq_to_desc()") removed
the export of irq_to_desc() and commit 11cc92eb74 ("genirq: Fix export
of irq_to_desc() for powerpc KVM") added it back with the powerpc KVM
limitation. But there's still some usage in GKI kernel modules, so
revert both two commits.

Bug: 199823932
Signed-off-by: Huang Yiwei <hyiwei@codeaurora.org>
Change-Id: I3f871ecb5bc002c8643b4ddd3137a6899ac77b4f
2021-09-15 10:54:24 +08:00
Greg Kroah-Hartman
c90859e710 Merge 75b96f0ec5 ("Merge tag 'fuse-update-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse") into android-mainline
Steps on the way to 5.15-rc1

Fixes merge conflicts in:
	fs/fuse/fuse_i.h

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I93de6ed588fbcb01ab0d81089839f47459ec1b82
2021-09-14 18:43:39 +02:00
Greg Kroah-Hartman
5606699789 Merge 996fe06160 ("Merge tag 'kgdb-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux") into android-mainline
Steps on the way to 5.15-rc1

Change-Id: I3806b714a5a783a7132b1daf766ebb71985fc640
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2021-09-14 16:16:54 +02:00
Greg Kroah-Hartman
3fdfb2622c Merge 063df71a57 ("Merge tag 'riscv-for-linus-5.15-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: I9e05cbe70655511a78e43fc4dc0d999bc84efe03
2021-09-14 16:13:24 +02:00
Greg Kroah-Hartman
828bab93de ANDROID: Revert "Enable '-Werror' by default for all kernel builds"
This reverts commit 3fe617ccaf.

Right now the android build system can not work properly for some of the
builds forcing this option on for them as they still have warnings.

So revert it for now, we will remove this later on, hopefully before
5.15-final is out, after all of the build warnings are cleaned up.

Bug: 199872592
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7e6a0ebb76ab2876cb180214911c1c25b0904a23
2021-09-14 15:52:29 +02:00
Greg Kroah-Hartman
ed3fcb2c28 Merge 3fe617ccaf ("Enable '-Werror' by default for all kernel builds") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I0cb711ea7aab52e2670192f1a03ca9fbe9d4c166
2021-09-14 14:43:56 +02:00
Greg Kroah-Hartman
c5cd945b24 Merge fd47ff55c9 ("Merge tag 'usb-5.15-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb") into android-mainline
Steps on the way to 5.15-rc1.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I42ffa8818bbb2072f043923553c4d8f91d9647a5
2021-09-14 14:42:51 +02:00
Greg Kroah-Hartman
6ca04bd7ae Merge b250e6d141 ("Merge tag 'kbuild-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild") into android-mainline
Steps on the way to 5.15-rc1

Fixed up merge conflicts in:
	scripts/Makefile.modfinal

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I3a916b7267fc2e4ed2f2bd308b9cff8ca9430660
2021-09-14 14:41:11 +02:00
Greg Kroah-Hartman
c2b303f98f Merge 4e71add028 ("Merge branch 'stable/for-linus-5.15-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ib3f181326491eb896547d802a6f0a1b3be54ce28
2021-09-14 14:35:23 +02:00
Greg Kroah-Hartman
5febb590b7 Merge a9c9a6f741 ("Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi") into android-mainline
Steps on the way to 5.15-rc1

Resolved merge issues in:
	drivers/scsi/ufs/ufshcd.c

and build issues in:
	drivers/scsi/ufs/ufshcd.c
	drivers/scsi/ufs/ufshcd-crypto.h

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I4d4887e9d391f63308d856d8c1c6e40bc61f1bca
2021-09-14 12:57:12 +02:00
Greg Kroah-Hartman
2ce2c73874 Merge 23852bec53 ("Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: Ibb3f898441b2b7d00429b23f2d160d1630fd2900
2021-09-14 08:46:39 +02:00
Greg Kroah-Hartman
1722b767c2 Merge 83ec916974 ("Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: I240590f7795480d60eadb680ef481c1e1ea09ccd
2021-09-14 08:46:39 +02:00
Greg Kroah-Hartman
08d9f56929 Merge c793011242 ("Merge tag 'pinctrl-v5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: I3a68b98664d50a74185e1d49b08504c7db70268d
2021-09-14 08:46:39 +02:00
Greg Kroah-Hartman
d218ba46de Merge 75d6e7d9ce ("Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: Ic3274a33a652b5098a4eb98470f1d88fdf393184
2021-09-14 08:46:39 +02:00
Greg Kroah-Hartman
19ee570bb3 Merge a180eab0b5 ("Merge tag 'mailbox-v5.15' of git://git.linaro.org/landing-teams/working/fujitsu/integration") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: Idd041c31b26e0a145b7e8205e0dfa3d5e9d8e7c5
2021-09-14 08:46:38 +02:00
Greg Kroah-Hartman
6a4b4e7ccc Merge 7ba88a2a09 ("Merge tag 'platform-drivers-x86-v5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: I88e71984b0739793f6dfee49e258b64170b7bfb0
2021-09-14 08:46:38 +02:00
Greg Kroah-Hartman
5d35041cc9 Merge 89b6b8cd92 ("Merge tag 'vfio-v5.15-rc1' of git://github.com/awilliam/linux-vfio") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: I89e919137980b4bbcb9933f34444a3c5cb5c1dba
2021-09-14 08:46:38 +02:00
Greg Kroah-Hartman
554175e889 Merge 9ae5fceb9a ("Merge tag 'for-linus-5.15-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: I67d916260184b8081fe1c50d1a5643ea87db28af
2021-09-14 08:46:38 +02:00
Greg Kroah-Hartman
85f6eeae3a Merge a2d616b935 ("Merge tag 'for-5.15/parisc' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: I6ff9875d658da843791fe2191e358b80d924ef1e
2021-09-14 08:46:37 +02:00
Greg Kroah-Hartman
3794f87061 Merge b5d6d2633c ("Merge tag 'xtensa-20210902' of git://github.com/jcmvbkbc/linux-xtensa") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: I342febb7be9a03b3011692778dc87031d47c668a
2021-09-14 08:43:38 +02:00
Greg Kroah-Hartman
ad7bb67719 Merge aa829778b1 ("Merge tag 'locking-debug-2021-09-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: I8327eff61850d42d95ded8e6ab3ecc6340f3c081
2021-09-14 08:42:35 +02:00
Greg Kroah-Hartman
5750dc3b69 Merge aef4892a63 ("Merge tag 'integrity-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: Ibe55957e72443ff49bdbf2ebf41bf1149df293c2
2021-09-14 08:42:24 +02:00
Greg Kroah-Hartman
2a31b47318 ANDROID: GKI: remove CONFIG_INIT_STACK_ALL_ZERO from gki_defconfig
Thanks to commit dcb7c0b946 ("hardening: Clarify Kconfig text for
auto-var-init"), CONFIG_INIT_STACK_ALL_ZERO is now automatically
selected depending on the compiler's support for it, so it is not longer
needed to explicitly enable it in the config file.

Fixes: dcb7c0b946 ("hardening: Clarify Kconfig text for auto-var-init")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I9df386f22d3a24ae0f9ab4da2e0ab35277a48f17
2021-09-14 08:39:05 +02:00
Greg Kroah-Hartman
9d74691f8f Merge b55060d796 ("Merge tag 'hardening-v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: If53fa9c2f2306ae7193963cac1086e4805a871ba
2021-09-14 08:38:52 +02:00
Greg Kroah-Hartman
897ef22bc3 Merge c815f04ba9 ("Merge tag 'linux-kselftest-kunit-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: Ic965cc2c727a74c3e0d8319b8d35bb446e46e9e1
2021-09-14 08:38:27 +02:00
Greg Kroah-Hartman
42820acb67 Merge 612b23f277 ("Merge tag 'memblock-v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: Idc7a0edc74ac160c26a00e38f80dd5fb51d69c97
2021-09-14 08:38:16 +02:00
Greg Kroah-Hartman
ef029941e4 Merge 4a3bb4200a ("Merge tag 'dma-mapping-5.15' of git://git.infradead.org/users/hch/dma-mapping") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by Greg Kroah-Hartman <gregkh@google.com>

Change-Id: Iaba56dab0582bdf01a2f87c53f0bdb2ab6281f04
2021-09-14 08:38:06 +02:00
Sami Tolvanen
2e05fcdfd4 ANDROID: virtio: disable virtio_dma_buf callback checks with CFI
CONFIG_CFI_CLANG breaks cross-module function address equality, which
breaks virtio_dma_buf as it compares a locally taken function address to
a one passed from a different module. Remove these sanity checks for now
to allow Cuttlefish to boot with CFI.

Bug: 178495907
Bug: 199547335
Change-Id: I508e2fa9e3ddd888dc2fdb743cec20a400eaf1f5
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Alistair Delva <adelva@google.com>
2021-09-13 18:32:57 +00:00
Nick Desaulniers
8f7cfec1cc ANDROID: clang: update to 13.0.2
Bug: 199534745
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I54d76cfe5f6b7c4cb3880c7d19143765d3a4e15c
2021-09-13 18:21:33 +00:00
Will Deacon
4d1eda771e FROMLIST: x86/uaccess: Fix 32-bit __get_user_asm_u64() when CC_HAS_ASM_GOTO_OUTPUT=y
Commit 865c50e1d2 ("x86/uaccess: utilize CONFIG_CC_HAS_ASM_GOTO_OUTPUT")
added an optimised version of __get_user_asm() for x86 using 'asm goto'.

Like the non-optimised code, the 32-bit implementation of 64-bit get_user()
expands to a pair of 32-bit accesses. Unlike the non-optimised code, the
_original_ pointer is incremented to copy the high word instead of loading
through a new pointer explicitly constructed to point at a 32-bit type.
Consequently, if the pointer points at a 64-bit type then we end up
loading the wrong data for the upper 32-bits.

This was observed as a mount() failure in Android targetting i686 after
b0cfcdd9b9 ("d_path: make 'prepend()' fill up the buffer exactly on
overflow") because the call to copy_from_kernel_nofault() from
prepend_copy() ends up in __get_kernel_nofault() and casts the source
pointer to a 'u64 __user *'. An attempt to mount at "/debug_ramdisk"
therefore ends up failing trying to mount "/debumdismdisk".

Use the existing '__gu_ptr' source pointer to unsigned int for 32-bit
__get_user_asm_u64() instead of the original pointer.

Fixes: 865c50e1d2 ("x86/uaccess: utilize CONFIG_CC_HAS_ASM_GOTO_OUTPUT")
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Bill Wendling <morbo@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210913163547.5156-1-will@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I652ecff43caf258bd0aa31e52fdd58f9461b9e46
2021-09-13 18:50:39 +02:00
Greg Kroah-Hartman
6e6c6d4507 Merge eceae1e7ac ("Merge tag 'configfs-5.15' of git://git.infradead.org/users/hch/configfs") into android-mainline
Steps on the way to 5.15-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I16f274bd00ea5b510bdcf8c7a5d694fe60bbdd4e
2021-09-13 10:54:52 +02:00
Linus Torvalds
6880fa6c56 Linux 5.15-rc1 2021-09-12 16:28:37 -07:00
Linus Torvalds
b5b65f1398 Merge tag 'perf-tools-for-v5.15-2021-09-11' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
Pull more perf tools updates from Arnaldo Carvalho de Melo:

 - Add missing fields and remove some duplicate fields when printing a
   perf_event_attr.

 - Fix hybrid config terms list corruption.

 - Update kernel header copies, some resulted in new kernel features
   being automagically added to 'perf trace' syscall/tracepoint argument
   id->string translators.

 - Add a file generated during the documentation build to .gitignore.

 - Add an option to build without libbfd, as some distros, like Debian
   consider its ABI unstable.

 - Add support to print a textual representation of IBS raw sample data
   in 'perf report'.

 - Fix bpf 'perf test' sample mismatch reporting

 - Fix passing arguments to stackcollapse report in a 'perf script'
   python script.

 - Allow build-id with trailing zeros.

 - Look for ImageBase in PE file to compute .text offset.

* tag 'perf-tools-for-v5.15-2021-09-11' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: (25 commits)
  tools headers UAPI: Update tools's copy of drm.h headers
  tools headers UAPI: Sync drm/i915_drm.h with the kernel sources
  tools headers UAPI: Sync linux/fs.h with the kernel sources
  tools headers UAPI: Sync linux/in.h copy with the kernel sources
  perf tools: Add an option to build without libbfd
  perf tools: Allow build-id with trailing zeros
  perf tools: Fix hybrid config terms list corruption
  perf tools: Factor out copy_config_terms() and free_config_terms()
  perf tools: Fix perf_event_attr__fprintf() missing/dupl. fields
  perf tools: Ignore Documentation dependency file
  perf bpf: Provide a weak btf__load_from_kernel_by_id() for older libbpf versions
  tools include UAPI: Update linux/mount.h copy
  perf beauty: Cover more flags in the  move_mount syscall argument beautifier
  tools headers UAPI: Sync linux/prctl.h with the kernel sources
  tools include UAPI: Sync sound/asound.h copy with the kernel sources
  tools headers UAPI: Sync linux/kvm.h with the kernel sources
  tools headers UAPI: Sync x86's asm/kvm.h with the kernel sources
  perf report: Add support to print a textual representation of IBS raw sample data
  perf report: Add tools/arch/x86/include/asm/amd-ibs.h
  perf env: Add perf_env__cpuid, perf_env__{nr_}pmu_mappings
  ...
2021-09-12 16:18:15 -07:00
Linus Torvalds
c3e46874df Merge tag 'compiler-attributes-for-linus-v5.15-rc1-v2' of git://github.com/ojeda/linux
Pull compiler attributes updates from Miguel Ojeda:

 - Fix __has_attribute(__no_sanitize_coverage__) for GCC 4 (Marco Elver)

 - Add Nick as Reviewer for compiler_attributes.h (Nick Desaulniers)

 - Move __compiletime_{error|warning} (Nick Desaulniers)

* tag 'compiler-attributes-for-linus-v5.15-rc1-v2' of git://github.com/ojeda/linux:
  compiler_attributes.h: move __compiletime_{error|warning}
  MAINTAINERS: add Nick as Reviewer for compiler_attributes.h
  Compiler Attributes: fix __has_attribute(__no_sanitize_coverage__) for GCC 4
2021-09-12 16:09:26 -07:00
Linus Torvalds
d41adc4e22 Merge tag 'auxdisplay-for-linus-v5.15-rc1' of git://github.com/ojeda/linux
Pull auxdisplay updates from Miguel Ojeda:
 "An assortment of improvements for auxdisplay:

   - Replace symbolic permissions with octal permissions (Jinchao Wang)

   - ks0108: Switch to use module_parport_driver() (Andy Shevchenko)

   - charlcd: Drop unneeded initializers and switch to C99 style (Andy
     Shevchenko)

   - hd44780: Fix oops on module unloading (Lars Poeschel)

   - Add I2C gpio expander example (Ralf Schlatterbeck)"

* tag 'auxdisplay-for-linus-v5.15-rc1' of git://github.com/ojeda/linux:
  auxdisplay: Replace symbolic permissions with octal permissions
  auxdisplay: ks0108: Switch to use module_parport_driver()
  auxdisplay: charlcd: Drop unneeded initializers and switch to C99 style
  auxdisplay: hd44780: Fix oops on module unloading
  auxdisplay: Add I2C gpio expander example
2021-09-12 16:00:49 -07:00