- 27 12月, 2019 40 次提交
-
-
由 Mikulas Patocka 提交于
[ Upstream commit b21555786f18cd77f2311ad89074533109ae3ffa ] Commit 721b1d98fb517a ("dm snapshot: Fix excessive memory usage and workqueue stalls") introduced a semaphore to limit the maximum number of in-flight kcopyd (COW) jobs. The implementation of this throttling mechanism is prone to a deadlock: 1. One or more threads write to the origin device causing COW, which is performed by kcopyd. 2. At some point some of these threads might reach the s->cow_count semaphore limit and block in down(&s->cow_count), holding a read lock on _origins_lock. 3. Someone tries to acquire a write lock on _origins_lock, e.g., snapshot_ctr(), which blocks because the threads at step (2) already hold a read lock on it. 4. A COW operation completes and kcopyd runs dm-snapshot's completion callback, which ends up calling pending_complete(). pending_complete() tries to resubmit any deferred origin bios. This requires acquiring a read lock on _origins_lock, which blocks. This happens because the read-write semaphore implementation gives priority to writers, meaning that as soon as a writer tries to enter the critical section, no readers will be allowed in, until all writers have completed their work. So, pending_complete() waits for the writer at step (3) to acquire and release the lock. This writer waits for the readers at step (2) to release the read lock and those readers wait for pending_complete() (the kcopyd thread) to signal the s->cow_count semaphore: DEADLOCK. The above was thoroughly analyzed and documented by Nikos Tsironis as part of his initial proposal for fixing this deadlock, see: https://www.redhat.com/archives/dm-devel/2019-October/msg00001.html Fix this deadlock by reworking COW throttling so that it waits without holding any locks. Add a variable 'in_progress' that counts how many kcopyd jobs are running. A function wait_for_in_progress() will sleep if 'in_progress' is over the limit. It drops _origins_lock in order to avoid the deadlock. Reported-by: NGuruswamy Basavaiah <guru2018@gmail.com> Reported-by: NNikos Tsironis <ntsironis@arrikto.com> Reviewed-by: NNikos Tsironis <ntsironis@arrikto.com> Tested-by: NNikos Tsironis <ntsironis@arrikto.com> Fixes: 721b1d98fb51 ("dm snapshot: Fix excessive memory usage and workqueue stalls") Cc: stable@vger.kernel.org # v5.0+ Depends-on: 4a3f111a73a8c ("dm snapshot: introduce account_start_copy() and account_end_copy()") Signed-off-by: NMikulas Patocka <mpatocka@redhat.com> Signed-off-by: NMike Snitzer <snitzer@redhat.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> -
由 Mikulas Patocka 提交于
[ Upstream commit a2f83e8b0c82c9500421a26c49eb198b25fcdea3 ] This simple refactoring moves code for modifying the semaphore cow_count into separate functions to prepare for changes that will extend these methods to provide for a more sophisticated mechanism for COW throttling. Signed-off-by: NMikulas Patocka <mpatocka@redhat.com> Reviewed-by: NNikos Tsironis <ntsironis@arrikto.com> Signed-off-by: NMike Snitzer <snitzer@redhat.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Sasha Levin 提交于
[ Upstream commit f7daefe4231e57381d92c2e2ad905a899c28e402 ] CPU0: CPU1: backing_dev_show backing_dev_store ...... ...... file = zram->backing_dev; down_read(&zram->init_lock); down_read(&zram->init_init_lock) file_path(file, ...); zram->backing_dev = backing_dev; up_read(&zram->init_lock); up_read(&zram->init_lock); gets the value of zram->backing_dev too early in backing_dev_show, which resultin the value being NULL at the beginning, and not NULL later. backtrace: d_path+0xcc/0x174 file_path+0x10/0x18 backing_dev_show+0x40/0xb4 dev_attr_show+0x20/0x54 sysfs_kf_seq_show+0x9c/0x10c kernfs_seq_show+0x28/0x30 seq_read+0x184/0x488 kernfs_fop_read+0x5c/0x1a4 __vfs_read+0x44/0x128 vfs_read+0xa0/0x138 SyS_read+0x54/0xb4 Link: http://lkml.kernel.org/r/1571046839-16814-1-git-send-email-chenwandun@huawei.comSigned-off-by: NChenwandun <chenwandun@huawei.com> Acked-by: NMinchan Kim <minchan@kernel.org> Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: <stable@vger.kernel.org> [4.14+] Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> -
由 Yang Yingliang 提交于
ascend inclusion category: feature bugzilla: NA CVE: NA ------------ On Hi1980 platform, each chip contains 20 cores. The former 16 cores are managed by the OS. The last 4 cores are ts core, with their GICR registers initialised by the OS and has ListOS runs on. This patch aims to initialise the GICR registers of ts cores. Signed-off-by: NYang Yingliang <yaingyingliang@huawei.com> Signed-off-by: NXu Qiang <xuqiang36@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Xu Qiang 提交于
ascend inclusion category: feature bugzilla: NA CVE: NA ------------ Support ts core ras process for ascend. Signed-off-by: NXu Qiang <xuqiang36@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Zhou Guanghui 提交于
ascend inclusion category: bugfix bugzilla: NA CVE: NA ------------ Reserve 4G map for DVPP. Signed-off-by: NZhou Guanghui <zhouguanghui1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 James Morse 提交于
mainline inclusion from mainline-4.20 commit acafce48b07b category: bugfix bugzilla: 24619 CVE: NA ------------ It turns out the dt-probing part of this wasn't tested properly after it was merged. commit 3aa0582f ("of: platform: populate /firmware/ node from of_platform_default_populate_init()") changed the core-code to generate the platform devices, meaning the driver's attempt fails, and it bails out. Fix this by removing the manual platform-device creation for DT systems, core code has always done this for us. CC: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Signed-off-by: NJames Morse <james.morse@arm.com> Signed-off-by: NWill Deacon <will.deacon@arm.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Nicolas Saenz Julienne 提交于
mainline inclusion from mainline-4.20 commit c3790b3799f8 category: bugfix bugzilla: 24618 CVE: NA ------------ After finding a "firmware" dt node arm_sdei tries to match it's compatible string with it. To do so it's calling of_find_matching_node() which already takes care of decreasing the refcount on the "firmware" node. We are then incorrectly decreasing the refcount on that node again. This patch removes the unwarranted call to of_node_put(). Signed-off-by: NNicolas Saenz Julienne <nsaenzjulienne@suse.de> Signed-off-by: NJames Morse <james.morse@arm.com> Signed-off-by: NWill Deacon <will.deacon@arm.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: bugfix bugzilla: NA CVE: NA ------------------- IO page fault can not be handled in time, because of low priority. Increase priority of IO page fault worker queue to WQ_HIGHPRI. Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Stefan Berger 提交于
mainline inclusion from mainline-v5.3-rc6 commit 5b359c7c4372 category: bugfix bugzilla: 21420 CVE: NA ------------------------------------------------- The tpm_tis_core has to set the TPM_CHIP_FLAG_IRQ before probing for interrupts since there is no other place in the code that would set it. Cc: linux-stable@vger.kernel.org Fixes: 570a3609 ("tpm: drop 'irq' from struct tpm_vendor_specific") Signed-off-by: NStefan Berger <stefanb@linux.ibm.com> Signed-off-by: NJarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Conflicts: drivers/char/tpm/tpm_tis_core.c [yyl: adjust context] Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Rafael J. Wysocki 提交于
mainline inclusion from mainline-v5.3-rc1 commit 2933954b71f1 category: bugfix bugzilla: 22356 CVE: NA ------------------------------------------------- It is not actually guaranteed that pm_abort_suspend will be nonzero when pm_system_cancel_wakeup() is called which may lead to subtle issues, so make it use atomic_dec_if_positive() instead of atomic_dec() for the safety sake. Fixes: 33e4f80e ("ACPI / PM: Ignore spurious SCI wakeups from suspend-to-idle") Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: NThomas Gleixner <tglx@linutronix.de> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Ruslan Bilovol 提交于
mainline inclusion from mainline-v5.3-rc1 commit 6269e4c76eac category: bugfix bugzilla: 22495 CVE: NA ------------------------------------------------- Don't do extra cpu_to_le32 conversion for put_unaligned_le32 because it is already implemented in this function. Fixes sparse error: xhci-hub.c:1152:44: warning: incorrect type in argument 1 (different base types) xhci-hub.c:1152:44: expected unsigned int [usertype] val xhci-hub.c:1152:44: got restricted __le32 [usertype] Fixes: 395f5409 "xhci: support new USB 3.1 hub request to get extended port status" Cc: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: NRuslan Bilovol <ruslan.bilovol@gmail.com> Link: https://lore.kernel.org/r/1562501839-26522-1-git-send-email-ruslan.bilovol@gmail.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Ikjoon Jang 提交于
mainline inclusion from mainline-v5.3-rc7 commit 9334367cda85 category: bugfix bugzilla: 22289 CVE: NA ------------------------------------------------- Xhci re-enables a slot on transaction error in set_address using xhci_disable_slot() + xhci_alloc_dev(). But in this case, xhci_alloc_dev() creates debugfs entries upon an existing device without cleaning up old entries, thus memory leaks. So this patch simply moves calling xhci_debugfs_free_dev() from xhci_free_dev() to xhci_disable_slot(). [added "possible" to header as this is about failure codepath -Mathias] Signed-off-by: NIkjoon Jang <ikjn@chromium.org> Signed-off-by: NMathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/1567172356-12915-5-git-send-email-mathias.nyman@linux.intel.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Qiang Xu 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- svm add the catch the log of run queue, when open the sched debug Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NQiang Xu <xuqiang36@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- svm provide the mmap functions to remap the phys to a fixed virtual address and the get unmapped area to get a empty virtual address area; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- this feature is to use debug the process memory; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- svm implement get hugeinfo functiion, and this is runtime features; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- implement unpin pages to dec refcount, then pages will can migrate and free back to lru; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- implement set l2 cache read count, svm drv will modify the page table pte to set read count for smmu; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- svm probe to read l2buff addr and size, this is rts to set l2buff Signed-off-by: Nchenjiankang (A) <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- svm implent the get phys addr functions, and using ioctl to get addr in user space; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- implement svm bind and unbind, the process can call ioctl to bind the device, and also call ioctl to unbind the device; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- using a rbtree to manage a svm_process,and implement find process, delete process and insert process Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- svm implement the context link the process and children device process can attach to the device using the context to check and record; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- add svm bind ioctl and add some functions, include svm_process alloc, svm_process relaese, and svm_process kref interfaces Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- svm driver search dts to init children device that it is Hi1910 and Hi1980 cores of AI; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- this patch is to search acpi to init svm device children that it is to add the children to iommu domain and group; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- svm need to init the children device , so, we add the acpi and dts functions to read the childen device of svm device; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- To init svm device using dts, and init the hi1910 and hi1980 cores for ai; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- to init the svm device and remove the svm device, and add a empty functions to init the hi1910 and hi1980 cores for ai; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- add open function to this svm drv, and this open function is a empty function; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 Jiankang Chen 提交于
ascend inclusion category: feature bugzilla: 16554 CVE: NA -------- add svm driver framework for hi1910 and hi1980, fistly we add the acpi driver for hi1980;However, we design the structure for svm; Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com> Signed-off-by: NLijun Fang <fanglijun3@huawei.com> Reviewed-by: NLi Zefan <lizefan@huawei.com> Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-
由 zhengbin 提交于
hulk inclusion category: bugfix bugzilla: 23457 CVE: NA --------------------------- kmsan report a warning in 5.1-rc4: BUG: KMSAN: uninit-value in sr_get_events drivers/scsi/sr.c:207 [inline] BUG: KMSAN: uninit-value in sr_check_events+0x2cf/0x1090 drivers/scsi/sr.c:243 CPU: 1 PID: 13858 Comm: syz-executor.0 Tainted: G B 5.1.0-rc4+ #8 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x173/0x1d0 lib/dump_stack.c:113 kmsan_report+0x131/0x2a0 mm/kmsan/kmsan.c:619 __msan_warning+0x7a/0xf0 mm/kmsan/kmsan_instr.c:310 sr_get_events drivers/scsi/sr.c:207 [inline] sr_check_events+0x2cf/0x1090 drivers/scsi/sr.c:243 The reason is as follows: sr_get_events struct scsi_sense_hdr sshdr; -->uninit scsi_execute_req -->If fail, will not set sshdr scsi_sense_valid(&sshdr) -->access sshdr We can init sshdr in sr_get_events, but there have many callers of scsi_execute, scsi_execute_req, we have to troubleshoot all callers, the simpler way is init sshdr in __scsi_execute. Signed-off-by: Nzhengbin <zhengbin13@huawei.com> Reviewed-by: NJason Yan <yanaijie@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
-