syzbot


WARNING in squashfs_read_table

Status: fixed on 2021/03/10 01:48
Subsystems: mm squashfs
[Documentation on labels]
Reported-by: syzbot+2ccea6339d368360800d@syzkaller.appspotmail.com
Fix commit: 506220d2ba21 squashfs: add more sanity checks in xattr id lookup
First crash: 1233d, last: 1200d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: C syz .config
  
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 4.4 00/35] 4.4.258-rc1 review 43 (43) 2021/02/25 08:47
[PATCH 4.9 00/49] 4.9.258-rc1 review 54 (54) 2021/02/23 21:19
[PATCH 4.14 00/57] 4.14.222-rc1 review 60 (60) 2021/02/23 11:53
[PATCH 5.10 00/54] 5.10.16-rc1 review 68 (68) 2021/02/17 22:45
[PATCH 5.4 00/24] 5.4.98-rc1 review 31 (31) 2021/02/13 03:17
[PATCH 4.19 00/24] 4.19.176-rc1 review 34 (34) 2021/02/12 16:18
[patch 04/14] squashfs: add more sanity checks in xattr id lookup 1 (1) 2021/02/09 21:42
[PATCH V2 4/4] Squashfs: add more sanity checks in xattr id lookup 1 (1) 2021/02/08 07:41
[PATCH] fs/squashfs: restrict length of xattr_ids in read_xattr_id_table 4 (4) 2021/02/03 14:11
WARNING in squashfs_read_table 0 (1) 2021/01/09 23:58
Last patch testing requests (2)
Created Duration User Patch Repo Result
2021/02/03 13:24 15m snovitoll@gmail.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux refs/changes/56/8056/2 OK
2021/02/03 10:02 15m snovitoll@gmail.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux refs/changes/56/8056/1 OK

