/mnt/linux/linux/tools/testing/selftests/ftrace # ./ftracetest test.d/kprobe/ === Ftrace unit tests === [1] Kprobe dynamic event - adding and removing[ 23.096325] random: crng init done [PASS] [2] Kprobe dynamic event - busy event check [PASS] [3] Kprobe dynamic event with arguments [PASS] [4] Kprobe event with comm arguments [PASS] [5] Kprobe event string type argument [PASS] [6] Kprobe event symbol argument [PASS] [7] Kprobe event argument syntax [PASS] [8] Kprobes event arguments with types [PASS] [9] Kprobe event user-memory access [PASS] [10] Kprobe event auto/manual naming [PASS] [11] Kprobe dynamic event with function tracer [UNSUPPORTED] [12] Kprobe dynamic event - probing module[ 35.643934] [ 35.644691] ********************************************************** [ 35.646434] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** [ 35.648203] ** ** [ 35.649943] ** trace_printk() being used. Allocating extra memory. ** [ 35.651687] ** ** [ 35.653458] ** This means that this is a DEBUG kernel and it is ** [ 35.655195] ** unsafe for production use. ** [ 35.657139] ** ** [ 35.659164] ** If you see this message and you are not debugging ** [ 35.661309] ** the kernel, report this immediately to your vendor! ** [ 35.663515] ** ** [ 35.666091] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** [ 35.668081] ********************************************************** [ 36.012954] trace_kprobe: This probe might be able to register after target module is loaded. Continue. [PASS] [13] Create/delete multiprobe on kprobe event [PASS] [14] Kprobe event parser error log check [PASS] [15] Kretprobe dynamic event with arguments [PASS] [16] Kretprobe dynamic event with maxactive [PASS] [17] Register/unregister many kprobe events[ 44.705466] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 44.709409] #PF: supervisor read access in kernel mode [ 44.712209] #PF: error_code(0x0000) - not-present page [ 44.714943] PGD 0 P4D 0 [ 44.716647] Oops: 0000 [#1] PREEMPT SMP PTI [ 44.718974] CPU: 6 PID: 0 Comm: swapper/6 Not tainted 5.4.0-rc6+ #21 [ 44.722444] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org 04/01/2014 [ 44.728364] RIP: 0010:poke_int3_handler+0x33/0x70 [ 44.730975] Code: d2 75 04 31 c0 5b c3 f6 87 88 00 00 00 03 75 f3 48 8b 87 80 00 00 00 48 89 fb 48 8d 78 ff 48 8b 05 02 2e 52 01 83 fa 01 7f 17 <48> 39 78 08 75 d3 48 8b 00 48 89 83 80 00 00 00 b8 01 00 00 00 5b [ 44.740402] RSP: 0018:ffffc900001a8c10 EFLAGS: 00010046 [ 44.743458] RAX: 0000000000000000 RBX: ffffc900001a8c38 RCX: ffffffff81800b57 [ 44.747995] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffffff81026ec5 [ 44.751971] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 44.755975] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 44.759931] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 44.763491] FS: 0000000000000000(0000) GS:ffff88807d980000(0000) knlGS:0000000000000000 [ 44.767907] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 44.771655] CR2: 0000000000000008 CR3: 000000000201e000 CR4: 00000000000006a0 [ 44.775980] Call Trace: [ 44.778674] [ 44.782137] do_int3+0xd/0xf0 [ 44.785293] int3+0x42/0x50 [ 44.787917] RIP: 0010:sched_clock+0x6/0x10 [ 44.791439] Code: d3 ea f6 c1 40 48 0f 45 c2 4c 01 c0 65 ff 0d 99 ee fe 7e 74 02 5d c3 e8 f8 ad fd ff 5d c3 66 0f 1f 44 00 00 e8 bb f2 01 00 cc <90> c3 0f 1f 84 00 00 00 00 00 48 81 3d 4d d1 01 01 50 68 02 81 0f [ 44.801796] RSP: 0018:ffffc900001a8d10 EFLAGS: 00000012 [ 44.803725] RAX: 0000000a73bb2eb5 RBX: ffff88807d261c00 RCX: 0000000000000000 [ 44.806400] RDX: 0000000000000004 RSI: 0000000000000004 RDI: ffffffff82556180 [ 44.811333] RBP: ffff88807d018400 R08: 00000014ea591c0b R09: 0000000000000002 [ 44.814454] R10: 0000000000000000 R11: 0000000000000000 R12: ffff88807d261ce0 [ 44.817301] R13: ffff88807d261d20 R14: 00000000000003e8 R15: 0000000000000002 [ 44.819996] ? sched_clock+0x6/0x10 [ 44.821437] trace_clock_local+0xc/0x20 [ 44.822934] ring_buffer_lock_reserve+0x10d/0x410 [ 44.824647] trace_event_buffer_lock_reserve+0x4a/0xf0 [ 44.826265] kprobe_trace_func+0x10e/0x370 [ 44.827724] ? sched_clock+0x6/0x10 [ 44.829895] kprobe_dispatcher+0x39/0x60 [ 44.831685] aggr_pre_handler+0x4c/0x90 [ 44.833441] ? sched_clock+0x5/0x10 [ 44.834356] kprobe_int3_handler+0x101/0x150 [ 44.835569] do_int3+0x36/0xf0 [ 44.836483] int3+0x42/0x50 [ 44.837153] RIP: 0010:sched_clock+0x6/0x10 [ 44.838408] Code: d3 ea f6 c1 40 48 0f 45 c2 4c 01 c0 65 ff 0d 99 ee fe 7e 74 02 5d c3 e8 f8 ad fd ff 5d c3 66 0f 1f 44 00 00 e8 bb f2 01 00 cc <90> c3 0f 1f 84 00 00 00 00 00 48 81 3d 4d d1 01 01 50 68 02 81 0f [ 44.843033] RSP: 0018:ffffc900001a8fc8 EFLAGS: 00000012 [ 44.844519] RAX: 0000000a73bb28c7 RBX: 0000000000000000 RCX: 0000000000000000 [ 44.847686] RDX: 0000000000000004 RSI: 0000000000000004 RDI: ffffffff82556180 [ 44.850484] RBP: 0000000000000000 R08: 00000014ea59103d R09: 0000000000000001 [ 44.852353] R10: 0000000000000000 R11: ffff88807d1a9e58 R12: 0000000000000000 [ 44.854131] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 44.855579] ? sched_clock+0x6/0x10 [ 44.856444] ? sched_clock+0x5/0x10 [ 44.857379] sched_clock_cpu+0xe/0xd0 [ 44.858169] irq_exit+0xb3/0xc0 [ 44.859008] call_function_interrupt+0xf/0x20 [ 44.860194] [ 44.860878] RIP: 0010:default_idle+0x23/0x180 [ 44.862018] Code: ff 90 90 90 90 90 90 41 55 41 54 55 53 e8 35 29 c7 ff 0f 1f 44 00 00 e8 8b af 95 ff e9 07 00 00 00 0f 00 2d d1 cf 40 00 fb f4 18 29 c7 ff 89 c5 0f 1f 44 00 00 5b 5d 41 5c 41 5d c3 65 8b 05 [ 44.865266] RSP: 0018:ffffc9000008feb8 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff03 [ 44.866511] RAX: ffff88807d1a95c0 RBX: 0000000000000006 RCX: 0000000000000000 [ 44.867673] RDX: 0000000000000046 RSI: 0000000000000006 RDI: ffff88807d1a95c0 [ 44.869769] RBP: ffffffff8212da80 R08: 0000000000000001 R09: 0000000000000000 [ 44.872016] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 44.875940] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 44.877908] ? default_idle+0x15/0x180 [ 44.879230] default_idle_call+0x26/0x30 [ 44.880536] do_idle+0x1fe/0x220 [ 44.881485] cpu_startup_entry+0x14/0x20 [ 44.882506] start_secondary+0x152/0x180 [ 44.883410] secondary_startup_64+0xa4/0xb0 [ 44.884147] Modules linked in: [last unloaded: trace_printk] [ 44.885185] CR2: 0000000000000008 [ 44.885846] ---[ end trace b137dd614962e951 ]--- [ 44.886710] RIP: 0010:poke_int3_handler+0x33/0x70 [ 44.887473] Code: d2 75 04 31 c0 5b c3 f6 87 88 00 00 00 03 75 f3 48 8b 87 80 00 00 00 48 89 fb 48 8d 78 ff 48 8b 05 02 2e 52 01 83 fa 01 7f 17 <48> 39 78 08 75 d3 48 8b 00 48 89 83 80 00 00 00 b8 01 00 00 00 5b [ 44.891256] RSP: 0018:ffffc900001a8c10 EFLAGS: 00010046 [ 44.893177] RAX: 0000000000000000 RBX: ffffc900001a8c38 RCX: ffffffff81800b57 [ 44.895179] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffffff81026ec5 [ 44.896443] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 44.897419] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 44.898389] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 44.899375] FS: 0000000000000000(0000) GS:ffff88807d980000(0000) knlGS:0000000000000000 [ 44.900536] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 44.901363] CR2: 0000000000000008 CR3: 000000000201e000 CR4: 00000000000006a0 [ 44.902769] Kernel panic - not syncing: Fatal exception [ 44.904609] Kernel Offset: disabled [ 44.905502] ---[ end Kernel panic - not syncing: Fatal exception ]---