platform/kernel/swap-modules.git
6 years agoktd: Fix synchronization when module is unloaded 87/177387/1
Vyacheslav Cherkashin [Mon, 16 Apr 2018 11:24:57 +0000 (14:24 +0300)]
ktd: Fix synchronization when module is unloaded

Problem:
  When unloading the module there was a race condition between
  __put_task_strcut() handler call and cleaning td struct
  for all tasks (after swap_ktd_uninit_top() and
  before swap_ktd_uninit_bottom() calls).

Solution:
  Add get_task_flag flag to td struct. Set it if task was catched
  (increment task usage in swap_ktd_uninit_top() and task_prepare()).
  Add checking this flag and it handler to do_put_task() handler.

Change-Id: I627acad69819630c02f0eaac1632b11825d856f5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoARM64: Fix for changing write protected kernel memory 86/177386/1
Vyacheslav Cherkashin [Fri, 13 Apr 2018 15:04:09 +0000 (18:04 +0300)]
ARM64: Fix for changing write protected kernel memory

Use the private kernel function arch64_insn_patch_text()
for changing kernel memory.

Change-Id: Id9eec388f135ec15f82b46d2c4227a48ae8b6e80
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agodriver: fix buffer overflow 78/177278/1 accepted/tizen/unified/20180430.072150 submit/submit/tizen/20180427.151943/20180427.152258 submit/submit/tizen/20180427.151943/20180427.153617 submit/submit/tizen/20180427.151943/20180427.154010 submit/tizen/20180427.151943 submit/tizen/20180427.154452
Vyacheslav Cherkashin [Thu, 26 Apr 2018 14:51:40 +0000 (17:51 +0300)]
driver: fix buffer overflow

Change-Id: Id6ee316bf03b37af091b951fe9f630ac95138c1d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoparser: fix struct size for get_task_comm() 05/172205/3 accepted/tizen/unified/20180314.062051 submit/tizen/20180309.021822 submit/tizen/20180313.082249
Alexander Aksenov [Mon, 12 Mar 2018 13:57:09 +0000 (16:57 +0300)]
parser: fix struct size for get_task_comm()

Now the field where task comm is collected is declared of size
TASK_COMM_LEN

Change-Id: I6bda4ecbdb85e16e752211b59038238d3b1a55d1
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agodriver: fix invalid printing format for size_t 02/172102/1
Seung-Woo Kim [Mon, 12 Mar 2018 01:31:49 +0000 (10:31 +0900)]
driver: fix invalid printing format for size_t

The size_t type is differ from 32/64 bit and printing format %u
is invalid. Fix the invalid printing format for size_t with %zu.

Change-Id: Ib7d105b0f54c416f2448344d6ef2a2afc2d421fd
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agoFix SVACE issues 09/171109/3
Alexander Aksenov [Tue, 20 Feb 2018 16:35:02 +0000 (19:35 +0300)]
Fix SVACE issues

- add limit for splice data reading;
- remove path memleak from wsp.

Change-Id: I9dc26627f16f912843350ddbc6d1a6028d3643e4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agous_manager: fix sspt_proc private data creation/destruction 12/169712/9
Alexander Aksenov [Wed, 7 Feb 2018 15:09:19 +0000 (18:09 +0300)]
us_manager: fix sspt_proc private data creation/destruction

- Add calling creation callback on each first and subsequent install;
- Redesign sspt_proc private data storing;
- Add sspt_proc destruction calling;
- Make mmap handler to be called only when proc priv data is inited.

Change-Id: I676566d013a7ebbc7851862d136c6803c4371b66
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agous_manager: add skipping page faults while handling one 11/169711/5
Alexander Aksenov [Wed, 7 Feb 2018 14:57:02 +0000 (17:57 +0300)]
us_manager: add skipping page faults while handling one

Change-Id: I67a2188401471232bc800ecc905fba3e925773a3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoLoader: add process data destructor 48/168748/4
Alexander Aksenov [Mon, 29 Jan 2018 15:12:31 +0000 (18:12 +0300)]
Loader: add process data destructor

Change-Id: Ie78123f3beedfd96b6618db91ea56dd4b8aa812b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoUS manager: add sspt_proc private data destruction 47/168747/5
Alexander Aksenov [Mon, 29 Jan 2018 15:11:37 +0000 (18:11 +0300)]
US manager: add sspt_proc private data destruction

Now it is called on exec and probes uninstalling

Change-Id: I1055585ffbc509a99c8c1533c053d1b4917d7074
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoFix kernel v4.9 build 79/170379/1 accepted/tizen/unified/20180220.064147 submit/tizen/20180219.124739
Vyacheslav Cherkashin [Mon, 19 Feb 2018 12:45:59 +0000 (15:45 +0300)]
Fix kernel v4.9 build

