syzbot


KASAN: null-ptr-deref Read in llcp_sock_getname

Status: upstream: reported C repro on 2019/10/14 09:43
Reported-by: syzbot+9a64168be267f1ef3094@syzkaller.appspotmail.com
First crash: 1865d, last: 1015d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: null-ptr-deref Read in llcp_sock_getname C done error 242 1207d 1867d 0/28 closed as invalid on 2021/12/14 20:22
linux-4.19 KASAN: null-ptr-deref Read in llcp_sock_getname C 37 1288d 1848d 1/1 fixed on 2021/06/10 12:07
Last patch testing requests (10)
Created Duration User Patch Repo Result
2023/02/12 00:32 10m retest repro linux-4.14.y report log
2023/02/11 23:32 9m retest repro linux-4.14.y report log
2023/02/11 22:32 9m retest repro linux-4.14.y report log
2023/02/11 21:32 9m retest repro linux-4.14.y report log
2023/02/11 20:32 11m retest repro linux-4.14.y report log
2022/09/22 03:29 15m retest repro linux-4.14.y report log
2022/09/22 02:29 14m retest repro linux-4.14.y report log
2022/09/22 01:29 11m retest repro linux-4.14.y report log
2022/09/22 00:29 11m retest repro linux-4.14.y report log
2022/09/21 22:29 14m retest repro linux-4.14.y report log
Fix bisection attempts (16)
Created Duration User Patch Repo Result
2022/03/13 21:01 0m bisect fix linux-4.14.y error job log
2022/02/10 10:06 31m bisect fix linux-4.14.y OK (0) job log log
2022/01/11 09:40 26m bisect fix linux-4.14.y OK (0) job log log
2021/12/12 08:46 26m bisect fix linux-4.14.y OK (0) job log log
2021/11/12 08:20 25m bisect fix linux-4.14.y OK (0) job log log
2021/10/13 07:49 30m bisect fix linux-4.14.y OK (0) job log log
2021/09/13 07:20 28m bisect fix linux-4.14.y OK (0) job log log
2021/08/14 06:54 25m bisect fix linux-4.14.y OK (0) job log log
2021/07/15 06:31 22m bisect fix linux-4.14.y OK (0) job log log
2021/06/15 06:09 22m bisect fix linux-4.14.y OK (0) job log log
2021/05/16 05:40 28m bisect fix linux-4.14.y OK (0) job log log
2020/12/23 07:34 23m bisect fix linux-4.14.y OK (0) job log log
2020/11/16 04:15 23m bisect fix linux-4.14.y OK (0) job log log
2020/09/15 22:32 22m bisect fix linux-4.14.y OK (0) job log log
2020/02/22 07:01 25m bisect fix linux-4.14.y OK (0) job log log
2020/01/07 20:29 25m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
audit: type=1400 audit(1575836815.455:36): avc:  denied  { map } for  pid=6895 comm="syz-executor973" path="/root/syz-executor973245589" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
==================================================================
BUG: KASAN: null-ptr-deref in memcpy include/linux/string.h:347 [inline]
BUG: KASAN: null-ptr-deref in llcp_sock_getname+0x38f/0x4a0 net/nfc/llcp_sock.c:532
Read of size 43 at addr           (null) by task syz-executor973/6895

