Kevin Hao
146f086a40
irqdomain: Fix a memory leak in irq_domain_push_irq()
commit 0f394daef89b38d58c91118a2b08b8a1b316703b upstream.
Fix a memory leak reported by kmemleak:
unreferenced object 0xffff000bc6f50e80 (size 128):
comm "kworker/23:2", pid 201, jiffies 4294894947 (age 942.132s)
hex dump (first 32 bytes):
00 00 00 00 41 00 00 00 86 c0 03 00 00 00 00 00 ....A...........
00 a0 b2 c6 0b 00 ff ff 40 51 fd 10 00 80 ff ff ........@Q......
backtrace:
[<00000000e62d2240>] kmem_cache_alloc_trace+0x1a4/0x320
[<00000000279143c9>] irq_domain_push_irq+0x7c/0x188
[<00000000d9f4c154>] thunderx_gpio_probe+0x3ac/0x438
[<00000000fd09ec22>] pci_device_probe+0xe4/0x198
[<00000000d43eca75>] really_probe+0xdc/0x320
[<00000000d3ebab09>] driver_probe_device+0x5c/0xf0
[<000000005b3ecaa0>] __device_attach_driver+0x88/0xc0
[<000000004e5915f5>] bus_for_each_drv+0x7c/0xc8
[<0000000079d4db41>] __device_attach+0xe4/0x140
[<00000000883bbda9>] device_initial_probe+0x18/0x20
[<000000003be59ef6>] bus_probe_device+0x98/0xa0
[<0000000039b03d3f>] deferred_probe_work_func+0x74/0xa8
[<00000000870934ce>] process_one_work+0x1c8/0x470
[<00000000e3cce570>] worker_thread+0x1f8/0x428
[<000000005d64975e>] kthread+0xfc/0x128
[<00000000f0eaa764>] ret_from_fork+0x10/0x18
Fixes: 495c38d300 ("irqdomain: Add irq_domain_{push,pop}_irq() functions")
Signed-off-by: Kevin Hao <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
|
2020-02-11 04:35:14 -08:00 |
| .. |
|
bpf
|
xdp: Fix cleanup on map free for devmap_hash map type
|
2020-01-26 10:01:08 +01:00 |
|
cgroup
|
cgroup: Prevent double killing of css when enabling threaded cgroup
|
2020-02-05 21:22:42 +00:00 |
|
configs
|
|
|
|
debug
|
kgdb: don't use a notifier to enter kgdb at panic; call directly
|
2019-09-25 17:51:40 -07:00 |
|
dma
|
dma-direct: don't check swiotlb=force in dma_direct_map_resource
|
2020-01-26 10:01:08 +01:00 |
|
events
|
perf: Correctly handle failed perf_get_aux_event()
|
2020-01-23 08:22:33 +01:00 |
|
gcov
|
Revert "um: Enable CONFIG_CONSTRUCTORS"
|
2020-02-01 09:34:53 +00:00 |
|
irq
|
irqdomain: Fix a memory leak in irq_domain_push_irq()
|
2020-02-11 04:35:14 -08:00 |
|
livepatch
|
livepatch: Nullify obj->mod in klp_module_coming()'s error path
|
2019-08-19 13:03:37 +02:00 |
|
locking
|
locking/lockdep: Fix buffer overrun problem in stack_trace[]
|
2020-01-23 08:22:39 +01:00 |
|
power
|
PM: hibernate: fix crashes with init_on_free=1
|
2020-01-29 16:45:25 +01:00 |
|
printk
|
Merge branch 'for-5.4' into for-linus
|
2019-09-16 12:54:25 +02:00 |
|
rcu
|
rcu: Use READ_ONCE() for ->expmask in rcu_read_unlock_special()
|
2020-02-11 04:35:08 -08:00 |
|
sched
|
sched/cpufreq: Move the cfs_rq_util_change() call to cpufreq_update_util()
|
2020-01-26 10:01:08 +01:00 |
|
time
|
tick/sched: Annotate lockless access to last_jiffies_update
|
2020-01-23 08:22:55 +01:00 |
|
trace
|
tracing: Fix sched switch start/stop refcount racy updates
|
2020-02-11 04:35:07 -08:00 |
|
.gitignore
|
|
|
|
acct.c
|
|
|
|
async.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
|
2019-06-05 17:37:17 +02:00 |
|
audit.c
|
audit/stable-5.3 PR 20190702
|
2019-07-08 18:55:42 -07:00 |
|
audit.h
|
audit/stable-5.3 PR 20190702
|
2019-07-08 18:55:42 -07:00 |
|
audit_fsnotify.c
|
|
|
|
audit_tree.c
|
|
|
|
audit_watch.c
|
audit_get_nd(): don't unlock parent too early
|
2019-11-10 11:56:55 -05:00 |
|
auditfilter.c
|
audit/stable-5.3 PR 20190702
|
2019-07-08 18:55:42 -07:00 |
|
auditsc.c
|
|
|
|
backtracetest.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
|
2019-06-05 17:37:17 +02:00 |
|
bounds.c
|
|
|
|
capability.c
|
|
|
|
compat.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
configs.c
|
kernel/configs: Replace GPL boilerplate code with SPDX identifier
|
2019-07-30 18:34:15 +02:00 |
|
context_tracking.c
|
|
|
|
cpu.c
|
cpu/SMT: Fix x86 link error without CONFIG_SYSFS
|
2020-01-23 08:22:36 +01:00 |
|
cpu_pm.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282
|
2019-06-05 17:36:37 +02:00 |
|
crash_core.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 230
|
2019-06-19 17:09:06 +02:00 |
|
crash_dump.c
|
|
|
|
cred.c
|
keys: Fix request_key() cache
|
2020-01-17 19:48:42 +01:00 |
|
delayacct.c
|
|
|
|
dma.c
|
|
|
|
elfcore.c
|
kernel/elfcore.c: include proper prototypes
|
2019-09-25 17:51:39 -07:00 |
|
exec_domain.c
|
|
|
|
exit.c
|
exit: panic before exit_mm() on global init exit
|
2020-01-09 10:20:01 +01:00 |
|
extable.c
|
extable: Add function to search only kernel exception table
|
2019-08-21 22:23:48 +10:00 |
|
fail_function.c
|
fail_function: no need to check return value of debugfs_create functions
|
2019-06-03 15:49:06 +02:00 |
|
fork.c
|
clone3: ensure copy_thread_tls is implemented
|
2020-01-14 20:08:35 +01:00 |
|
freezer.c
|
Revert "libata, freezer: avoid block device removal while system is frozen"
|
2019-10-06 09:11:37 -06:00 |
|
futex.c
|
futex: Prevent exit livelock
|
2019-11-29 10:10:14 +01:00 |
|
gen_kheaders.sh
|
kheaders: substituting --sort in archive creation
|
2019-10-17 09:08:19 +09:00 |
|
groups.c
|
|
|
|
hung_task.c
|
|
|
|
iomem.c
|
mm/nvdimm: add is_ioremap_addr and use that to check ioremap address
|
2019-07-12 11:05:40 -07:00 |
|
irq_work.c
|
|
|
|
jump_label.c
|
jump_label: Don't warn on __exit jump entries
|
2019-08-29 15:10:10 +01:00 |
|
kallsyms.c
|
kallsyms: Don't let kallsyms_lookup_size_offset() fail on retrieving the first symbol
|
2019-08-27 16:19:56 +01:00 |
|
kcmp.c
|
|
|
|
Kconfig.freezer
|
|
|
|
Kconfig.hz
|
|
|
|
Kconfig.locks
|
|
|
|
Kconfig.preempt
|
sched/rt, Kconfig: Unbreak def/oldconfig with CONFIG_PREEMPT=y
|
2019-07-22 18:05:11 +02:00 |
|
kcov.c
|
|
|
|
kexec.c
|
kexec_load: Disable at runtime if the kernel is locked down
|
2019-08-19 21:54:15 -07:00 |
|
kexec_core.c
|
kexec: bail out upon SIGKILL when allocating memory.
|
2019-09-25 17:51:40 -07:00 |
|
kexec_elf.c
|
kexec_elf: support 32 bit ELF files
|
2019-09-06 23:58:44 +02:00 |
|
kexec_file.c
|
Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
|
2019-09-28 08:14:15 -07:00 |
|
kexec_internal.h
|
|
|
|
kheaders.c
|
|
|
|
kmod.c
|
|
|
|
kprobes.c
|
Tracing updates:
|
2019-09-20 11:19:48 -07:00 |
|
ksysfs.c
|
|
|
|
kthread.c
|
kthread: make __kthread_queue_delayed_work static
|
2019-10-16 09:20:58 -07:00 |
|
latencytop.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
|
2019-06-05 17:37:17 +02:00 |
|
Makefile
|
Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity
|
2019-09-27 19:37:27 -07:00 |
|
module-internal.h
|
|
|
|
module.c
|
kernel/module.c: wakeup processes in module_wq on module unload
|
2020-01-09 10:20:02 +01:00 |
|
module_signature.c
|
MODSIGN: Export module signature definitions
|
2019-08-05 18:39:56 -04:00 |
|
module_signing.c
|
MODSIGN: Export module signature definitions
|
2019-08-05 18:39:56 -04:00 |
|
notifier.c
|
|
|
|
nsproxy.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
|
2019-06-05 17:37:17 +02:00 |
|
padata.c
|
padata: remove cpu_index from the parallel_queue
|
2019-09-13 21:15:41 +10:00 |
|
panic.c
|
panic: ensure preemption is disabled during panic()
|
2019-10-07 15:47:19 -07:00 |
|
params.c
|
lockdown: Lock down module params that specify hardware parameters (eg. ioport)
|
2019-08-19 21:54:16 -07:00 |
|
pid.c
|
kernel/pid.c: convert struct pid count to refcount_t
|
2019-07-16 19:23:24 -07:00 |
|
pid_namespace.c
|
proc/sysctl: add shared variables for range check
|
2019-07-18 17:08:07 -07:00 |
|
profile.c
|
|
|
|
ptrace.c
|
ptrace: reintroduce usage of subjective credentials in ptrace_has_cap()
|
2020-01-23 08:22:36 +01:00 |
|
range.c
|
|
|
|
reboot.c
|
|
|
|
relay.c
|
|
|
|
resource.c
|
mm/memory_hotplug.c: use PFN_UP / PFN_DOWN in walk_system_ram_range()
|
2019-09-24 15:54:09 -07:00 |
|
rseq.c
|
|
|
|
seccomp.c
|
seccomp: Check that seccomp_notif is zeroed out by the user
|
2020-01-09 10:19:57 +01:00 |
|
signal.c
|
cgroup: freezer: call cgroup_enter_frozen() with preemption disabled in ptrace_stop()
|
2019-10-11 08:39:57 -07:00 |
|
smp.c
|
smp: Warn on function calls from softirq context
|
2019-07-20 11:27:16 +02:00 |
|
smpboot.c
|
|
|
|
smpboot.h
|
|
|
|
softirq.c
|
Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2019-07-08 11:01:13 -07:00 |
|
stackleak.c
|
|
|
|
stacktrace.c
|
stacktrace: Don't skip first entry on noncurrent tasks
|
2019-11-04 21:19:25 +01:00 |
|
stop_machine.c
|
stop_machine: Avoid potential race behaviour
|
2019-10-17 12:47:12 +02:00 |
|
sys.c
|
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2019-09-17 12:35:15 -07:00 |
|
sys_ni.c
|
arch: handle arches who do not yet define clone3
|
2019-06-21 01:54:53 +02:00 |
|
sysctl.c
|
kernel: sysctl: make drop_caches write-only
|
2020-01-04 19:18:32 +01:00 |
|
sysctl_binary.c
|
|
|
|
task_work.c
|
|
|
|
taskstats.c
|
taskstats: fix data-race
|
2020-01-09 10:19:54 +01:00 |
|
test_kprobes.c
|
|
|
|
torture.c
|
torture: Remove exporting of internal functions
|
2019-08-01 14:30:22 -07:00 |
|
tracepoint.c
|
The main changes in this release include:
|
2019-07-18 11:51:00 -07:00 |
|
tsacct.c
|
|
|
|
ucount.c
|
proc/sysctl: add shared variables for range check
|
2019-07-18 17:08:07 -07:00 |
|
uid16.c
|
|
|
|
uid16.h
|
|
|
|
umh.c
|
|
|
|
up.c
|
smp: Remove smp_call_function() and on_each_cpu() return values
|
2019-06-23 14:26:26 +02:00 |
|
user-return-notifier.c
|
|
|
|
user.c
|
Keyrings namespacing
|
2019-07-08 19:36:47 -07:00 |
|
user_namespace.c
|
Keyrings namespacing
|
2019-07-08 19:36:47 -07:00 |
|
utsname.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
|
2019-06-05 17:37:17 +02:00 |
|
utsname_sysctl.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
|
2019-06-05 17:37:17 +02:00 |
|
watchdog.c
|
watchdog: Mark watchdog_hrtimer to expire in hard interrupt context
|
2019-08-01 20:51:20 +02:00 |
|
watchdog_hld.c
|
|
|
|
workqueue.c
|
workqueue: Add RCU annotation for pwq list walk
|
2020-01-26 10:01:07 +01:00 |
|
workqueue_internal.h
|
|
|