diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-03-11 09:18:37 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-03-12 14:31:24 +0100 |
| commit | a71bfb62b4fe7d9d02dd09752d8c52a21ccc1209 (patch) | |
| tree | 55d16c44a979e97cf06f815f5f9eaa79535b855e | |
| parent | a6dc4f1d3a9f3d5d24013c2da22fe1e970232137 (diff) | |
pkg/report: skip memchr in linux reports
| -rw-r--r-- | pkg/report/linux.go | 2 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/363 | 58 |
2 files changed, 60 insertions, 0 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index eec9cbe6b..2e4d5a002 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -722,6 +722,7 @@ var linuxStackParams = &stackParams{ "memcpy", "memcmp", "memset", + "memchr", "strcmp", "strncmp", "strcpy", @@ -730,6 +731,7 @@ var linuxStackParams = &stackParams{ "strlen", "strnstr", "strnlen", + "strchr", "copy_to_user", "copy_from_user", "put_user", diff --git a/pkg/report/testdata/linux/report/363 b/pkg/report/testdata/linux/report/363 new file mode 100644 index 000000000..857eef595 --- /dev/null +++ b/pkg/report/testdata/linux/report/363 @@ -0,0 +1,58 @@ +TITLE: KMSAN: uninit-value in tipc_nl_compat_link_set + +[ 110.801407] ================================================================== +[ 110.808906] BUG: KMSAN: uninit-value in memchr+0xce/0x110 +[ 110.814441] CPU: 1 PID: 10859 Comm: syz-executor141 Not tainted 5.0.0+ #11 +[ 110.821436] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 +[ 110.830774] Call Trace: +[ 110.833364] dump_stack+0x173/0x1d0 +[ 110.836990] kmsan_report+0x12e/0x2a0 +[ 110.840807] __msan_warning+0x82/0xf0 +[ 110.844647] memchr+0xce/0x110 +[ 110.847859] tipc_nl_compat_link_set+0x121/0x1550 +[ 110.852697] ? kmsan_get_shadow_origin_ptr+0x60/0x440 +[ 110.857892] ? tipc_nl_compat_link_dump+0x5f0/0x5f0 +[ 110.862909] tipc_nl_compat_doit+0x3aa/0xaf0 +[ 110.867314] ? kmsan_get_shadow_origin_ptr+0x60/0x440 +[ 110.872521] tipc_nl_compat_recv+0x1ae7/0x2750 +[ 110.877112] ? tipc_nl_node_dump+0x1300/0x1300 +[ 110.881693] ? tipc_nl_compat_link_dump+0x5f0/0x5f0 +[ 110.886719] ? tipc_netlink_compat_stop+0x40/0x40 +[ 110.891595] genl_rcv_msg+0x185f/0x1a60 +[ 110.895601] netlink_rcv_skb+0x431/0x620 +[ 110.899653] ? genl_unbind+0x390/0x390 +[ 110.903546] genl_rcv+0x63/0x80 +[ 110.906835] netlink_unicast+0xf3e/0x1020 +[ 110.910993] netlink_sendmsg+0x127f/0x1300 +[ 110.915246] ___sys_sendmsg+0xdb9/0x11b0 +[ 110.919307] ? netlink_getsockopt+0x1460/0x1460 +[ 110.923979] ? kmsan_get_shadow_origin_ptr+0x60/0x440 +[ 110.929165] ? __msan_metadata_ptr_for_load_4+0x10/0x20 +[ 110.934523] ? __fget_light+0x1fe/0x750 +[ 110.938522] ? kmsan_get_shadow_origin_ptr+0x60/0x440 +[ 110.943712] __se_sys_sendmsg+0x305/0x460 +[ 110.947878] __x64_sys_sendmsg+0x4a/0x70 +[ 110.951943] do_syscall_64+0xbc/0xf0 +[ 110.955650] entry_SYSCALL_64_after_hwframe+0x63/0xe7 +[ 110.960826] RIP: 0033:0x440109 +[ 110.964009] Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 +[ 110.982905] RSP: 002b:00007ffdbb8a05f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e +[ 110.990610] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440109 +[ 110.997867] RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000003 +[ 111.005126] RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8 +[ 111.012383] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401990 +[ 111.019641] R13: 0000000000401a20 R14: 0000000000000000 R15: 0000000000000000 +[ 111.026912] +[ 111.028533] Uninit was created at: +[ 111.032069] kmsan_internal_poison_shadow+0x92/0x150 +[ 111.037159] kmsan_kmalloc+0xa6/0x130 +[ 111.040947] kmsan_slab_alloc+0xe/0x10 +[ 111.044827] __kmalloc_node_track_caller+0xe9e/0xff0 +[ 111.049941] __alloc_skb+0x309/0xa20 +[ 111.053642] netlink_sendmsg+0xb82/0x1300 +[ 111.057780] ___sys_sendmsg+0xdb9/0x11b0 +[ 111.061841] __se_sys_sendmsg+0x305/0x460 +[ 111.066010] __x64_sys_sendmsg+0x4a/0x70 +[ 111.070077] do_syscall_64+0xbc/0xf0 +[ 111.073786] entry_SYSCALL_64_after_hwframe+0x63/0xe7 +[ 111.078972] ================================================================== |
