syzbot


BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (7)

Status: closed as invalid on 2020/07/06 10:57
Subsystems: tomoyo
[Documentation on labels]
Reported-by: syzbot+3f2f8bcb2afc42ae7292@syzkaller.appspotmail.com
First crash: 1512d, last: 1448d
Similar bugs (12)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all 1 1467d 1467d 0/1 auto-closed as invalid on 2020/08/18 08:06
linux-4.19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (2) 8 834d 1071d 0/1 auto-closed as invalid on 2022/05/13 11:55
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (4) mm 8 2286d 2333d 0/26 closed as invalid on 2018/02/12 16:58
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (6) ext4 syz 7 1845d 1944d 0/26 closed as dup on 2018/12/31 07:50
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (2) kernel 1 2362d 2362d 0/26 closed as invalid on 2017/11/09 10:06
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (8) kvm 11 1302d 1325d 0/26 auto-closed as invalid on 2021/01/30 15:56
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all fs 1 2397d 2397d 0/26 closed as invalid on 2017/10/18 09:51
linux-4.14 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all 2 1438d 1471d 0/1 auto-closed as invalid on 2020/09/17 07:42
upstream BUG: unable to handle kernel paging request in qlist_free_all (7) kernel 20 875d 1096d 0/26 auto-closed as invalid on 2022/03/03 13:56
linux-4.14 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (2) 3 1078d 1102d 0/1 auto-closed as invalid on 2021/09/12 03:17
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (5) fs 19 2192d 2249d 0/26 closed as invalid on 2018/05/26 17:43
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (3) mm 8 2336d 2352d 0/26 closed as invalid on 2017/12/05 10:45

Sample crash report:
BUG: kernel NULL pointer dereference, address: 000000000000013c
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 0 P4D 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6835 Comm: systemd-udevd Not tainted 5.7.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:qlink_to_object mm/kasan/quarantine.c:137 [inline]
RIP: 0010:qlink_free mm/kasan/quarantine.c:142 [inline]
RIP: 0010:qlist_free_all+0x28/0x140 mm/kasan/quarantine.c:167
Code: d6 90 41 57 41 56 41 55 41 54 55 53 48 8b 1f 48 85 db 0f 84 08 01 00 00 48 89 f5 49 89 fd 48 85 ed 49 89 ee 0f 84 8b 00 00 00 <49> 63 86 3c 01 00 00 4c 8b 23 48 29 c3 48 83 3d 2b c0 e3 07 00 0f
RSP: 0018:ffffc900160e78f8 EFLAGS: 00010246
RAX: ffffea0000000000 RBX: ffff888000000000 RCX: ffffea0000000007
RDX: 0000000000000000 RSI: ffffffff8133965a RDI: 0000000000000007
RBP: 0000000000000000 R08: ffff88808ebce580 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888000000000
R13: ffffc900160e7930 R14: 0000000000000000 R15: 0000000000000282
FS:  00007f616d2c28c0(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000000013c CR3: 000000005ba99000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 quarantine_reduce+0x159/0x190 mm/kasan/quarantine.c:260
 __kasan_kmalloc.constprop.0+0x97/0xd0 mm/kasan/common.c:476
 slab_post_alloc_hook mm/slab.h:586 [inline]
 slab_alloc mm/slab.c:3320 [inline]
 __do_kmalloc mm/slab.c:3654 [inline]
 __kmalloc+0x14b/0x7a0 mm/slab.c:3665
 kmalloc include/linux/slab.h:560 [inline]
 tomoyo_realpath_from_path+0xc2/0x620 security/tomoyo/realpath.c:252
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x214/0x400 security/tomoyo/file.c:822
 security_inode_getattr+0xeb/0x150 security/security.c:1273
 vfs_getattr+0x22/0x60 fs/stat.c:117
 vfs_statx+0x142/0x1e0 fs/stat.c:201
 vfs_lstat include/linux/fs.h:3284 [inline]
 __do_sys_newlstat+0x96/0x120 fs/stat.c:364
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x7f616c135335
Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89
RSP: 002b:00007ffc852660b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 000056348fffbcb0 RCX: 00007f616c135335
RDX: 00007ffc852660f0 RSI: 00007ffc852660f0 RDI: 000056348fffacb0
RBP: 00007ffc852661b0 R08: 00007f616c3f4178 R09: 0000000000001010
R10: 00007f616c3f3b58 R11: 0000000000000246 R12: 000056348fffacb0
R13: 000056348fffacbc R14: 000056348fffaba5 R15: 000056348fffabac
Modules linked in:
CR2: 000000000000013c
---[ end trace 331c58242b07439a ]---
RIP: 0010:qlink_to_object mm/kasan/quarantine.c:137 [inline]
RIP: 0010:qlink_free mm/kasan/quarantine.c:142 [inline]
RIP: 0010:qlist_free_all+0x28/0x140 mm/kasan/quarantine.c:167
Code: d6 90 41 57 41 56 41 55 41 54 55 53 48 8b 1f 48 85 db 0f 84 08 01 00 00 48 89 f5 49 89 fd 48 85 ed 49 89 ee 0f 84 8b 00 00 00 <49> 63 86 3c 01 00 00 4c 8b 23 48 29 c3 48 83 3d 2b c0 e3 07 00 0f
RSP: 0018:ffffc900160e78f8 EFLAGS: 00010246
RAX: ffffea0000000000 RBX: ffff888000000000 RCX: ffffea0000000007
RDX: 0000000000000000 RSI: ffffffff8133965a RDI: 0000000000000007
RBP: 0000000000000000 R08: ffff88808ebce580 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888000000000
R13: ffffc900160e7930 R14: 0000000000000000 R15: 0000000000000282
FS:  00007f616d2c28c0(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0826856000 CR3: 000000005ba99000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/09 14:54 upstream d5eeab8d7e26 88cb3e92 .config console log report ci-upstream-kasan-gce
2020/04/30 17:24 upstream 1d2cc5ac6f66 3698959a .config console log report ci-upstream-kasan-gce
2020/04/26 01:53 upstream b2768df24ec4 b8bb8e5f .config console log report ci-upstream-kasan-gce
2020/04/24 00:16 upstream c578ddb39e56 2e44d63e .config console log report ci-upstream-kasan-gce
2020/03/19 08:49 upstream 5076190daded 2c31c529 .config console log report ci-upstream-kasan-gce
2020/03/06 22:37 upstream fb279f4e2386 fd2a5f28 .config console log report ci-upstream-kasan-gce
2020/03/27 07:31 upstream f3e69428b5e2 7d95711b .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.