ubuntu 17.04: hw-breakpoint in kernel-sapce not working

Bug #1675624 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
High
Seth Forshee
Zesty
Fix Released
High
Seth Forshee

Bug Description

How to reproduce:

$ sudo cat /proc/kallsyms | grep pid_max
  c000000001308794 D pid_max

$ sudo perf record -a --event=mem:0xc000000001308794 sleep 10

$ dmesg
  [ 99.095475] Unable to handle hardware breakpoint. Breakpoint at 0xc000000001308794 will be disabled.
  [ 99.095478] ------------[ cut here ]------------
  [ 99.095480] WARNING: CPU: 27 PID: 3306 at /build/linux-VtwHOM/linux-4.10.0/arch/powerpc/kernel/hw_breakpoint.c:277 hw_breakpoint_handler+0x120/0x230
  ...

System detail:

$ uname -a
Linux tul163-u1704-qemu 4.10.0-13-generic #15-Ubuntu SMP Thu Mar 9 20:27:28 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux

$ cat /etc/*release
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=17.04
  DISTRIB_CODENAME=zesty
  DISTRIB_DESCRIPTION="Ubuntu Zesty Zapus (development branch)"

== Comment: #1 - Ravikumar B. Bangoria <email address hidden> - 2017-03-22 04:29:24 ==
https://patchwork.ozlabs.org/patch/727837/ will solve this issue.

== Comment: #2 - SEETEENA THOUFEEK <email address hidden> - 2017-03-23 01:14:58 ==
Patch is accepted upstream.

https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id=e148bd17f48bd17fca2f4f089ec879

I had build kernel package with the patch included and tested and it is working perfect.

link to the backport kernel debian package is uploaded in box note

https://ibm.ent.box.com/folder/22186913949 under the folder name 152781

== Comment: #3 - SEETEENA THOUFEEK <email address hidden> - 2017-03-23 01:17:02 ==

== Comment: #4 - SEETEENA THOUFEEK <email address hidden> - 2017-03-23 02:17:04 ==
Backported patch and kernel debian package with patch provided.

== Comment: #5 - SEETEENA THOUFEEK <email address hidden> - 2017-03-23 02:17:52 ==
debian package is tested locally and verified.

Revision history for this message
bugproxy (bugproxy) wrote : Kernel debian package with fix (17.04)

Default Comment by Bridge

tags: added: architecture-ppc64le bugnameltc-152781 severity-high targetmilestone-inin1704
Revision history for this message
bugproxy (bugproxy) wrote : powerpc-Emulation-support-for-load-store-instructions-on-LE.patch

Default Comment by Bridge

Changed in ubuntu:
assignee: nobody → Taco Screen team (taco-screen-team)
affects: ubuntu → kernel-package (Ubuntu)
Revision history for this message
Michael Hohnbaum (hohnbaum) wrote : Re: [Bug 1675624] [NEW] ubuntu 17.04: hw-breakpoint in kernel-sapce not working

Leann,

A patch for the Kernel Team to evaluate.

Thanks.

On 03/23/2017 09:10 PM, Launchpad Bug Tracker wrote:
> bugproxy (bugproxy) has assigned this bug to you for Ubuntu:
>
> How to reproduce:
>
> $ sudo cat /proc/kallsyms | grep pid_max
> c000000001308794 D pid_max
>
> $ sudo perf record -a --event=mem:0xc000000001308794 sleep 10
>
> $ dmesg
> [ 99.095475] Unable to handle hardware breakpoint. Breakpoint at 0xc000000001308794 will be disabled.
> [ 99.095478] ------------[ cut here ]------------
> [ 99.095480] WARNING: CPU: 27 PID: 3306 at /build/linux-VtwHOM/linux-4.10.0/arch/powerpc/kernel/hw_breakpoint.c:277 hw_breakpoint_handler+0x120/0x230
> ...
>
> System detail:
>
> $ uname -a
> Linux tul163-u1704-qemu 4.10.0-13-generic #15-Ubuntu SMP Thu Mar 9 20:27:28 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux
>
> $ cat /etc/*release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=17.04
> DISTRIB_CODENAME=zesty
> DISTRIB_DESCRIPTION="Ubuntu Zesty Zapus (development branch)"
>
> == Comment: #1 - Ravikumar B. Bangoria <email address hidden> - 2017-03-22 04:29:24 ==
> https://patchwork.ozlabs.org/patch/727837/ will solve this issue.
>
> == Comment: #2 - SEETEENA THOUFEEK <email address hidden> - 2017-03-23 01:14:58 ==
> Patch is accepted upstream.
>
>
> https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id=e148bd17f48bd17fca2f4f089ec879
>
>
> I had build kernel package with the patch included and tested and it is working perfect.
>
> link to the backport kernel debian package is uploaded in box note
>
> https://ibm.ent.box.com/folder/22186913949 under the folder name 152781
>
> == Comment: #3 - SEETEENA THOUFEEK <email address hidden> - 2017-03-23
> 01:17:02 ==
>
>
> == Comment: #4 - SEETEENA THOUFEEK <email address hidden> - 2017-03-23 02:17:04 ==
> Backported patch and kernel debian package with patch provided.
>
> == Comment: #5 - SEETEENA THOUFEEK <email address hidden> - 2017-03-23 02:17:52 ==
> debian package is tested locally and verified.
>
> ** Affects: ubuntu
> Importance: Undecided
> Assignee: Taco Screen team (taco-screen-team)
> Status: New
>
>
> ** Tags: architecture-ppc64le bugnameltc-152781 severity-high targetmilestone-inin1704

--
Michael Hohnbaum
OIL Program Manager
Power (ppc64el) Development Project Manager
Canonical, Ltd.

affects: kernel-package (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
assignee: Taco Screen team (taco-screen-team) → Canonical Kernel Team (canonical-kernel-team)
importance: Undecided → High
status: New → Triaged
Revision history for this message
Seth Forshee (sforshee) wrote :

This fix has already been applied as part of upstream stable release 4.10.4. It is included in the 4.10.0-15.17 kernel for zesty which is currently in the canonical-kernel-team PPA.

Changed in linux (Ubuntu Zesty):
assignee: Canonical Kernel Team (canonical-kernel-team) → Seth Forshee (sforshee)
status: Triaged → In Progress
status: In Progress → Fix Committed
Revision history for this message
bugproxy (bugproxy) wrote : Kernel debian package with fix (17.04)

Default Comment by Bridge

Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
Changed in linux (Ubuntu Zesty):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.