Hoang Le
7f36f798f8
tipc: check attribute length for bearer name
syzbot reported uninit-value:
=====================================================
BUG: KMSAN: uninit-value in string_nocheck lib/vsprintf.c:644 [inline]
BUG: KMSAN: uninit-value in string+0x4f9/0x6f0 lib/vsprintf.c:725
string_nocheck lib/vsprintf.c:644 [inline]
string+0x4f9/0x6f0 lib/vsprintf.c:725
vsnprintf+0x2222/0x3650 lib/vsprintf.c:2806
vprintk_store+0x537/0x2150 kernel/printk/printk.c:2158
vprintk_emit+0x28b/0xab0 kernel/printk/printk.c:2256
vprintk_default+0x86/0xa0 kernel/printk/printk.c:2283
vprintk+0x15f/0x180 kernel/printk/printk_safe.c:50
_printk+0x18d/0x1cf kernel/printk/printk.c:2293
tipc_enable_bearer net/tipc/bearer.c:371 [inline]
__tipc_nl_bearer_enable+0x2022/0x22a0 net/tipc/bearer.c:1033
tipc_nl_bearer_enable+0x6c/0xb0 net/tipc/bearer.c:1042
genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
- Do sanity check the attribute length for TIPC_NLA_BEARER_NAME.
- Do not use 'illegal name' in printing message.
Reported-by: syzbot+e820fdc8ce362f2dea51@syzkaller.appspotmail.com
Fixes: cb30a63384 ("tipc: refactor function tipc_enable_bearer()")
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Link: https://lore.kernel.org/r/20220602063053.5892-1-hoang.h.le@dektech.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-06-02 10:14:24 -07:00
..
2022-02-04 14:15:11 -08:00
2022-03-15 20:34:40 -05:00
2022-05-06 12:07:56 +01:00
2022-04-06 13:45:26 +01:00
2022-04-28 13:08:15 -07:00
2022-06-02 10:37:57 +02:00
2022-05-22 21:51:54 +01:00
2022-05-23 21:19:17 -07:00
2022-05-23 16:07:14 -07:00
2022-02-25 09:36:06 +01:00
2022-05-19 11:23:59 -07:00
2022-04-06 13:45:26 +01:00
2022-05-19 22:11:28 +02:00
2022-05-18 21:21:29 +02:00
2022-05-25 22:00:48 -07:00
2022-03-03 08:01:55 -08:00
2022-05-20 18:16:24 -07:00
2022-05-17 18:03:23 -07:00
2022-05-23 12:27:53 +01:00
2022-04-07 21:04:03 -07:00
2022-05-01 17:45:35 +01:00
2022-03-11 23:17:24 -08:00
2022-04-28 13:08:15 -07:00
2022-05-31 21:40:10 -07:00
2022-06-01 12:44:42 +02:00
2022-04-06 13:45:26 +01:00
2021-12-29 08:48:14 -08:00
2022-06-01 17:44:04 -07:00
2022-05-16 10:31:06 +01:00
2022-04-15 14:27:24 -07:00
2022-03-25 16:55:41 -07:00
2022-06-01 12:41:41 +03:00
2022-04-30 20:29:47 +02:00
2022-05-25 12:22:58 -07:00
2022-04-07 21:06:41 -07:00
2022-05-23 16:07:14 -07:00
2022-01-15 08:47:31 -08:00
2022-05-31 23:32:53 +02:00
2022-03-21 10:59:11 +00:00
2022-05-12 16:15:30 -07:00
2022-04-06 13:45:26 +01:00
2022-05-28 15:28:47 +01:00
2022-04-15 11:50:02 +01:00
2022-04-28 13:08:15 -07:00
2022-04-12 15:00:25 +02:00
2022-04-06 13:45:26 +01:00
2022-05-05 16:44:49 -07:00
2022-03-18 13:09:17 +02:00
2022-05-09 17:19:27 -07:00
2022-05-23 21:19:17 -07:00
2022-06-01 13:32:04 +02:00
2022-05-20 17:42:53 -07:00
2022-05-28 12:36:26 +01:00
2022-05-19 11:23:59 -07:00
2022-02-24 21:31:43 -08:00
2022-06-02 10:14:24 -07:00
2022-05-19 17:55:06 -07:00
2022-05-25 12:22:58 -07:00
2022-05-02 16:04:34 -07:00
2022-05-19 13:01:08 -07:00
2022-05-10 11:59:22 +02:00
2022-04-28 13:02:01 -07:00
2022-06-01 17:44:04 -07:00
2022-03-03 09:55:28 +00:00
2022-05-11 12:43:10 +01:00
2022-05-25 12:22:58 -07:00