Re: [PATCH v2] module: Add log information for loading module failures

2024-06-20 Thread Luis Chamberlain
On Wed, Jun 19, 2024 at 08:30:37AM +, Yusong Gao wrote: > Add log information in kernel-space when loading module failures. > Try to load the unsigned module and the module with bad signature > when set 1 to /sys/module/module/parameters/sig_enforce. > > Unsigned module case: &

[PATCH v2] module: Add log information for loading module failures

2024-06-19 Thread Yusong Gao
Add log information in kernel-space when loading module failures. Try to load the unsigned module and the module with bad signature when set 1 to /sys/module/module/parameters/sig_enforce. Unsigned module case: (linux) insmod unsigned.ko [ 18.714661] Loading of unsigned module is rejected

Re: [PATCH] module: Add log information for loading module failures

2024-06-19 Thread Yusong Gao
On 6/19/24 02:54, Luis Chamberlain wrote: On Fri, Jun 14, 2024 at 09:25:19AM +, Yusong Gao wrote: Add log information in kernel-space when loading module failures. Try to load the unsigned module and the module with bad signature when set 1 to /sys/module/module/parameters/sig_enforce

Re: [PATCH] module: Add log information for loading module failures

2024-06-18 Thread Luis Chamberlain
On Fri, Jun 14, 2024 at 09:25:19AM +, Yusong Gao wrote: > Add log information in kernel-space when loading module failures. > Try to load the unsigned module and the module with bad signature > when set 1 to /sys/module/module/parameters/sig_enforce. > > Unsigned module case: &

[PATCH] module: Add log information for loading module failures

2024-06-14 Thread Yusong Gao
Add log information in kernel-space when loading module failures. Try to load the unsigned module and the module with bad signature when set 1 to /sys/module/module/parameters/sig_enforce. Unsigned module case: (linux) insmod unsigned.ko [ 18.714661] Loading of unsigned module is rejected

Re: [PATCH v3 11/25] media: i2c: imx258: Add get_selection for pixel array information

