No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Patrick Daly 7f2403a804 lib: Ignore kasan errors from find_next_bit and last bit
find_next_bit and find_last_bit code operates on the unsigned long *addr,
and without knowing the size of the actual buffer passed to it, Kasan
detects it as invalid Out of Bound read access.

find_next_bit and find_last_bit implementation is very generic
and it need not to be modified for the Kasan, so we are skipping
it from the sanitization.

Following is the Kasan error log for the reference.

  [    1.262524] BUG: KASan: out of bounds access in find_next_bit+0xa4/0xf0 at addr ffffffc00e9af260
  [    1.262534] Read of size 8 by task swapper/0/1
  [    1.262546] page:ffffffbc00920d60 count:0 mapcount:0 mapping:          (null) index:0x0
  [    1.262554] page flags: 0x0()
  [    1.262570] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.49-gef71b0c-00348-g4f06d68-dirty #160
  [    1.262577] Call trace:
  [    1.262594] [<ffffffc00040a2d4>] dump_backtrace+0x0/0x1d4
  [    1.262610] [<ffffffc00040a4b8>] show_stack+0x10/0x1c
  [    1.262625] [<ffffffc000face70>] dump_stack+0x1c/0x28
  [    1.262641] [<ffffffc000552448>] kasan_report_error+0x294/0x3e4
  [    1.262656] [<ffffffc0005526a8>] kasan_report+0x68/0x78
  [    1.262671] [<ffffffc00055169c>] __asan_load8+0x90/0x9c
  [    1.262686] [<ffffffc00076fff8>] find_next_bit+0xa0/0xf0
  [    1.262701] [<ffffffc000de37d0>] bam_pipe_set_desc_write_offset+0xc8/0x378
  [    1.262716] [<ffffffc000e005e4>] sps_bam_pipe_transfer_one+0x6b8/0x70c
  [    1.262730] [<ffffffc000e04f84>] sps_transfer_one+0x230/0x298
  [    1.262746] [<ffffffc000da4c58>] ipa_replenish_rx_cache+0x2e8/0x430
  [    1.262762] [<ffffffc000da891c>] ipa_setup_sys_pipe+0x14a8/0x22bc
  [    1.262779] [<ffffffc000d8a554>] ipa_setup_apps_pipes+0x580/0x6a0
  [    1.262797] [<ffffffc000d91ef0>] ipa_init.constprop.8+0x134c/0x1dd4
  [    1.262814] [<ffffffc000d93038>] ipa_plat_drv_probe+0x6c0/0x720
  [    1.262829] [<ffffffc0009b51e0>] platform_drv_probe+0x2c/0x3c
  [    1.262842] [<ffffffc0009b32d0>] driver_probe_device+0x1f4/0x47c
  [    1.262856] [<ffffffc0009b3644>] __driver_attach+0x88/0xc0
  [    1.262873] [<ffffffc0009b05b4>] bus_for_each_dev+0xdc/0x11c
  [    1.262886] [<ffffffc0009b2a2c>] driver_attach+0x2c/0x3c
  [    1.262903] [<ffffffc0009b237c>] bus_add_driver+0x1bc/0x32c
  [    1.262916] [<ffffffc0009b3eb0>] driver_register+0x10c/0x1d8
  [    1.262931] [<ffffffc0009b5a28>] platform_driver_register+0x98/0xa8
  [    1.262946] [<ffffffc0018422d4>] ipa_module_init+0x3c/0x48
  [    1.262960] [<ffffffc000400b08>] do_one_initcall+0xcc/0x188
  [    1.262978] [<ffffffc001800bd0>] kernel_init_freeable+0x1c0/0x264
  [    1.262992] [<ffffffc000f9f338>] kernel_init+0x10/0xcc
  [    1.263000] Memory state around the buggy address:
  [    1.263012]  ffffffc00e9af100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  [    1.263024]  ffffffc00e9af180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  [    1.263037] >ffffffc00e9af200: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 04 f4 f4 f4
  [    1.263046]                                                        ^
  [    1.263058]  ffffffc00e9af280: f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 f4 f4
  [    1.263071]  ffffffc00e9af300: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
  [    1.263079] ==================================================================