Change-Id: Ia6c8f9609e834f0f53b2a219fa583e1140ca6190
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agomaster: add modules initialization errors to kernel log 50/170150/6 submit/tizen/20180219.090508
Vyacheslav Cherkashin [Tue, 13 Feb 2018 18:12:03 +0000 (21:12 +0300)]
master: add modules initialization errors to kernel log

Change-Id: I796e23c1e5ef933a8f0e043d5c5d8e1e3548217e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agomaster: add checking unsupported kernel versions 4.7..4.14 49/170149/5
Vyacheslav Cherkashin [Tue, 13 Feb 2018 17:23:18 +0000 (20:23 +0300)]
master: add checking unsupported kernel versions 4.7..4.14

Global rcu-lock(debugfs_srcu) was added to debugfs
in commit to linux-kernel:9fd4dcece43.
It causes deadlock in debugfs_remove_recursive().

Change-Id: Ie26901cfe52029a8f930e61333d46f93dff74fda
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoFix kernel v4.14 build 48/170148/3
Vyacheslav Cherkashin [Fri, 2 Feb 2018 13:53:36 +0000 (16:53 +0300)]
Fix kernel v4.14 build

Change-Id: I362f7028b90d1dd53c3717bce7e4e4e391916907
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agokprobe: remove legacy code (file swap_kdebug.h) 47/170147/2
Vyacheslav Cherkashin [Tue, 13 Feb 2018 18:29:08 +0000 (21:29 +0300)]
kprobe: remove legacy code (file swap_kdebug.h)

Change-Id: Ife6f7894ac38c0db6c05a3480bfbb3dbf693cfe5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoparser: remove unused code 46/170146/2
Vyacheslav Cherkashin [Mon, 12 Feb 2018 11:21:06 +0000 (14:21 +0300)]
parser: remove unused code

Change-Id: I6b8125dee4746aeff3fcdee20c1e696c178330af
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agosampler: add cpu/hotplug support 45/170145/2
Vyacheslav Cherkashin [Wed, 7 Feb 2018 16:30:05 +0000 (19:30 +0300)]
sampler: add cpu/hotplug support

Change-Id: Ia23652587f808e24a3ecb7ac5c2d572768828359
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agosampler: move cpu notifier logic to the separate file 44/170144/2
Vyacheslav Cherkashin [Wed, 7 Feb 2018 15:25:38 +0000 (18:25 +0300)]
sampler: move cpu notifier logic to the separate file

Preparatory commit for add cpu/hotplug support

Change-Id: I2c62892c30a2793472569cec5453a350bf6c4b54
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoGOT patcher: Run process_features() at library loading 85/167285/1
Alexander Aksenov [Tue, 16 Jan 2018 15:36:30 +0000 (18:36 +0300)]
GOT patcher: Run process_features() at library loading

Related with:
Ie0fdabe552d2046226d54231b065c7e825fd48d9 swap-manager
I57b08fb5ab67957492085d7f7b7cb1a8fbb81034 swap-probe

Change-Id: I28160b1e8c2e127755fb2cd3ce4719a5c02376e2
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoKernel integration: add section numbers 48/166648/1
Alexander Aksenov [Thu, 11 Jan 2018 09:24:13 +0000 (12:24 +0300)]
Kernel integration: add section numbers

Change-Id: I90e5d80d7603ea6b4c6a0507411a382fffd368d3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoKernel integration: fix script args order 10/166510/1
Alexander Aksenov [Wed, 10 Jan 2018 11:58:13 +0000 (14:58 +0300)]
Kernel integration: fix script args order

Change-Id: Ib00a4829020792fd371bd2f79ad5bbc1cd753b85
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoKernel integration: add Porting Guide 38/163838/5 submit/tizen/20180109.094207
Alexander Aksenov [Wed, 13 Dec 2017 12:57:36 +0000 (15:57 +0300)]
Kernel integration: add Porting Guide

Change-Id: If664459bbdd6227b8fcf51af8964493e11f848e3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoKernel integration: make kernel preparation automatically 04/163504/5
Alexander Aksenov [Mon, 11 Dec 2017 14:48:55 +0000 (17:48 +0300)]
Kernel integration: make kernel preparation automatically

Change-Id: Ice36cbc45cfb4303af86782d9db0aa78d68dbeca
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoKernel integration: fix paths in sync script 03/163503/3
Alexander Aksenov [Mon, 11 Dec 2017 12:46:03 +0000 (15:46 +0300)]
Kernel integration: fix paths in sync script

