Re: [PATCH v5 0/6] KASan for arm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Abbott,

I gave a quick whirl to your KASAN patches on top of current linux-next on
NVIDIA Tegra20 and here are couple notes:

1) Kernel is booting fine.

2) Loading test_kasan.ko makes KASAN to trap faulty memory accesses.

3) Running Tegra GPU 2D/3D tests works without any issue.

4) I wanted to try Tegra's video decoder driver under KASAN, but unfortunately
Xorg server and video player processes are getting stuck consuming 100% CPU and
processes are not KILL'able.

I've tried to disable Opentegra Xorg driver and result is the same, you should
be able to reproduce the issue by just running some desktop environment.

5) There is a splat during kernels boot-up if CONFIG_FTRACE=y and
CONFIG_THUMB2_KERNEL=y.

ftrace: allocating 40389 entries in 79 pages
------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at arch/arm/kernel/insn.c:15 __arm_gen_branch+0x7f/0x84
Modules linked in:
CPU: 0 PID: 0 Comm: swapper Not tainted
4.18.0-rc7-next-20180801-00128-gb79e9ca8be49 #196
Hardware name: NVIDIA Tegra SoC (Flattened Device Tree)
[<c0110599>] (unwind_backtrace) from [<c010c1e5>] (show_stack+0x11/0x14)
[<c010c1e5>] (show_stack) from [<c0c3534b>] (dump_stack+0x77/0x88)
[<c0c3534b>] (dump_stack) from [<c0121a85>] (__warn+0xd5/0xec)
[<c0121a85>] (__warn) from [<c0121b2b>] (warn_slowpath_null+0x2f/0x34)
[<c0121b2b>] (warn_slowpath_null) from [<c010fa5b>] (__arm_gen_branch+0x7f/0x84)
[<c010fa5b>] (__arm_gen_branch) from [<c010f9c9>] (ftrace_make_nop+0x19/0x2c)
[<c010f9c9>] (ftrace_make_nop) from [<c01d4c07>] (ftrace_process_locs+0x273/0x410)
[<c01d4c07>] (ftrace_process_locs) from [<c120fb8d>] (ftrace_init+0x6f/0xae)
[<c120fb8d>] (ftrace_init) from [<c1200a6b>] (start_kernel+0x1a5/0x386)
[<c1200a6b>] (start_kernel) from [<00000000>] (  (null))
random: get_random_bytes called from print_oops_end_marker+0x3f/0x54 with
crng_init=0
---[ end trace 67fe4bda962cecc8 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:2059 ftrace_bug+0x1d7/0x28c
Modules linked in:
CPU: 0 PID: 0 Comm: swapper Tainted: G        W
4.18.0-rc7-next-20180801-00128-gb79e9ca8be49 #196
Hardware name: NVIDIA Tegra SoC (Flattened Device Tree)
[<c0110599>] (unwind_backtrace) from [<c010c1e5>] (show_stack+0x11/0x14)
[<c010c1e5>] (show_stack) from [<c0c3534b>] (dump_stack+0x77/0x88)
[<c0c3534b>] (dump_stack) from [<c0121a85>] (__warn+0xd5/0xec)
[<c0121a85>] (__warn) from [<c0121b2b>] (warn_slowpath_null+0x2f/0x34)
[<c0121b2b>] (warn_slowpath_null) from [<c01d48df>] (ftrace_bug+0x1d7/0x28c)
[<c01d48df>] (ftrace_bug) from [<c01d4c1f>] (ftrace_process_locs+0x28b/0x410)
[<c01d4c1f>] (ftrace_process_locs) from [<c120fb8d>] (ftrace_init+0x6f/0xae)
[<c120fb8d>] (ftrace_init) from [<c1200a6b>] (start_kernel+0x1a5/0x386)
[<c1200a6b>] (start_kernel) from [<00000000>] (  (null))
---[ end trace 67fe4bda962cecc9 ]---
ftrace failed to modify
[<c120034e>] set_reset_devices+0x2/0x16
 actual:   52:f0:1c:ed
Initializing ftrace call sites
ftrace record flags: 0
 (0)
                expected tramp: c010f7dd
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux