Hoang Le
92a930fcf4
tipc: check attribute length for bearer name
...
[ Upstream commit 7f36f798f89bf32c0164049cb0e3fd1af613d0bb ]
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: cb30a63384bc ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:36:13 +02:00
..
2021-07-22 16:19:03 +02:00
2022-03-11 12:22:36 +01:00
2021-08-13 16:30:35 -07:00
2021-12-01 09:04:53 +01:00
2021-07-23 14:20:25 +01:00
2022-04-20 09:34:22 +02:00
2022-05-18 10:26:47 +02:00
2022-06-09 10:22:58 +02:00
2022-04-13 20:59:25 +02:00
2021-06-25 13:13:50 +02:00
2022-05-25 09:57:34 +02:00
2021-09-14 12:51:15 +01:00
2022-05-12 12:30:09 +02:00
2022-05-25 09:57:28 +02:00
2022-06-14 18:36:11 +02:00
2022-03-08 19:12:52 +01:00
2021-11-18 19:16:33 +01:00
2021-08-05 13:27:50 +01:00
2022-05-09 09:14:34 +02:00
2021-08-03 13:05:26 +01:00
2021-12-14 10:57:09 +01:00
2022-02-08 18:34:09 +01:00
2022-06-14 18:36:12 +02:00
2022-06-14 18:36:11 +02:00
2021-08-09 10:13:32 +01:00
2021-06-29 11:28:21 -07:00
2022-06-06 08:43:36 +02:00
2021-09-09 11:00:20 +01:00
2022-04-27 14:38:53 +02:00
2022-03-28 09:58:46 +02:00
2022-06-09 10:23:26 +02:00
2021-09-07 14:06:08 +01:00
2022-04-13 20:59:16 +02:00
2021-12-08 09:04:47 +01:00
2022-06-09 10:22:46 +02:00
2022-01-05 12:42:37 +01:00
2022-06-06 08:43:38 +02:00
2022-04-13 20:59:10 +02:00
2022-05-18 10:26:49 +02:00
2022-01-27 11:04:00 +01:00
2022-06-09 10:22:46 +02:00
2022-04-27 14:39:01 +02:00
2022-04-27 14:38:53 +02:00
2022-01-11 15:35:16 +01:00
2021-09-02 11:37:02 +01:00
2021-12-22 09:32:42 +01:00
2022-04-08 14:23:00 +02:00
2022-06-09 10:23:02 +02:00
2022-05-25 09:57:30 +02:00
2022-06-09 10:22:59 +02:00
2022-06-14 18:36:11 +02:00
2021-11-18 19:17:11 +01:00
2022-05-18 10:26:57 +02:00
2021-08-04 12:35:07 +01:00
2022-06-14 18:36:13 +02:00
2022-05-18 10:26:51 +02:00
2022-04-08 14:24:14 +02:00
2022-04-08 14:23:51 +02:00
2022-06-09 10:23:26 +02:00
2022-04-08 14:23:53 +02:00
2022-05-09 09:14:32 +02:00
2022-05-25 09:57:30 +02:00
2021-07-29 15:06:49 +01:00
2021-07-29 15:06:49 +01:00
2022-01-27 11:03:52 +01:00