Change-Id: Iade0c1b575e1ea6f1033399e2fa89746983bc23b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoMerge branch 'tizen_4.0' into tizen 77/163477/1
Alexander Aksenov [Fri, 8 Dec 2017 09:44:22 +0000 (12:44 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: I5068db0372d4ebdd960e57c92e5696355d1c2c7f

6 years agoenergy: use kprobe for __switch_to detecting 72/157672/4 submit/tizen_4.0/20180109.094119
Vyacheslav Cherkashin [Wed, 25 Oct 2017 14:20:49 +0000 (17:20 +0300)]
energy: use kprobe for __switch_to detecting

Change-Id: I069d8d2427029c6f7452d6d9f198904ebf94ae1e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoenergy: '__swicth_to' handling refactoring 71/157671/4
Vyacheslav Cherkashin [Wed, 25 Oct 2017 14:10:55 +0000 (17:10 +0300)]
energy: '__swicth_to' handling refactoring

Change-Id: Id68c9c2fe86197aa6b30517a9cb9a66041896975
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoks_feature: use kprobe for __switch_to detecting 70/157670/4
Vyacheslav Cherkashin [Wed, 25 Oct 2017 13:12:56 +0000 (16:12 +0300)]
ks_feature: use kprobe for __switch_to detecting

Change-Id: I9d907645c241b29679659ef3fc0145ac956989b6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoImplement functions to get next/prev tasks from __switch_to() 69/157669/3
Vyacheslav Cherkashin [Mon, 30 Jan 2017 17:01:03 +0000 (20:01 +0300)]
Implement functions to get next/prev tasks from __switch_to()

functions:
swap_switch_to_prev()
swap_switch_to_next()

Change-Id: I09ba03d506a2ae361ddfac62fe3323ad300a7c5d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoARM: miscellaneous control instructions implement 64/161764/1
Vyacheslav Cherkashin [Tue, 21 Feb 2017 12:54:16 +0000 (15:54 +0300)]
ARM: miscellaneous control instructions implement

Change-Id: I8c5ee011a1a8a54f80ce856fb656ec22803a5ee3

6 years agoARM: Refactor thumb decoding 61/157661/2
Vyacheslav Cherkashin [Tue, 21 Feb 2017 08:47:27 +0000 (11:47 +0300)]
ARM: Refactor thumb decoding

Change-Id: Id30ebfcd60afa668966eb7516307abba251f299a
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoenergy: add LCD support for sprdfb_panel driver 73/157573/1
Vyacheslav Cherkashin [Tue, 24 Oct 2017 18:24:29 +0000 (21:24 +0300)]
energy: add LCD support for sprdfb_panel driver

support configs:
- CONFIG_FB_SCX35
- CONFIG_FB_SCX30G
- CONFIG_FB_SCX15
- CONFIG_FB_SCX35L

Change-Id: Ieba9dec593379104190859aa72e2df92fa4e4db4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoenergy: fix LCD support for maru driver 72/157572/1
Vyacheslav Cherkashin [Tue, 24 Oct 2017 15:22:15 +0000 (18:22 +0300)]
energy: fix LCD support for maru driver

Add actual maru driver support

Change-Id: I2b9aba9e2662d3b5a56ded8a1d68bb77a6159056
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agous_manager: replace GFP_ATOMIC by GFP_KERNEL 62/157062/2
Vyacheslav Cherkashin [Fri, 20 Oct 2017 13:19:36 +0000 (16:19 +0300)]
us_manager: replace GFP_ATOMIC by GFP_KERNEL

Now in a lot of places doesn't requires GFP_ATOMIC flag,
because these code executes in non-atomic context.

Change-Id: Ie6d85f14ac04375c30aa120804f97af5f985aa12
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoksyms: use the common initialization mechanism 37/156737/2
Vyacheslav Cherkashin [Thu, 19 Oct 2017 18:19:01 +0000 (21:19 +0300)]
ksyms: use the common initialization mechanism

Change-Id: I1981cd3bd78420bf6a2d40e96f01c946611c41a8
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoks_manager: use the common initialization mechanism 36/156736/2
Vyacheslav Cherkashin [Thu, 19 Oct 2017 18:10:33 +0000 (21:10 +0300)]
ks_manager: use the common initialization mechanism

Change-Id: I781b5bd69c38f2d4deda7c5d9707b358341f522c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoretprobe: use the common initialization mechanism 35/156735/2
Vyacheslav Cherkashin [Thu, 19 Oct 2017 18:01:22 +0000 (21:01 +0300)]
retprobe: use the common initialization mechanism

Change-Id: I603e901bf9f5fc7a7e416793f57edb0985075680
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agofbiprobe: use the common initialization mechanism 34/156734/2
Vyacheslav Cherkashin [Thu, 19 Oct 2017 17:50:32 +0000 (20:50 +0300)]
fbiprobe: use the common initialization mechanism

Change-Id: Iaee19e8db0711d282e064bf13c191abf11de6340
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agobuffer: use the common initialization mechanism 33/156733/2
Vyacheslav Cherkashin [Thu, 19 Oct 2017 17:43:34 +0000 (20:43 +0300)]
buffer: use the common initialization mechanism

Change-Id: I9322914ffa310cdd0ef354af4e4a586cd028c1e6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agosampler: use the common initialization mechanism 32/156732/2
Vyacheslav Cherkashin [Thu, 19 Oct 2017 17:39:01 +0000 (20:39 +0300)]
sampler: use the common initialization mechanism

Change-Id: I80d620161ad52056395336525f785543366f4356
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agomaster: add SWAP_LIGHT_INIT_MODULE_CORE() interface 31/156731/2
Vyacheslav Cherkashin [Thu, 19 Oct 2017 18:02:28 +0000 (21:02 +0300)]
master: add SWAP_LIGHT_INIT_MODULE_CORE() interface

Change-Id: I7f42a65e69dcbd0f8f2bdccccedcef4cf717b742
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agouihv: remove module 27/153927/2
Vyacheslav Cherkashin [Tue, 3 Oct 2017 11:53:35 +0000 (14:53 +0300)]
uihv: remove module

Change-Id: Id6540ff3783bded563d333dfe6a0863423c01791
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoKI: add kernel hooks handlers 93/156493/4
Vyacheslav Cherkashin [Tue, 17 Oct 2017 12:45:28 +0000 (15:45 +0300)]
KI: add kernel hooks handlers

Change-Id: I9b16ad8bf2aee557e3c26b36b353b1a25f907f6b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoKI: add kernel patch for CONFIG_SWAP_HOOK_SIGNAL support 92/156492/4
Vyacheslav Cherkashin [Mon, 16 Oct 2017 18:01:02 +0000 (21:01 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_SIGNAL support

Change-Id: I7615c636ea468d3792af342062024504de4bf813
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoKI: add kernel patch for CONFIG_SWAP_HOOK_FILE_OPS support 91/156491/4
Vyacheslav Cherkashin [Mon, 16 Oct 2017 18:00:05 +0000 (21:00 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_FILE_OPS support

Change-Id: I02be4335154ac888efb718fc21d83067f89da935
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoKI: add kernel patch for CONFIG_SWAP_HOOK_ENERGY support 90/156490/4
Vyacheslav Cherkashin [Mon, 16 Oct 2017 17:59:19 +0000 (20:59 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_ENERGY support

Change-Id: I76bbe5195da7720fc75cc984716058d39c9b47e9
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoKI: add kernel patch for CONFIG_SWAP_HOOK_SWITCH_TO support 89/156489/4
Vyacheslav Cherkashin [Mon, 16 Oct 2017 17:58:18 +0000 (20:58 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_SWITCH_TO support

Change-Id: Id47af2199f79dcba96f2a65a3d26d5e7490f9e90
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoKI: add kernel patch for CONFIG_SWAP_HOOK_USAUX support 88/156488/4
Vyacheslav Cherkashin [Mon, 16 Oct 2017 17:57:28 +0000 (20:57 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_USAUX support

Change-Id: I5e1d849fee82b89eb16cbb9bb5b1771032763f6b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoKI: add kernel patch for CONFIG_SWAP_HOOK_TASKDATA support 87/156487/4
Vyacheslav Cherkashin [Mon, 16 Oct 2017 17:56:27 +0000 (20:56 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_TASKDATA support

Change-Id: I6e1c7a65a5231838eb5dfac462cf2192dcb4e39c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoKI: add kernel patch for CONFIG_SWAP_HOOK_SYSCALL support 86/156486/4
Vyacheslav Cherkashin [Wed, 4 Oct 2017 18:14:35 +0000 (21:14 +0300)]
KI: add kernel patch for CONFIG_SWAP_HOOK_SYSCALL support

Change-Id: I922f4abf1cebde741ab28b94115daa18cc2e259d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoKI: introduce script and README for integration in to kernel 85/156485/4
Vyacheslav Cherkashin [Wed, 4 Oct 2017 14:59:03 +0000 (17:59 +0300)]
KI: introduce script and README for integration in to kernel

Change-Id: I14b84ab040a371c3bbb630ec8a8179246186fe48
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove modules to modules dir 84/156484/2
Vyacheslav Cherkashin [Tue, 3 Oct 2017 15:48:25 +0000 (18:48 +0300)]
Move modules to modules dir

Change-Id: I2b4cbfe8c39fef4049083d523eb2d4acbea03041
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMerge branch 'tizen_4.0' into tizen 53/156153/1 accepted/tizen/unified/20171017.204907 accepted/tizen/unified/20171018.165216 submit/tizen/20171017.092514 submit/tizen/20171018.024341
Dmitry Kovalenko [Tue, 17 Oct 2017 09:17:19 +0000 (12:17 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: I6c9013239acb80b199f99759b85476a921bbf419

7 years agoMerge branch 'tizen_4.0' into tizen 44/156044/1 accepted/tizen/unified/20171017.071159 submit/tizen/20171017.050426
Dmitry Kovalenko [Tue, 17 Oct 2017 04:58:51 +0000 (07:58 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: Id8e9eff58ac4f4161063c4eb5e345d03c935effa

7 years agoARM: use swap_access_process_vm() for user memory access 55/155955/1 accepted/tizen/4.0/unified/20171017.213334 accepted/tizen/4.0/unified/20171018.231711 submit/tizen_4.0/20171017.092546 submit/tizen_4.0/20171018.024233 submit/tizen_4.0/20171018.060355 tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Vyacheslav Cherkashin [Mon, 16 Oct 2017 14:09:04 +0000 (17:09 +0300)]
ARM: use swap_access_process_vm() for user memory access

Change-Id: I93b31067a58d538de30d9e37d4e3406b2b74ac17
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix build for ARM targets 51/155951/1 accepted/tizen/4.0/unified/20171017.212538 submit/tizen_4.0/20171017.050132
Dmitry Kovalenko [Mon, 16 Oct 2017 13:58:56 +0000 (16:58 +0300)]
Fix build for ARM targets

Change-Id: I8412bf8be7ebd648feb0683ea0aa2c8c99bdf491
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoFix issues found by static analysis tool 37/155537/2
Dmitry Kovalenko [Fri, 13 Oct 2017 09:36:58 +0000 (12:36 +0300)]
Fix issues found by static analysis tool

decode_thumb.c: Out-of-bounds access
probes_arm.c: Out-of-bounds access
swap_kprobes.c: Resource leak

Change-Id: I54c92029f5adb83b8d4f8f29cc4e683d6545ab6c
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoNot build unsupported targets 38/154438/1 accepted/tizen/4.0/unified/20171011.071635 submit/tizen_4.0/20171010.084253 submit/tizen_4.0/20171010.091636 submit/tizen_4.0/20171010.120000 tizen_4.0.IoT.p1_release
Dmitry Kovalenko [Tue, 10 Oct 2017 07:58:27 +0000 (10:58 +0300)]
Not build unsupported targets

Change-Id: I9b8f895c30751671c879bab0fad8263779e1f27d
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoDisable build for non-emulator i586 target 02/154402/1 submit/tizen_4.0/20171010.073959
Dmitry Kovalenko [Tue, 10 Oct 2017 07:10:50 +0000 (10:10 +0300)]
Disable build for non-emulator i586 target

Change-Id: I3b9a3000e3755c304a4119b0ad877bbcd5b8b78f

7 years agowsi: remove feature 10/153910/1
Vyacheslav Cherkashin [Tue, 3 Oct 2017 07:33:56 +0000 (10:33 +0300)]
wsi: remove feature

Change-Id: I9d28a5af96efbdeb40f26cdd22258337e45c39ab
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMerge branch 'tizen_4.0' into tizen 04/153904/1
Dmitry Kovalenko [Tue, 3 Oct 2017 07:10:59 +0000 (10:10 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: I5b1609cf88d624624de6791dfca14fd7a53f4664

7 years agoFix build for i686 arch 32/153032/5 submit/tizen_4.0/20170929.055211
Vitaliy Cherepanov [Wed, 27 Sep 2017 17:08:33 +0000 (20:08 +0300)]
Fix build for i686 arch

Change-Id: I63cb3e2e88261dbb957bb030bd89a94c83127e5c
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoMerge branch 'tizen_3.0_dev' into tizen_4.0 35/152635/1 submit/tizen_4.0/20170929.053715 submit/tizen_4.0/20170929.084642 submit/tizen_4.0/20170929.085108
Dmitry Kovalenko [Tue, 26 Sep 2017 15:53:22 +0000 (18:53 +0300)]
Merge branch 'tizen_3.0_dev' into tizen_4.0

Change-Id: Idbce0b9121427a0299b6c8cdf9ccd197b4532cdc

7 years agoAdd model-config to requires (fix install sequence) 87/151487/1 accepted/tizen/4.0/unified/20170921.160340 submit/tizen_4.0/20170921.055606
Dmitry Kovalenko [Thu, 21 Sep 2017 05:20:02 +0000 (08:20 +0300)]
Add model-config to requires (fix install sequence)

Change-Id: I5d9b77adaf6d7bc80cd60274af71b0683b662e35

7 years agoAdd calling patch app memory area after lib map 95/151095/1
Alexander Aksenov [Tue, 19 Sep 2017 15:47:55 +0000 (18:47 +0300)]
Add calling patch app memory area after lib map

Change-Id: Iafa451d395b76c9bc8c6e85b75c3189820c6207d
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd calling patch app memory area after lib map 92/151092/1 tizen_3.0_dev
Alexander Aksenov [Tue, 19 Sep 2017 15:47:55 +0000 (18:47 +0300)]
Add calling patch app memory area after lib map

Change-Id: Iafa451d395b76c9bc8c6e85b75c3189820c6207d
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix name collisions 01/150801/1 accepted/tizen/4.0/unified/20170920.081524 accepted/tizen/unified/20170920.081032 submit/tizen/20170919.044447 submit/tizen_4.0/20170919.044533
Alexander Aksenov [Mon, 18 Sep 2017 15:48:12 +0000 (18:48 +0300)]
Fix name collisions

Linux kernel Kprobes had name collisions with SWAP kprobes

Change-Id: Ie69d28976fb6f8d9b18fa3b152109b6be940027f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix build for Tizen 4.0 98/149898/1 accepted/tizen/4.0/unified/20170913.154114 submit/tizen_4.0/20170913.123755
Vyacheslav Cherkashin [Tue, 12 Sep 2017 16:00:25 +0000 (19:00 +0300)]
Fix build for Tizen 4.0

Change-Id: Ie2b8140d19658038862b085e66299b9ae12a1338
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMerge branch 'tizen_3.0_dev' into tizen_4.0 26/149626/1
Vyacheslav Cherkashin [Tue, 12 Sep 2017 17:10:37 +0000 (20:10 +0300)]
Merge branch 'tizen_3.0_dev' into tizen_4.0

Change-Id: I86aea82642339739dffcc64991047db475e121d4

7 years agopreload: add variable initialization 23/149623/1
Vyacheslav Cherkashin [Tue, 12 Sep 2017 16:52:41 +0000 (19:52 +0300)]
preload: add variable initialization

Change-Id: Ic2d4c74c4ff120a8940987026ce3d9f7cf4fc9ef
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoenergy: fix wlan0 checking 22/149622/1
Vyacheslav Cherkashin [Tue, 12 Sep 2017 15:56:39 +0000 (18:56 +0300)]
energy: fix wlan0 checking

Change-Id: I0ef6d699127a3279bc7d3da5ca4b1bb09434154d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd TW1 support 78/147178/1 accepted/tizen/4.0/unified/20170905.174913 accepted/tizen/unified/20170905.184135 submit/tizen/20170901.090036 submit/tizen_4.0/20170901.115922
Alexander Aksenov [Fri, 1 Sep 2017 08:16:12 +0000 (11:16 +0300)]
Add TW1 support

Change-Id: I1621784c3b9d5e8e10f9f788b822abce9d8efaba
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix deploy script 77/147177/1
Alexander Aksenov [Fri, 1 Sep 2017 08:15:37 +0000 (11:15 +0300)]
Fix deploy script

- add unused *.ko deletion
- cleanup after installation
- add support TM2 device
- fix rpi3 model name

Change-Id: Ia7dfd8ab46a69148febcef8d816af325db14c7bc
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd baselibs for repacking aarch64 to armv7l 23/147023/1
Alexander Aksenov [Thu, 31 Aug 2017 11:59:29 +0000 (14:59 +0300)]
Add baselibs for repacking aarch64 to armv7l

Change-Id: Ic5bed2e632983f985ddd25e1da85627c3977ee53
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd UNIX permissons setting for debugfs files 68/145768/1
Vyacheslav Cherkashin [Wed, 23 Aug 2017 15:35:20 +0000 (18:35 +0300)]
Add UNIX permissons setting for debugfs files

Now swap_debugfs_create_*() used for debugfs entries creation

Change-Id: Ie13dbd0a83848ee0e4a0625e22ba81ecbc0410a9
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agous_manager: uninit static variable 64/144964/1
Vyacheslav Cherkashin [Fri, 18 Aug 2017 15:22:45 +0000 (18:22 +0300)]
us_manager: uninit static variable

Set default value to static variable (status) during uninit module

Change-Id: I2d6efa246ba5bcd6c266288224103e9325d53d20
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoStrip modules for aarch64 15/141015/9 accepted/tizen/unified/20170825.043839 submit/tizen/20170821.093834 submit/tizen/20170823.105944 submit/tizen/20170824.055620 submit/tizen/20170824.093743
Alexander Aksenov [Thu, 27 Jul 2017 12:40:27 +0000 (15:40 +0300)]
Strip modules for aarch64

Workaround to make modules buildable for this arch

Change-Id: I1ac1708e88477f68d95616449de9f140c0e48048
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoPort building to tizen 4.0 64/136664/9
Dmitry Kovalenko [Fri, 16 Jun 2017 06:21:40 +0000 (09:21 +0300)]
Port building to tizen 4.0

Now building performed for all targets but only appropriate
version is installed

Change-Id: I348b254b69eb9aea16b723c199b25a1dd8282e0c
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoSupport modern (>4.0) kernels 12/141012/7
Alexander Aksenov [Thu, 29 Jun 2017 16:51:39 +0000 (19:51 +0300)]
Support modern (>4.0) kernels

- get_user_pages() function result has changed, get_user_pages_remote() used
- macros redefenition on modern kernels made version dependend
- inappropriate print function arguments has changed.

Change-Id: Ie81f7edfaa3d0310f4b6f7b6a5d24cbcd6cbdc46
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agotaskctx: disable if CONFIG_SWAP_KERNEL_IMMUTABLE 46/144946/1
Vyacheslav Cherkashin [Thu, 17 Aug 2017 12:24:25 +0000 (15:24 +0300)]
taskctx: disable if CONFIG_SWAP_KERNEL_IMMUTABLE

Change-Id: I5468031320c6ea766986e0fa490cf0600ef04775
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoparser: fix double features unregistration 03/144703/2
Vyacheslav Cherkashin [Thu, 17 Aug 2017 09:00:44 +0000 (12:00 +0300)]
parser: fix double features unregistration

Change-Id: I68a794544e408102607de3ba004cc34faa3cff1e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix deadlock in hh_mm_release() 92/144192/3
Vyacheslav Cherkashin [Tue, 15 Aug 2017 16:48:01 +0000 (19:48 +0300)]
Fix deadlock in hh_mm_release()

Has not been called up_write() on error happens

Change-Id: I49bae67eb4e0f3574509413c1fae1ce2709ef445
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd CONFIG_SWAP_KERNEL_IMMUTABLE support 91/144191/3
Vyacheslav Cherkashin [Mon, 14 Aug 2017 11:51:33 +0000 (14:51 +0300)]
Add CONFIG_SWAP_KERNEL_IMMUTABLE support

Add some includes to other files, because they were indirectly
included from removed

Change-Id: I9c78d60d6f42d91a154050515bad8118a06ecb68
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoARM64: Fix type cast 90/144190/2
Vyacheslav Cherkashin [Tue, 15 Aug 2017 15:56:04 +0000 (18:56 +0300)]
ARM64: Fix type cast

Change-Id: I7f5c71f8c18d25390e3ac4983041c025e870e065
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoSeparate define RETPROBE_STACK_DEPTH 89/144189/2
Vyacheslav Cherkashin [Tue, 15 Aug 2017 15:53:51 +0000 (18:53 +0300)]
Separate define RETPROBE_STACK_DEPTH

to:
- KRETPROBE_STACK_DEPTH
- URETPROBE_STACK_DEPTH

Change-Id: I3f636de1c40866862082c119c679b096fa9720e4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoks_feature: disable file_ops on CONFIG_SWAP_HOOK_SYSCALL defined 88/144188/2
Vyacheslav Cherkashin [Tue, 15 Aug 2017 12:13:17 +0000 (15:13 +0300)]
ks_feature: disable file_ops on CONFIG_SWAP_HOOK_SYSCALL defined

Because file_ops is not ported to hook interface

Change-Id: Ifc1a2a97c221ed0e37742cfa84b7bbb9fddf20fb
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix build for 64-bit 87/144187/2
Vyacheslav Cherkashin [Mon, 14 Aug 2017 11:52:39 +0000 (14:52 +0300)]
Fix build for 64-bit

Change-Id: I22a3c46e28ed07e36463a61a384cbe795c9724f4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd CONFIG_SWAP_HOOK_ENERGY support 98/115798/3
Dmitry Kovalenko [Wed, 31 Aug 2016 10:03:48 +0000 (13:03 +0300)]
Add CONFIG_SWAP_HOOK_ENERGY support

Change-Id: If461329d50f914cbe0bffd93c53852e759ea30f7
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoAdd CONFIG_SWAP_HOOK_SIGNAL support 86/144186/2
Vyacheslav Cherkashin [Mon, 14 Aug 2017 07:31:55 +0000 (10:31 +0300)]
Add CONFIG_SWAP_HOOK_SIGNAL support

Change-Id: I344982157eafad3e01c9e015a68b2883cd7586f4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoloader: remove swap_kprobe dependence 85/144185/2
Vyacheslav Cherkashin [Fri, 11 Aug 2017 15:38:43 +0000 (18:38 +0300)]
loader: remove swap_kprobe dependence

use usm_hook instead of swap_kprobe

Change-Id: Id3b9b9b9dbd7c7f4ae1d82c087b578ba17ed2e3f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agous_manager: implement usm_hook 84/144184/2
Vyacheslav Cherkashin [Fri, 11 Aug 2017 15:09:52 +0000 (18:09 +0300)]
us_manager: implement usm_hook

Change-Id: Ibae838eb1cd44890bf0fcd05a78fd5f06d200608
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd CONFIG_SWAP_HOOK_SWITCH_TO suport 97/115797/3
Dmitry Kovalenko [Tue, 23 Aug 2016 14:37:40 +0000 (17:37 +0300)]
Add CONFIG_SWAP_HOOK_SWITCH_TO suport

Change-Id: I7161aa4106bdfe6e0a8849d43e81ba6fbe290834
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoAdd CONFIG_SWAP_HOOK_SYSCALL support 96/115796/3
Vitaliy Cherepanov [Thu, 25 Aug 2016 12:53:52 +0000 (15:53 +0300)]
Add CONFIG_SWAP_HOOK_SYSCALL support

Change-Id: I77cbb7cf011e61d9a8e53a18aa254872f9f54549
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoAdd CONFIG_SWAP_HOOK_USAUX support 94/115794/3
Vyacheslav Cherkashin [Mon, 29 Aug 2016 08:18:04 +0000 (11:18 +0300)]
Add CONFIG_SWAP_HOOK_USAUX support

Change-Id: I286ba174ab18143babf833cee7aa2ae7bbfcc2d8
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd CONFIG_SWAP_HOOK_TASKDATA support 83/144183/2
Vyacheslav Cherkashin [Wed, 9 Aug 2017 14:49:01 +0000 (17:49 +0300)]
Add CONFIG_SWAP_HOOK_TASKDATA support

Change-Id: I5aa764fe699dbf4da4661a8025ba76d6980cf506
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix typo in bin_info_list_create() result checking 69/144169/1 submit/tizen/20170815.123151
Dmitry Kovalenko [Tue, 15 Aug 2017 09:38:16 +0000 (12:38 +0300)]
Fix typo in bin_info_list_create() result checking

Change-Id: Ic80e6b448deee565541e97797a0e8a7e51690ed5
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agodriver: add synchronize for msg_handler 93/140493/3
Vyacheslav Cherkashin [Tue, 25 Jul 2017 06:35:04 +0000 (09:35 +0300)]
driver: add synchronize for msg_handler

Change-Id: Id06134af184fe576a349a9e35e8348830701bc54
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agopreload: fix invalid id pointer 94/139794/1
Vyacheslav Cherkashin [Wed, 19 Jul 2017 16:20:37 +0000 (19:20 +0300)]
preload: fix invalid id pointer

Change-Id: I88cde60599369ebbc307157b9f8541f0141f9d40
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoparser: fix incorrect access to app list 50/138550/1
Vyacheslav Cherkashin [Wed, 12 Jul 2017 13:00:52 +0000 (16:00 +0300)]
parser: fix incorrect access to app list

Change-Id: I0f2192f39181cd9413a32fc1c36d81dcb1497894
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd per-process pthread init probes installation 61/131761/6
Alexander Aksenov [Thu, 25 May 2017 15:17:24 +0000 (18:17 +0300)]
Add per-process pthread init probes installation

Library can be loaded very early, when pthread was not inited.
Due to pthread library usage in our service probe lib, this causes
assert in library constructor. To prevent this pthread init probe
is installed, and so we can identify when it is inited.
This mechanism was previously made for got patcher, now this is
preload implementation.

This commit is related to swap-manager's commit
Pass pthread's init data to preload module

Change-Id: I83954951e6797eaf583c44f3a348d8d37a277cbf
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>