2024-04-08 Thread Luis Garcia
On 4/3/24 12:46, Pavel Machek wrote: > Hi! > >> Libcamera requires the cropping information for each mode, so >> add this information to the driver. > >> @@ -116,6 +124,9 @@ struct imx258_mode { >> u32 link_freq_index; >> /* Default register v

Re: [PATCH v3 11/25] media: i2c: imx258: Add get_selection for pixel array information

2024-04-06 Thread Luis Garcia
On 4/3/24 12:46, Pavel Machek wrote: > Hi! > >> Libcamera requires the cropping information for each mode, so >> add this information to the driver. > >> @@ -116,6 +124,9 @@ struct imx258_mode { >> u32 link_freq_index; >> /* Default register v

Re: [PATCH] vhost: correct misleading printing information

2024-03-15 Thread Xianting Tian
it is a very minor fix, I think it can be applied 在 2024/3/11 下午4:21, Xianting Tian 写道: Guest moved avail idx not used idx when we need to print log if '(vq->avail_idx - last_avail_idx) > vq->num', so fix it. Signed-off-by: Xianting Tian --- drivers/vhost/vhost.c | 2 +- 1 file changed, 1

[PATCH] vhost: correct misleading printing information

2024-03-11 Thread Xianting Tian
Guest moved avail idx not used idx when we need to print log if '(vq->avail_idx - last_avail_idx) > vq->num', so fix it. Signed-off-by: Xianting Tian --- drivers/vhost/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index

[PATCH] ring-buffer: Add interrupt information to dump of data sub-buffer

2023-12-19 Thread Steven Rostedt
ust assume that if the payload is larger than a trace entry, that it is a trace entry. As trace entries have the interrupt context information saved in a flags field, look at that location and report the output of the flags. If the payload is not a trace entry, there's no way to really know, and the i

Re: [PATCH v2] ring-buffer: Add interrupt information to dump of data sub-buffer

2023-12-18 Thread Steven Rostedt
On Mon, 18 Dec 2023 17:01:06 -0500 Steven Rostedt wrote: > @@ -3347,7 +3418,8 @@ static void check_buffer(struct ring_buffer_per_cpu > *cpu_buffer, > } > } > if ((full && ts > info->ts) || > - (!full && ts + info->delta != info->ts)) { > + (!full && ts

[PATCH v2] ring-buffer: Add interrupt information to dump of data sub-buffer

2023-12-18 Thread Steven Rostedt
ust assume that if the payload is larger than a trace entry, that it is a trace entry. As trace entries have the interrupt context information saved in a flags field, look at that location and report the output of the flags. If the payload is not a trace entry, there's no way to really know, and the i

[PATCH] ring-buffer: Add interrupt information to dump of data sub-buffer

2023-12-18 Thread Steven Rostedt
ust assume that if the payload is larger than a trace entry, that it is a trace entry. As trace entries have the interrupt context information saved in a flags field, look at that location and report the output of the flags. If the payload is not a trace entry, there's no way to really know, and the i

Re: [PATCH] printk: add cpu id information to printk() output

2023-09-15 Thread Petr Mladek
*/ - if (caller_id != info->caller_id) + if (!match(ci, >caller_info) goto fail; if (BLK_DATALESS(>text_blk_lpos)) { diff --git a/kernel/printk/printk_ringbuffer.h b/kernel/printk/printk_ringbuffer.h index 18cd25e489b8..9934353965d4

RE: [PATCH] printk: add cpu id information to printk() output

2023-09-15 Thread Luck, Tony
> + return in_task() ? task_pid_nr(current) | (smp_processor_id() << > CPU_ID_SHIFT) : There are contexts and CONFIG options around pre-emption where smp_processor_id() will throw a warning. Use raw_smp_processor_id(). -Tony

Re: [PATCH] printk: add cpu id information to printk() output

2023-09-15 Thread Greg KH
On Fri, Sep 15, 2023 at 04:46:02PM +0800, Enlin Mu wrote: > John Ogness 于2023年9月15日周五 16:34写道: > > > > On 2023-09-15, Enlin Mu wrote: > > > Sometimes we want to print cpu id of printk() messages to consoles > > > > > > diff --git a/include/linux/threads.h b/include/linux/threads.h > > > index

Re: [PATCH] printk: add cpu id information to printk() output

2023-09-15 Thread Greg KH
On Fri, Sep 15, 2023 at 03:40:34PM +0800, Enlin Mu wrote: > From: Enlin Mu > > Sometimes we want to print cpu id of printk() messages to consoles This is rejected every few years. What has changes from the previous times this was sent? And why can't you use trace_printk()? thanks, greg k-h

Re: [PATCH] printk: add cpu id information to printk() output

2023-09-15 Thread Enlin Mu
John Ogness 于2023年9月15日周五 16:34写道: > > On 2023-09-15, Enlin Mu wrote: > > Sometimes we want to print cpu id of printk() messages to consoles > > > > diff --git a/include/linux/threads.h b/include/linux/threads.h > > index c34173e6c5f1..6700bd9a174f 100644 > > --- a/include/linux/threads.h > >

Re: [PATCH] printk: add cpu id information to printk() output

2023-09-15 Thread John Ogness
On 2023-09-15, Enlin Mu wrote: > Sometimes we want to print cpu id of printk() messages to consoles > > diff --git a/include/linux/threads.h b/include/linux/threads.h > index c34173e6c5f1..6700bd9a174f 100644 > --- a/include/linux/threads.h > +++ b/include/linux/threads.h > @@ -34,6 +34,9 @@ >

[PATCH] printk: add cpu id information to printk() output

2023-09-15 Thread Enlin Mu
From: Enlin Mu Sometimes we want to print cpu id of printk() messages to consoles Signed-off-by: Enlin Mu --- include/linux/threads.h | 3 +++ kernel/printk/printk.c | 18 +- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/include/linux/threads.h

Re: [PATCH v2] virtio_pmem: populate numa information

2022-12-07 Thread Gupta, Pankaj
I'll take a look. Generally if you want my attention you should CC me on the patch. Sorry for that! Did not notice the entire Cc list earlier. Best regards, Pankaj

Re: [PATCH v2] virtio_pmem: populate numa information

2022-12-07 Thread Michael S. Tsirkin
On Wed, Dec 07, 2022 at 05:09:42AM +0100, Gupta, Pankaj wrote: > +Cc [MST, virtualization-list] > > Hi Dan, MST, > > > This patch is reviewed and tested. Is there anything that needs to be > > done from my side (e.g. sync with mainline)? > > If there are no further comments, Can we please merge

Re: [PATCH v2] virtio_pmem: populate numa information

2022-12-06 Thread Gupta, Pankaj
+Cc [MST, virtualization-list] Hi Dan, MST, This patch is reviewed and tested. Is there anything that needs to be done from my side (e.g. sync with mainline)? If there are no further comments, Can we please merge this patch? Thank You, Pankaj (Adding my alternative email address to this

Re: [PATCH v2] virtio_pmem: populate numa information

2022-12-06 Thread Michael Sammler
This patch is reviewed and tested. Is there anything that needs to be done from my side (e.g. sync with mainline)? (Adding my alternative email address to this thread as I will soon lose access to the address I am sending this email from.)

Re: [PATCH v1] virtio_pmem: populate numa information

2022-11-16 Thread Pankaj Gupta
> > > > > > > > Compute the numa information for a virtio_pmem device from the > > > > > > > > memory > > > > > > > > range of the device. Previously, the target_node was always 0 > > > > &

[PATCH v2] virtio_pmem: populate numa information

2022-11-15 Thread Michael Sammler
Compute the numa information for a virtio_pmem device from the memory range of the device. Previously, the target_node was always 0 since the ndr_desc.target_node field was never explicitly set. The code for computing the numa node is taken from cxl_pmem_region_probe in drivers/cxl/pmem.c. Signed

Re: [PATCH v1] virtio_pmem: populate numa information

2022-11-14 Thread Mina Almasry
On Sun, Nov 13, 2022 at 9:44 AM Pankaj Gupta wrote: > > > > Pankaj Gupta wrote: > > > > > > > Compute the numa information for a virtio_pmem device from the > > > > > > > memory > > > > > > > range o

Re: [PATCH v1] virtio_pmem: populate numa information

2022-11-13 Thread Pankaj Gupta
> > Pankaj Gupta wrote: > > > > > > Compute the numa information for a virtio_pmem device from the > > > > > > memory > > > > > > range of the device. Previously, the target_node was always 0 since > > > &g

Re: [PATCH v1] virtio_pmem: populate numa information

2022-11-11 Thread Mina Almasry
On Wed, Oct 26, 2022 at 2:50 PM Dan Williams wrote: > > Pankaj Gupta wrote: > > > > > Compute the numa information for a virtio_pmem device from the memory > > > > > range of the device. Previously, the target_node was always 0 since > > > > >

Re: [PATCH v1] virtio_pmem: populate numa information

2022-10-26 Thread Dan Williams
Pankaj Gupta wrote: > > > > Compute the numa information for a virtio_pmem device from the memory > > > > range of the device. Previously, the target_node was always 0 since > > > > the ndr_desc.target_node field was never explicitly set. The code for > >

Re: [PATCH v1] virtio_pmem: populate numa information

2022-10-26 Thread Pasha Tatashin
On Mon, Oct 17, 2022 at 1:11 PM Michael Sammler wrote: > > Compute the numa information for a virtio_pmem device from the memory > range of the device. Previously, the target_node was always 0 since > the ndr_desc.target_node field was never explicitly set. The code for > computin

Re: [PATCH v1] virtio_pmem: populate numa information

2022-10-26 Thread Pankaj Gupta
> > > Compute the numa information for a virtio_pmem device from the memory > > > range of the device. Previously, the target_node was always 0 since > > > the ndr_desc.target_node field was never explicitly set. The code for > > > computing the numa node

Re: [PATCH v1] virtio_pmem: populate numa information

2022-10-21 Thread Michael Sammler
Hi Pankaj, Thank you for looking at the patch. > > > Compute the numa information for a virtio_pmem device from the memory > > range of the device. Previously, the target_node was always 0 since > > the ndr_desc.target_node field was never explicitly set. The code for > &

Re: [PATCH v1] virtio_pmem: populate numa information

2022-10-21 Thread Pankaj Gupta
> Compute the numa information for a virtio_pmem device from the memory > range of the device. Previously, the target_node was always 0 since > the ndr_desc.target_node field was never explicitly set. The code for > computing the numa node is taken from cxl_pmem_region_probe in &

[PATCH v1] virtio_pmem: populate numa information

2022-10-17 Thread Michael Sammler
Compute the numa information for a virtio_pmem device from the memory range of the device. Previously, the target_node was always 0 since the ndr_desc.target_node field was never explicitly set. The code for computing the numa node is taken from cxl_pmem_region_probe in drivers/cxl/pmem.c. Signed

[PATCH v2 5/5] scsi: Set allocation length to 255 for ATA Information VPD page

2021-04-20 Thread Maciej W. Rozycki
Set the allocation length to 255 for the ATA Information VPD page requested in the WRITE SAME handler, so as not to limit information examined by `scsi_get_vpd_page' in the supported vital product data pages unnecessarily. Originally it was thought that Areca hardware may have issues

Re: [PATCH 5/5] scsi: Set allocation length to 255 for ATA Information VPD page

2021-04-16 Thread Maciej W. Rozycki
On Thu, 15 Apr 2021, Nix wrote: > > Set the allocation length to 255 for the ATA Information VPD page > > requested in the WRITE SAME handler, so as not to limit information > > examined by `scsi_get_vpd_page' in the supported vital product data > > pages unnecessa

Re: [PATCH 5/5] scsi: Set allocation length to 255 for ATA Information VPD page

2021-04-15 Thread Nix
On 14 Apr 2021, Maciej W. Rozycki stated: > Set the allocation length to 255 for the ATA Information VPD page > requested in the WRITE SAME handler, so as not to limit information > examined by `scsi_get_vpd_page' in the supported vital product data > pages unnecessarily. &g

Re: [PATCH 10/13] Documentation: Rust general information

2021-04-14 Thread Miguel Ojeda
Hi Nick, Thanks a lot for looking into this! On Thu, Apr 15, 2021 at 12:18 AM Nick Desaulniers wrote: > > Was this TODO meant to be removed, or is it still pending? If pending, > on what? Being able to link back on itself if/once merged? Still pending -- the plan is to upload the docs to

[PATCH 5/5] scsi: Set allocation length to 255 for ATA Information VPD page

2021-04-14 Thread Maciej W. Rozycki
Set the allocation length to 255 for the ATA Information VPD page requested in the WRITE SAME handler, so as not to limit information examined by `scsi_get_vpd_page' in the supported vital product data pages unnecessarily. Originally it was thought that Areca hardware may have issues

Re: [PATCH 10/13] Documentation: Rust general information

2021-04-14 Thread Nick Desaulniers
le > (e.g. drivers) written across the kernel. > > These documents are general information that do not fit particularly > well in the source code, like the quick start guide. > > Co-developed-by: Alex Gaynor > Signed-off-by: Alex Gaynor > Co-developed-by: Geoffrey Thom

[PATCH 10/13] Documentation: Rust general information

2021-04-14 Thread ojeda
information that do not fit particularly well in the source code, like the quick start guide. Co-developed-by: Alex Gaynor Signed-off-by: Alex Gaynor Co-developed-by: Geoffrey Thomas Signed-off-by: Geoffrey Thomas Co-developed-by: Finn Behrens Signed-off-by: Finn Behrens Co-developed-by: Adam

[PATCH net-next 1/2] arm64: dts: qcom: sm8350: add IPA information

2021-04-13 Thread Alex Elder
Add IPA-related nodes and definitions to "sm8350.dtsi", which uses IPA v4.9. Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 51 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi

[PATCH v2, 5/5] arm64: dts: mediatek: mt8183: add gce information for mmsys

2021-04-12 Thread Yongqiang Niu
add gce information for mmsys Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index bc89283..e3a8b10 100644 --- a/arch/arm64/boot

Re: [PATCH] ARM: dts: qcom: sdx55: add IPA information

2021-04-09 Thread kernel test robot
://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Alex-Elder/ARM-dts-qcom-sdx55-add-IPA-information/20210409-235428 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: arm-defconfig (attached as .config) compiler: arm-linux

[PATCH] ARM: dts: qcom: sdx55: add IPA information

2021-04-09 Thread Alex Elder
Add IPA-related nodes and definitions to "sdx55.dtsi". The SMP2P nodes (ipa_smp2p_out and ipa_smp2p_in) are already present. Signed-off-by: Alex Elder --- Note: This depends on this series posted by Mani Sadhasivam:

[PATCH v15 2/7] arm64: dts: mt8183: add svs device information

2021-04-09 Thread Roger Lu
add compitable/reg/irq/clock/efuse setting in svs node Signed-off-by: Roger Lu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index

[PATCH v15 6/7] arm64: dts: mt8192: add svs device information

2021-04-09 Thread Roger Lu
add compitable/reg/irq/clock/efuse/reset setting in svs node Signed-off-by: Roger Lu --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 34 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi

[PATCH 13/14] phy: cadence-torrent: Add debug information for PHY configuration

2021-04-08 Thread Swapnil Jakhade
Display information in probe regarding PHY configuration parameters like single link or multilink protocol information along with number of lanes used for each protocol link. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 32 +-- 1 file

[PATCH v2 0/2] Documentation: misc-devices: Fix documentation issues (indentation, text format, toc) and outdated information

2021-04-06 Thread Gustavo Pimentel
This patch series fixes the documentation issues reported by doing *make htmldocs*, such as: - indentation - text formatting - missing entry on the table of content related to dw-xdata-pcie misc driver index Besides these warnings also fixes some outdated information related to stop file

[PATCH 5.11 146/152] staging: rtl8192e: Change state information from u16 to u8

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit e78836ae76d20f38eed8c8c67f21db97529949da upstream. The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2

[PATCH 5.10 121/126] staging: rtl8192e: Change state information from u16 to u8

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit e78836ae76d20f38eed8c8c67f21db97529949da upstream. The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2

[PATCH 5.4 73/74] staging: rtl8192e: Change state information from u16 to u8

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit e78836ae76d20f38eed8c8c67f21db97529949da upstream. The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2

[PATCH 4.19 55/56] staging: rtl8192e: Change state information from u16 to u8

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit e78836ae76d20f38eed8c8c67f21db97529949da upstream. The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2

[PATCH 4.14 51/52] staging: rtl8192e: Change state information from u16 to u8

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit e78836ae76d20f38eed8c8c67f21db97529949da upstream. The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2

[PATCH 4.9 33/35] staging: rtl8192e: Change state information from u16 to u8

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit e78836ae76d20f38eed8c8c67f21db97529949da upstream. The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2

[PATCH 4.4 28/28] staging: rtl8192e: Change state information from u16 to u8

2021-04-05 Thread Greg Kroah-Hartman
From: Atul Gopinathan commit e78836ae76d20f38eed8c8c67f21db97529949da upstream. The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2

Re: [PATCH] dt-bindings: sound: add address-cells and size-cells information

2021-04-01 Thread Mark Brown
On Wed, 31 Mar 2021 15:10:46 +0800, Jack Yu wrote: > Add address-cells and size-cells information to fix warnings > for rt1019.yaml. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] dt-bindings: sound: add address-cells and size

Re: [PATCH] dt-bindings: sound: add address-cells and size-cells information

2021-03-31 Thread Mark Brown
On Wed, Mar 31, 2021 at 03:10:46PM +0800, Jack Yu wrote: > Add address-cells and size-cells information to fix warnings > for rt1019.yaml. Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look a

[PATCH] dt-bindings: sound: add address-cells and size-cells information

2021-03-31 Thread Jack Yu
Add address-cells and size-cells information to fix warnings for rt1019.yaml. Signed-off-by: Jack Yu --- Documentation/devicetree/bindings/sound/rt1019.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rt1019.yaml b/Documentation/devicetree

[RFC PATCH -tip 1/3] x86/kprobes: Add ORC information to optprobe template

2021-03-30 Thread Masami Hiramatsu
As same as kretprobe_trampoline, move the optprobe template code in the text for making ORC information on that. Signed-off-by: Masami Hiramatsu --- arch/x86/kernel/kprobes/opt.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/kprobes

[PATCH 1/2] MAINTAINERS: update CZ.NIC's Turris information

2021-03-25 Thread Marek Behún
Add all the files maintained by Turris team, not only for MOX, but also for Omnia. Change website. Signed-off-by: Marek Behún --- MAINTAINERS | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8d23b0ec0c90..2cf388c89196 100644 ---

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-25 Thread Ingo Molnar
port for stashing things on the signal stack? > > From what we can tell, the most flexible option though appears to be > just some user settable opaque data in perf_event_attr, that is > copied to siginfo. It'd allow user space to store a pointer or a > hash/key, or just enco

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-25 Thread Marco Elver
rs to be just some user settable opaque data in perf_event_attr, that is copied to siginfo. It'd allow user space to store a pointer or a hash/key, or just encode the relevant information it wants; but could also go further, and add information beyond perf_event_attr, such as things like a signal recei

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-25 Thread Ingo Molnar
* Dmitry Vyukov wrote: > On Wed, Mar 24, 2021 at 3:05 PM Marco Elver wrote: > > > > On Wed, 24 Mar 2021 at 15:01, Peter Zijlstra wrote: > > > > > > One last try, I'll leave it alone now, I promise :-) > > > > This looks like it does what you suggested, thanks! :-) > > > > I'll still need to

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-25 Thread Marco Elver
On Wed, 24 Mar 2021 at 15:15, Dmitry Vyukov wrote: > On Wed, Mar 24, 2021 at 3:12 PM Dmitry Vyukov wrote: > > > On Wed, 24 Mar 2021 at 15:01, Peter Zijlstra wrote: > > > > > > > > One last try, I'll leave it alone now, I promise :-) > > > > > > This looks like it does what you suggested,

[PATCH v14 6/7] arm64: dts: mt8192: add svs device information

2021-03-24 Thread Roger Lu
add compitable/reg/irq/clock/efuse/reset setting in svs node Signed-off-by: Roger Lu --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 34 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi

[PATCH v14 2/7] arm64: dts: mt8183: add svs device information

2021-03-24 Thread Roger Lu
add compitable/reg/irq/clock/efuse setting in svs node Signed-off-by: Roger Lu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 3:12 PM Dmitry Vyukov wrote: > > On Wed, 24 Mar 2021 at 15:01, Peter Zijlstra wrote: > > > > > > One last try, I'll leave it alone now, I promise :-) > > > > This looks like it does what you suggested, thanks! :-) > > > > I'll still need to think about it, because of the

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 3:05 PM Marco Elver wrote: > > On Wed, 24 Mar 2021 at 15:01, Peter Zijlstra wrote: > > > > One last try, I'll leave it alone now, I promise :-) > > This looks like it does what you suggested, thanks! :-) > > I'll still need to think about it, because of the potential

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Marco Elver
On Wed, 24 Mar 2021 at 15:01, Peter Zijlstra wrote: > > One last try, I'll leave it alone now, I promise :-) This looks like it does what you suggested, thanks! :-) I'll still need to think about it, because of the potential problem with modify-signal-races and what the user's synchronization

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Peter Zijlstra
One last try, I'll leave it alone now, I promise :-) --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -778,6 +778,9 @@ struct perf_event { void *security; #endif struct list_headsb_list; + + unsigned long si_uattr; +

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Marco Elver
On Wed, 24 Mar 2021 at 14:21, Peter Zijlstra wrote: > > On Wed, Mar 24, 2021 at 02:01:56PM +0100, Peter Zijlstra wrote: > > On Wed, Mar 24, 2021 at 01:53:48PM +0100, Peter Zijlstra wrote: > > > On Wed, Mar 24, 2021 at 12:24:59PM +0100, Marco Elver wrote: > > > > E

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 02:21:37PM +0100, Peter Zijlstra wrote: > --- a/kernel/events/core.c > +++ b/kernel/events/core.c > @@ -5652,13 +5652,17 @@ static long _perf_ioctl(struct perf_even > return perf_event_query_prog_array(event, (void __user *)arg); > > case

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 02:01:56PM +0100, Peter Zijlstra wrote: > On Wed, Mar 24, 2021 at 01:53:48PM +0100, Peter Zijlstra wrote: > > On Wed, Mar 24, 2021 at 12:24:59PM +0100, Marco Elver wrote: > > > Encode information from breakpoint attributes into siginfo_t, which > &

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 01:53:48PM +0100, Peter Zijlstra wrote: > On Wed, Mar 24, 2021 at 12:24:59PM +0100, Marco Elver wrote: > > Encode information from breakpoint attributes into siginfo_t, which > > helps disambiguate which breakpoint fired. > > > > Note,

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 12:24:59PM +0100, Marco Elver wrote: > Encode information from breakpoint attributes into siginfo_t, which > helps disambiguate which breakpoint fired. > > Note, providing the event fd may be unreliable, since the event may have > bee

[PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Marco Elver
Encode information from breakpoint attributes into siginfo_t, which helps disambiguate which breakpoint fired. Note, providing the event fd may be unreliable, since the event may have been modified (via PERF_EVENT_IOC_MODIFY_ATTRIBUTES) between the event triggering and the signal being delivered

Re: [PATCH v2 2/2] staging: rtl8192e: Change state information from u16 to u8

2021-03-23 Thread Dan Carpenter
Reviewed-by: Dan Carpenter regards, dan carpenter

[PATCH v13 2/7] arm64: dts: mt8183: add svs device information

2021-03-23 Thread Roger Lu
add compitable/reg/irq/clock/efuse setting in svs node Signed-off-by: Roger Lu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index

[PATCH v13 6/7] arm64: dts: mt8192: add svs device information

2021-03-23 Thread Roger Lu
add compitable/reg/irq/clock/efuse/reset setting in svs node Signed-off-by: Roger Lu --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 34 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi

[PATCH v2 2/2] staging: rtl8192e: Change state information from u16 to u8

2021-03-23 Thread Atul Gopinathan
The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2 bytes of data using memcpy(): (In rtllib_rx.c:1972)

[PATCH V2 0/5] powerpc/perf: Export processor pipeline stage cycles information

2021-03-22 Thread Athira Rajeev
Performance Monitoring Unit (PMU) registers in powerpc exports number of cycles elapsed between different stages in the pipeline. Example, sampling registers in ISA v3.1. This patchset implements kernel and perf tools support to expose these pipeline stage cycles using the sample type

Re: net/dev: fix information leak to userspace

2021-03-21 Thread Cong Wang
On Sun, Mar 21, 2021 at 9:34 AM Pavel Machek wrote: > > dev_get_mac_address() does not always initialize whole > structure. Unfortunately, other code copies such structure to > userspace, leaking information. Fix it. Well, most callers already initialize it with a memset() or co

net/dev: fix information leak to userspace

2021-03-21 Thread Pavel Machek
dev_get_mac_address() does not always initialize whole structure. Unfortunately, other code copies such structure to userspace, leaking information. Fix it. Signed-off-by: Pavel Machek (CIP) Cc: sta...@kernel.org diff --git a/net/core/dev.c b/net/core/dev.c index 6c5967e80132..28283a9eb63a

Re: [PATCH 2/3] mm/slub: Add Support for free path information of an object.

2021-03-19 Thread Paul E. McKenney
On Thu, Mar 18, 2021 at 01:35:37PM +0100, Vlastimil Babka wrote: > On 3/16/21 11:37 AM, Maninder Singh wrote: > > Adding support for inforamtion of free path along with allocation > > path of an object: > > > > slab kmalloc-64 start c8ab0140 data offset 64 pointer offset 0 size 64 > > allocated

Re: [PATCH v6 resend 0/3] mm, vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Petr Mladek
On Fri 2021-03-19 18:12:43, Yafang Shao wrote: > The existed pGp shows the names of page flags only, rather than the full > information including section, node, zone, last cpuipid and kasan tag. > While it is not easy to parse these information manually because there > are so many f

Re: [PATCH v6 resend 3/3] vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Petr Mladek
On Fri 2021-03-19 18:12:46, Yafang Shao wrote: > Currently the pGp only shows the names of page flags, rather than > the full information including section, node, zone, last cpupid and > kasan tag. While it is not easy to parse these information manually > because there're so many fl

Re: [PATCH v6 resend 0/3] mm, vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Sergey Senozhatsky
On (21/03/19 18:12), Yafang Shao wrote: > > The existed pGp shows the names of page flags only, rather than the full > information including section, node, zone, last cpuipid and kasan tag. > While it is not easy to parse these information manually because there > are so many flavo

Re: [PATCH v6 resend 0/3] mm, vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Petr Mladek
On Fri 2021-03-19 18:15:19, Yafang Shao wrote: > On Fri, Mar 19, 2021 at 6:13 PM Yafang Shao wrote: > Hi Petr, > > Any comments on this version ? I have been busy this week with some other work. I am going to review the original v6 either later today or the following week. Best Regards, Petr

Re: [PATCH v6 resend 0/3] mm, vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Yafang Shao
On Fri, Mar 19, 2021 at 6:13 PM Yafang Shao wrote: > > The existed pGp shows the names of page flags only, rather than the full > information including section, node, zone, last cpuipid and kasan tag. > While it is not easy to parse these information manually because there > are

[PATCH v6 resend 0/3] mm, vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Yafang Shao
The existed pGp shows the names of page flags only, rather than the full information including section, node, zone, last cpuipid and kasan tag. While it is not easy to parse these information manually because there are so many flavors. We'd better interpret them in printf. To be compitable

[PATCH v6 resend 3/3] vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Yafang Shao
Currently the pGp only shows the names of page flags, rather than the full information including section, node, zone, last cpupid and kasan tag. While it is not easy to parse these information manually because there're so many flavors. Let's interpret them in pGp as well. To be compitable

Re: [PATCH 2/3] mm/slub: Add Support for free path information of an object.

2021-03-18 Thread Vlastimil Babka
On 3/16/21 11:37 AM, Maninder Singh wrote: > Adding support for inforamtion of free path along with allocation > path of an object: > > slab kmalloc-64 start c8ab0140 data offset 64 pointer offset 0 size 64 > allocated at meminfo_proc_show+0x40/0x4fc > [ 20.192078]

Re: [PATCH 1/1] iommu/vt-d: Report more information about invalidation errors

2021-03-18 Thread Joerg Roedel
On Thu, Mar 18, 2021 at 08:53:40AM +0800, Lu Baolu wrote: > When the invalidation queue errors are encountered, dump the information > logged by the VT-d hardware together with the pending queue invalidation > descriptors. > > Signed-off-by: Ashok Raj > Tested-by: Guo Kaijie &

[PATCH 1/1] iommu/vt-d: Report more information about invalidation errors

2021-03-17 Thread Lu Baolu
When the invalidation queue errors are encountered, dump the information logged by the VT-d hardware together with the pending queue invalidation descriptors. Signed-off-by: Ashok Raj Tested-by: Guo Kaijie Signed-off-by: Lu Baolu --- drivers/iommu/intel/dmar.c | 68

[PATCH 2/3] mm/slub: Add Support for free path information of an object.

2021-03-16 Thread Maninder Singh
Adding support for inforamtion of free path along with allocation path of an object: slab kmalloc-64 start c8ab0140 data offset 64 pointer offset 0 size 64 allocated at meminfo_proc_show+0x40/0x4fc [ 20.192078] meminfo_proc_show+0x40/0x4fc [ 20.192263] seq_read_iter+0x18c/0x4c4 [

[PATCH v12 6/7] arm64: dts: mt8192: add svs device information

2021-03-15 Thread Roger Lu
add compitable/reg/irq/clock/efuse/reset setting in svs node Signed-off-by: Roger Lu --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 34 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi

[PATCH v12 2/7] arm64: dts: mt8183: add svs device information

2021-03-15 Thread Roger Lu
add compitable/reg/irq/clock/efuse setting in svs node Signed-off-by: Roger Lu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index

I sent you a mail earlier but not sure if you received it, kindly check your email and get back to me for I have very urgent information to pass to you.

2021-03-15 Thread Kevin Roberts

  1   2   3   4   5   6   7   8   9   10   >