Sample crash report:
loop0: detected capacity change from 8 to 0
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8456 at mm/page_alloc.c:4977 __alloc_pages_nodemask+0x5f8/0x730 mm/page_alloc.c:5012
Modules linked in:
CPU: 0 PID: 8456 Comm: syz-executor943 Not tainted 5.11.0-rc2-next-20210105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__alloc_pages_nodemask+0x5f8/0x730 mm/page_alloc.c:4977
Code: 00 00 0c 00 0f 85 a7 00 00 00 8b 3c 24 4c 89 f2 44 89 e6 c6 44 24 70 00 48 89 6c 24 58 e8 d0 d7 ff ff 49 89 c5 e9 ea fc ff ff <0f> 0b e9 b5 fd ff ff 89 74 24 14 4c 89 4c 24 08 4c 89 74 24 18 e8
RSP: 0018:ffffc9000112fa98 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff92000225f57 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000040cc0
RBP: 0000000000040cc0 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81b25651 R11: 0000000000000000 R12: 0000000000000034
R13: 0000000000000034 R14: 0000000000000000 R15: 00000000e24d8401
FS:  00000000019a2880(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559ed1ff3180 CR3: 000000001b421000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 alloc_pages_current+0x18c/0x2a0 mm/mempolicy.c:2267
 alloc_pages include/linux/gfp.h:547 [inline]
 kmalloc_order+0x2e/0xb0 mm/slab_common.c:916
 kmalloc_order_trace+0x14/0x120 mm/slab_common.c:932
 kmalloc include/linux/slab.h:559 [inline]
 squashfs_read_table+0x43/0x1e0 fs/squashfs/cache.c:413
 squashfs_read_xattr_id_table+0x191/0x220 fs/squashfs/xattr_id.c:81
 squashfs_fill_super+0xcfb/0x23b0 fs/squashfs/super.c:225
 get_tree_bdev+0x421/0x740 fs/super.c:1291
 vfs_get_tree+0x89/0x2f0 fs/super.c:1496
 do_new_mount fs/namespace.c:2899 [inline]
 path_mount+0x12ae/0x1e70 fs/namespace.c:3230
 do_mount fs/namespace.c:3243 [inline]
 __do_sys_mount fs/namespace.c:3451 [inline]
 __se_sys_mount fs/namespace.c:3428 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3428
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x446d1a
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd ad fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da ad fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffe89cbd7b8 EFLAGS: 00000293 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe89cbd810 RCX: 0000000000446d1a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe89cbd7d0
RBP: 00007ffe89cbd7d0 R08: 00007ffe89cbd810 R09: 00007ffe00000015
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003

Crashes (50):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/06 00:12 linux-next 83dadd4cfb0c a0234d98 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2021/02/08 01:47 upstream b75dba7f472c 2ce644fc .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/02/07 13:54 upstream 825b5991a46e 2ce644fc .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/02/07 03:50 upstream 964d069f93c4 0655e081 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/02/07 02:42 upstream 964d069f93c4 0655e081 .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/02/05 06:48 upstream 5c279c4cf206 23a562df .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/02/05 05:24 upstream 5c279c4cf206 23a562df .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/02/05 04:59 upstream 5c279c4cf206 23a562df .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/02/04 20:01 upstream 61556703b610 42b90a7c .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/02/04 19:31 upstream 61556703b610 42b90a7c .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/02/03 05:24 upstream 3aaf0a27ffc2 624dad51 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/02/03 04:53 upstream 3aaf0a27ffc2 624dad51 .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/02/02 11:33 upstream 88bb507a74ea 19e09687 .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/02/02 11:33 upstream 88bb507a74ea 19e09687 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/01/31 19:05 upstream 6642d600b541 fc9fd31e .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/01/30 22:21 upstream 0e9bcda5d286 fc9fd31e .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/01/30 09:52 upstream 0e9bcda5d286 fc9fd31e .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/01/30 05:07 upstream bec4c2968fce fc9fd31e .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/01/30 04:58 upstream bec4c2968fce fc9fd31e .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/01/30 01:18 upstream bec4c2968fce fc9fd31e .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/01/25 21:13 upstream 6ee1d745b7c9 52e37319 .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/01/25 12:42 upstream 6ee1d745b7c9 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/01/24 10:31 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/01/24 04:07 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/01/21 02:25 upstream 75439bc439e0 d4f4eca5 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/01/19 17:23 upstream 1e2a199f6ccd 63631df1 .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/01/19 07:56 upstream 1e2a199f6ccd 63631df1 .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/01/19 07:26 upstream 1e2a199f6ccd 63631df1 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in squashfs_read_table
2021/01/17 16:35 upstream 0da0a8a0a0e1 813be542 .config console log report info ci-upstream-kasan-gce-root WARNING in squashfs_read_table
2021/01/30 05:01 upstream bec4c2968fce fc9fd31e .config console log report info ci-qemu-upstream-386 WARNING in squashfs_read_table
2021/02/05 05:15 linux-next 0e2c50f40b7f 23a562df .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in squashfs_read_table
2021/01/30 05:36 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in squashfs_read_table
2021/01/21 00:43 linux-next 647060f3b592 d4f4eca5 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in squashfs_read_table
2021/01/17 08:00 upstream 0da0a8a0a0e1 65a7a854 .config console log report info ci-upstream-kasan-gce-root
2021/01/17 07:30 upstream 0da0a8a0a0e1 65a7a854 .config console log report info ci-upstream-kasan-gce-smack-root
2021/01/16 21:53 upstream 1d94330a437a 65a7a854 .config console log report info ci-upstream-kasan-gce-root
2021/01/11 08:21 upstream 0653161f0fac 2c1f2513 .config console log report info ci-upstream-kasan-gce-root
2021/01/11 05:03 upstream 0653161f0fac 2c1f2513 .config console log report info ci-upstream-kasan-gce-root
2021/01/08 11:04 upstream f5e6c330254a c104d4a3 .config console log report info ci-upstream-kasan-gce-root
2021/01/05 23:51 upstream 36bbbd0e234d a0234d98 .config console log report info ci-upstream-kasan-gce-root
2021/01/05 23:51 upstream 36bbbd0e234d a0234d98 .config console log report info ci-upstream-kasan-gce-root
2021/01/17 07:22 upstream 0da0a8a0a0e1 65a7a854 .config console log report info ci-qemu-upstream-386
2021/01/17 07:28 linux-next b3a3cbdec55b 65a7a854 .config console log report info ci-upstream-linux-next-kasan-gce-root
2021/01/10 02:45 linux-next 1c925d2030af 2c1f2513 .config console log report info ci-upstream-linux-next-kasan-gce-root
2021/01/06 00:01 linux-next 83dadd4cfb0c a0234d98 .config console log report info ci-upstream-linux-next-kasan-gce-root
2021/01/05 23:56 linux-next 83dadd4cfb0c a0234d98 .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.