lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Sat, 13 Apr 2024 17:30:43 +0800
From: Sam Sun <samsun1006219@...il.com>
To: linux-kernel@...r.kernel.org, agruenba@...hat.com, gfs2@...ts.linux.dev
Cc: syzkaller-bugs@...glegroups.com, xrivendell7@...il.com
Subject: [Linux kernel bug] WARNING in read_rindex_entry

Dear developers and maintainers,

We encountered a kernel warning in function read_rindex_entry(). It is
tested against the latest upstream linux kernel (6.9-rc3, commit
586b5dfb51b962c1b6c06495715e4c4f76a7fc5a). Kernel is compiled by clang
14. Kernel config and C repro are attached to this email. Kernel dump
log is listed below.

```
Syzkaller hit 'WARNING in read_rindex_entry' bug.

gfs2: fsid=syz:syz.0: first mount done, others may mount
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8087 at mm/page_alloc.c:4544
__alloc_pages+0x406/0x21f0 mm/page_alloc.c:4544
Modules linked in:
CPU: 1 PID: 8087 Comm: syz-executor376 Not tainted 6.7.0-rc7 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.13.0-1ubuntu1.1 04/01/2014
RIP: 0010:__alloc_pages+0x406/0x21f0 mm/page_alloc.c:4544
Code: ff 00 0f 84 17 fe ff ff 80 ce 01 e9 0f fe ff ff 83 fe 0a 0f 86
0a fd ff ff 80 3d 82 21 35 0d 00 75 0b c6 05 79 21 35 0d 01 90 <0f> 0b
90 45 31 e4 e9 8b fe ff ff e8 2a 81 9e ff 84 c0 0f 85 7e fe
RSP: 0018:ffffc90002b2f330 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffff92000565e79
RDX: 0000000000000001 RSI: 000000000000001a RDI: 0000000000040d40
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000000 R12: 00000027ffffffd8
R13: 000000000000001a R14: 000000000000001a R15: 0000000000000001
FS:  0000555556b25880(0000) GS:ffff8880be400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f556529f9b0 CR3: 0000000066abf000 CR4: 0000000000750ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
PKRU: 55555554
Call Trace:
 <TASK>
 __alloc_pages_node include/linux/gfp.h:238 [inline]
 alloc_pages_node include/linux/gfp.h:261 [inline]
 __kmalloc_large_node+0x94/0x1d0 mm/slab_common.c:1148
 __do_kmalloc_node mm/slab_common.c:995 [inline]
 __kmalloc+0x94/0xd0 mm/slab_common.c:1020
 kmalloc_array include/linux/slab.h:637 [inline]
 kcalloc include/linux/slab.h:668 [inline]
 compute_bitstructs fs/gfs2/rgrp.c:766 [inline]
 read_rindex_entry+0x47f/0x1130 fs/gfs2/rgrp.c:931
 gfs2_ri_update+0x73/0x520 fs/gfs2/rgrp.c:1001
 gfs2_rindex_update+0x3e9/0x470 fs/gfs2/rgrp.c:1051
 init_inodes+0x150c/0x2d60 fs/gfs2/ops_fstype.c:912
 gfs2_fill_super+0x1a95/0x2c00 fs/gfs2/ops_fstype.c:1263
 get_tree_bdev+0x3b4/0x610 fs/super.c:1598
 gfs2_get_tree+0x4e/0x270 fs/gfs2/ops_fstype.c:1341
 vfs_get_tree+0x91/0x380 fs/super.c:1771
 do_new_mount fs/namespace.c:3337 [inline]
 path_mount+0x675/0x1e40 fs/namespace.c:3664
 do_mount fs/namespace.c:3677 [inline]
 __do_sys_mount fs/namespace.c:3886 [inline]
 __se_sys_mount fs/namespace.c:3863 [inline]
 __x64_sys_mount+0x283/0x300 fs/namespace.c:3863
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7efc04738a1e
Code: 83 c4 08 5b 5d c3 66 0f 1f 44 00 00 c3 66 2e 0f 1f 84 00 00 00
00 00 0f 1f 44 00 00 f3 0f 1e fa 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d
01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffce7722e48 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007efc04738a1e
RDX: 0000000020000040 RSI: 0000000020013440 RDI: 00007ffce7722e60
RBP: 00007ffce7722e60 R08: 00007ffce7722ea0 R09: 0000000000013482
R10: 0000000000000001 R11: 0000000000000282 R12: 0000555556b25840
R13: 00007ffce7722ea0 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
```
If you have any questions, please contact us.
Reported by: Yue Sun <samsun1006219@...il.com>
Reported by: xingwei lee <xrivendell7@...il.com>

Best Regards,
Yue

Download attachment "config" of type "application/octet-stream" (247916 bytes)

View attachment "read_rindex_entry.c" of type "text/x-csrc" (370241 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