Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos7 - 3.10.0-1062 Kernel Crash - during tracing #142

Closed
tomaszrybicki opened this issue Feb 13, 2020 · 0 comments
Closed

Centos7 - 3.10.0-1062 Kernel Crash - during tracing #142

tomaszrybicki opened this issue Feb 13, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tomaszrybicki
Copy link
Contributor

tomaszrybicki commented Feb 13, 2020

OS: CentOS 7, 3.10.0-1062.el7.x86_64
Crash occurs when workload starts during tracing.

Stack:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000098
IP: [] bio_complete_event+0xac/0x110 [iotrace]

[ 921.400604] Call Trace:
[ 921.400824]
[ 921.401007] [] ? deinit_tracers.isra.3+0x90/0x90 [iotrace]
[ 921.401683] [] iotrace_block_rq_complete+0x4c/0x70 [iotrace]
[ 921.402348] [] blk_update_request+0x116/0x360
[ 921.402885] [] scsi_end_request+0x34/0x1e0
[ 921.403419] [] scsi_io_completion+0x168/0x6a0
[ 921.403955] [] ? irq_exit+0xda/0x110
[ 921.404432] [] scsi_finish_command+0xdc/0x140
[ 921.404966] [] scsi_softirq_done+0x132/0x160
[ 921.405514] [] blk_done_softirq+0x96/0xc0
[ 921.406030] [] __do_softirq+0xf5/0x280
[ 921.406521] [] call_softirq+0x1c/0x30
[ 921.406995] [] do_softirq+0x65/0xa0
[ 921.407479] [] irq_exit+0x105/0x110
[ 921.407938] [] do_IRQ+0x56/0xf0
[ 921.408401] [] common_interrupt+0x162/0x162
[ 921.408914]
[ 921.409110] [] ? ata_sff_pio_task+0x99/0x1d0 [libata]
[ 921.409734] [] process_one_work+0x17f/0x440
[ 921.410271] [] worker_thread+0x126/0x3c0
[ 921.410756] [] ? manage_workers.isra.26+0x2a0/0x2a0
[ 921.411343] [] kthread+0xd1/0xe0
[ 921.411777] [] ? insert_kthread_work+0x40/0x40
[ 921.412338] [] ret_from_fork_nospec_begin+0x21/0x21
[ 921.412917] [] ? insert_kthread_work+0x40/0x40

I narrowed it down to null pointer dereference in bio_complete_event():
bio->bi_bdev
in
dev_id = disk_devt(IOTRACE_BIO_GET_DEV(bio));
(inside the macro)

@tomaszrybicki tomaszrybicki added the bug Something isn't working label Feb 13, 2020
@mmkayPL mmkayPL self-assigned this Feb 24, 2020
mmkayPL added a commit to mmkayPL/standalone-linux-io-tracer that referenced this issue Feb 25, 2020
Fixes issue Open-CAS#142

Signed-off-by: Mateusz Kozlowski <mateusz.kozlowski@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants