• Marco Elver's avatar
    kcsan: Show location access was reordered to · be3f6967
    Marco Elver authored
    Also show the location the access was reordered to. An example report:
    
    | ==================================================================
    | BUG: KCSAN: data-race in test_kernel_wrong_memorder / test_kernel_wrong_memorder
    |
    | read-write to 0xffffffffc01e61a8 of 8 bytes by task 2311 on cpu 5:
    |  test_kernel_wrong_memorder+0x57/0x90
    |  access_thread+0x99/0xe0
    |  kthread+0x2ba/0x2f0
    |  ret_from_fork+0x22/0x30
    |
    | read-write (reordered) to 0xffffffffc01e61a8 of 8 bytes by task 2310 on cpu 7:
    |  test_kernel_wrong_memorder+0x57/0x90
    |  access_thread+0x99/0xe0
    |  kthread+0x2ba/0x2f0
    |  ret_from_fork+0x22/0x30
    |   |
    |   +-> reordered to: test_kernel_wrong_memorder+0x80/0x90
    |
    | Reported by Kernel Concurrency Sanitizer on:
    | CPU: 7 PID: 2310 Comm: access_thread Not tainted 5.14.0-rc1+ #18
    | Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
    | ==================================================================
    Reviewed-by: default avatarBoqun Feng <boqun.feng@gmail.com>
    Signed-off-by: default avatarMarco Elver <elver@google.com>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    be3f6967
report.c 21.6 KB