lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 10 Aug 2020 10:29:50 +0800
From:   Yunfeng Ye <>
To:     <>
CC:     <>, Shiyuan Hu <>,
        Hewenliang <>
Subject: [PATCH] genirq/proc: Show percpu irq affinity

When the "affinity=" cmdline parameter is configured, the interrupt
affinity displayed in the proc directory does not match with that of the
the percu interrupt, and the percu interrupt uses desc->percu_affinity.

So show desc->percu_affinity in show_irq_affinity() for percpu

Signed-off-by: yeyunfeng <>
 kernel/irq/proc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c
index 32c071d7bc03..b9d0fa87b4b4 100644
--- a/kernel/irq/proc.c
+++ b/kernel/irq/proc.c
@@ -52,6 +52,8 @@ static int show_irq_affinity(int type, struct seq_file *m)
 	case AFFINITY:
 		mask = desc->irq_common_data.affinity;
+		if (irqd_is_per_cpu(&desc->irq_data))
+			mask = desc->percpu_affinity;
 		if (irqd_is_setaffinity_pending(&desc->irq_data))
 			mask = desc->pending_mask;

Powered by blists - more mailing lists