CPU: 1 PID: 6895 Comm: syz-executor973 Not tainted 4.14.158-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x142/0x197 lib/dump_stack.c:58
 kasan_report_error mm/kasan/report.c:349 [inline]
 kasan_report mm/kasan/report.c:409 [inline]
 kasan_report.cold+0x127/0x2af mm/kasan/report.c:393
 check_memory_region_inline mm/kasan/kasan.c:260 [inline]
 check_memory_region+0x123/0x190 mm/kasan/kasan.c:267
 memcpy+0x24/0x50 mm/kasan/kasan.c:302
 memcpy include/linux/string.h:347 [inline]
 llcp_sock_getname+0x38f/0x4a0 net/nfc/llcp_sock.c:532
 SYSC_getpeername+0x120/0x270 net/socket.c:1715
 SyS_getpeername+0x24/0x30 net/socket.c:1699
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x440349
RSP: 002b:00007ffdb6b13ad8 EFLAGS: 00000246 ORIG_RAX: 0000000000000034
RAX: ffffffffffffffda RBX: fe7f62c7329d9aaa RCX: 0000000000440349
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 65e500001d7ef6cc R08: 00007ffdb6b13c48 R09: 00007ffdb6b13c48
R10: 00007ffdb6b13c48 R11: 0000000000000246 R12: 211e267fffffffff
R13: ffff000000004d02 R14: aac8030fa4d62b9c R15: d303a55487e71188
==================================================================