Change-Id: I7b7bde5f408dc1f04a773b7a314662ec91344a5e
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-10-08 09:16:30 -07:00
arch Merge "defconfig: Add MSM Core Hang Detection as module" 2019-10-04 14:58:57 -07:00
block block: remove REQ_NOWAIT_INLINE 2019-08-15 11:09:16 -06:00
certs
crypto
Documentation Merge remote-tracking branch 'remotes/origin/tmp-9cd2d925fbd9' into msm-lahaina 2019-09-16 11:02:07 -07:00
drivers Merge "soc: qcom: qmi_interface: Protect sk_user_data with RCU" 2019-10-07 14:24:19 -07:00
fs Linux 5.3 2019-09-16 08:26:05 +02:00
include Merge "irqchip: qcom-pdc: Add IPC logging support" 2019-10-04 10:35:50 -07:00
init
ipc Linux 5.3 2019-09-16 08:26:05 +02:00
kernel of: reserved_mem: Check that memory reserved in device tree is in use 2019-09-27 10:25:31 -07:00
lib lib: Ignore kasan errors from find_next_bit and last bit 2019-10-08 09:16:30 -07:00
LICENSES
mm Linux 5.3-rc8 2019-09-09 10:37:39 +01:00
net net: qrtr: Align header and payload 2019-10-04 11:27:35 -07:00
samples auxdisplay: Fix a typo in cfag12864b-example.c 2019-08-08 20:00:18 +02:00
scripts Merge remote-tracking branch 'remotes/origin/tmp-a63d3d432447' into msm-lahaina 2019-09-12 15:54:00 -07:00
security Linux 5.3-rc8 2019-09-09 10:37:39 +01:00
sound sound fixes for 5.3-rc8 2019-09-05 10:26:20 -07:00
techpack techpack: Kbuild: Fix to compile the techpack completely 2019-09-13 17:25:11 -07:00
tools Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-09-14 12:20:38 -07:00
usr
virt arm64 fixes for -rc7 2019-08-28 10:37:21 -07:00
.clang-format clang-format: Update with the latest for_each macro list 2019-08-31 10:00:51 +02:00
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore Merge remote-tracking branch 'remotes/origin/tmp-9855ec2fd422' into msm-lahaina 2019-08-15 09:23:09 -07:00
.mailmap mailmap: add aliases for Dmitry Safonov 2019-08-30 18:00:50 -07:00
abi_gki_aarch64.xml ABI update for 5.3-final 2019-09-16 09:16:31 +02:00
abi_gki_aarch64_9cd2d925fbd9.xml ABI: aarch64: Update ABI snapshot based on v5.3 2019-09-16 11:38:24 -07:00
build.config.aarch64 ANDROID: refactor build.config files to remove duplication 2019-08-30 14:55:29 +01:00
build.config.allmodconfig ANDROID: create build.configs for allmodconfig 2019-09-04 15:49:40 +00:00
build.config.allmodconfig.aarch64 ANDROID: create build.configs for allmodconfig 2019-09-04 15:49:40 +00:00
build.config.allmodconfig.x86_64 ANDROID: create build.configs for allmodconfig 2019-09-04 15:49:40 +00:00
build.config.common ANDROID: refactor build.config files to remove duplication 2019-08-30 14:55:29 +01:00
build.config.gki ANDROID: refactor build.config files to remove duplication 2019-08-30 14:55:29 +01:00
build.config.gki.aarch64 ANDROID: refactor build.config files to remove duplication 2019-08-30 14:55:29 +01:00
build.config.gki.x86_64 ANDROID: refactor build.config files to remove duplication 2019-08-30 14:55:29 +01:00
build.config.x86_64 ANDROID: refactor build.config files to remove duplication 2019-08-30 14:55:29 +01:00
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS iommu/arm-smmu: Add implementation infrastructure 2019-09-25 22:48:50 -07:00
Makefile Merge remote-tracking branch 'remotes/origin/tmp-9cd2d925fbd9' into msm-lahaina 2019-09-16 11:02:07 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.