Crashes (58):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/08 20:29 linux-4.14.y a844dc4c5442 1508f453 .config console log report syz C ci2-linux-4-14
2019/11/30 06:13 linux-4.14.y 43598c571e7e 3a75be00 .config console log report syz C ci2-linux-4-14
2019/11/04 10:53 linux-4.14.y ddef1e8e3f6e b35fad31 .config console log report syz C ci2-linux-4-14
2019/10/29 03:16 linux-4.14.y b98aebd29824 439d7b14 .config console log report syz C ci2-linux-4-14
2019/10/19 06:07 linux-4.14.y b98aebd29824 8c88c9c1 .config console log report syz C ci2-linux-4-14
2021/04/16 01:55 linux-4.14.y 958e517f4e16 c59079a6 .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/03/23 13:26 linux-4.14.y cb83ddcd5332 8092f30d .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/03/19 16:54 linux-4.14.y cb83ddcd5332 2af9d324 .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/03/19 04:15 linux-4.14.y cb83ddcd5332 380dcc3e .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/03/01 12:03 linux-4.14.y 3242aa3a635c 4c37c133 .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/02/24 14:51 linux-4.14.y 3242aa3a635c fcc6d71b .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/02/22 19:33 linux-4.14.y 29c52025152b c26fb06b .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/02/15 08:40 linux-4.14.y 2c8a3fceddf0 98682e5e .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/02/12 10:43 linux-4.14.y 2c8a3fceddf0 a5f86b15 .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/01/27 17:06 linux-4.14.y 2d2791fce891 a0ebf917 .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in llcp_sock_getname
2021/01/06 14:41 linux-4.14.y 1752938529c6 fff20c29 .config console log report info ci2-linux-4-14
2020/12/23 08:58 linux-4.14.y 3f2ecb86cb90 04201c06 .config console log report info ci2-linux-4-14
2020/11/23 07:33 linux-4.14.y 0df445b0f0da 0d27f508 .config console log report info ci2-linux-4-14
2020/10/17 01:17 linux-4.14.y cbfa1702aaf6 6e262c73 .config console log report info ci2-linux-4-14
2020/10/10 10:11 linux-4.14.y cbfa1702aaf6 b74c49a6 .config console log report info ci2-linux-4-14
2020/09/23 16:04 linux-4.14.y cbfa1702aaf6 287cd75a .config console log report info ci2-linux-4-14
2020/08/16 22:32 linux-4.14.y 14b58326976d 5ce13532 .config console log report ci2-linux-4-14
2020/08/13 10:18 linux-4.14.y 14b58326976d bc15f7db .config console log report ci2-linux-4-14
2020/08/13 01:06 linux-4.14.y 14b58326976d bc15f7db .config console log report ci2-linux-4-14
2020/08/07 05:39 linux-4.14.y ca4f2c56d416 cb436c69 .config console log report ci2-linux-4-14
2020/08/03 04:20 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/01 04:13 linux-4.14.y 7f2c5eb458b8 8df85ed9 .config console log report ci2-linux-4-14
2020/07/28 22:27 linux-4.14.y 69b94dd6dcd1 cb93dc6a .config console log report ci2-linux-4-14
2020/07/18 06:07 linux-4.14.y b850307b279c 9c812472 .config console log report ci2-linux-4-14
2020/07/12 03:37 linux-4.14.y b850307b279c 7ba05d2d .config console log report ci2-linux-4-14
2020/07/07 22:40 linux-4.14.y b850307b279c 08fc4ef1 .config console log report ci2-linux-4-14
2020/06/11 12:32 linux-4.14.y b850307b279c 3ab7a05a .config console log report ci2-linux-4-14
2020/06/06 23:36 linux-4.14.y c6db52a88798 e6b89e4e .config console log report ci2-linux-4-14
2020/06/03 11:41 linux-4.14.y c6db52a88798 f3ba1b5b .config console log report ci2-linux-4-14
2020/05/30 09:27 linux-4.14.y 4f68020fef1c 954bd312 .config console log report ci2-linux-4-14
2020/05/15 05:14 linux-4.14.y ab9dfda23248 2d572622 .config console log report ci2-linux-4-14
2020/05/04 14:43 linux-4.14.y 773e2b1cd56a 58ae5e18 .config console log report ci2-linux-4-14
2020/04/24 16:49 linux-4.14.y 050272a0423e 03d97a1b .config console log report ci2-linux-4-14
2020/04/18 09:52 linux-4.14.y c10b57a567e4 435c6d53 .config console log report ci2-linux-4-14
2020/04/16 20:44 linux-4.14.y c10b57a567e4 c743fcb3 .config console log report ci2-linux-4-14
2020/04/15 21:37 linux-4.14.y c10b57a567e4 3f3c5574 .config console log report ci2-linux-4-14
2020/04/03 04:40 linux-4.14.y 4520f06b03ae a34e2c33 .config console log report ci2-linux-4-14
2020/03/20 02:20 linux-4.14.y 12cd844a39ed 2c31c529 .config console log report ci2-linux-4-14
2020/03/10 15:47 linux-4.14.y 78d697fc93f9 35f53e45 .config console log report ci2-linux-4-14
2020/03/08 05:55 linux-4.14.y 78d697fc93f9 2e9971bb .config console log report ci2-linux-4-14
2020/03/07 19:57 linux-4.14.y 78d697fc93f9 2e9971bb .config console log report ci2-linux-4-14
2020/02/29 19:23 linux-4.14.y 78d697fc93f9 c88c7b75 .config console log report ci2-linux-4-14
2020/02/23 16:48 linux-4.14.y 98db2bf27b9e 2c36e7a7 .config console log report ci2-linux-4-14
2020/01/23 07:01 linux-4.14.y c1141b3aab36 3334d684 .config console log report ci2-linux-4-14
2020/01/08 08:44 linux-4.14.y 84f5ad468100 6738e0b3 .config console log report ci2-linux-4-14
2019/11/23 13:48 linux-4.14.y f56f3d0e65ad 598ca6c8 .config console log report ci2-linux-4-14
2019/11/20 17:15 linux-4.14.y 775d01b65b5d 432c7650 .config console log report ci2-linux-4-14
2019/11/19 22:50 linux-4.14.y 775d01b65b5d 432c7650 .config console log report ci2-linux-4-14
2019/11/18 19:58 linux-4.14.y 775d01b65b5d d5696d51 .config console log report ci2-linux-4-14
2019/11/11 06:40 linux-4.14.y c9fda4f22428 dc438b91 .config console log report ci2-linux-4-14
2019/10/19 05:40 linux-4.14.y b98aebd29824 8c88c9c1 .config console log report ci2-linux-4-14
2019/10/17 02:15 linux-4.14.y e132c8d7b58d 8c88c9c1 .config console log report ci2-linux-4-14
2019/10/14 08:42 linux-4.14.y e132c8d7b58d 2f661ec4 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.