syz test

8 views
Skip to first unread message

Tadeusz Struk

unread,
Aug 30, 2022, 1:30:21 PM8/30/22
to syzkaller, syzbot
#syz test: https://android.googlesource.com/kernel/common android12-5.10-lts

Tadeusz Struk

unread,
Aug 30, 2022, 1:49:55 PM8/30/22
to syzkaller, syzbot

syzbot

unread,
Aug 30, 2022, 2:07:17 PM8/30/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+badfd0...@syzkaller.appspotmail.com

Tested on:

commit: 44cde61a Merge 5.10.139 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=11fc7aab080000
kernel config: https://syzkaller.appspot.com/x/.config?x=f3b1f404179fdee5
dashboard link: https://syzkaller.appspot.com/bug?extid=badfd07a93cffefd7317
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2

Note: no patches were applied.
Note: testing is done by a robot and is best-effort only.

syzbot

unread,
Aug 30, 2022, 2:23:21 PM8/30/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+e42ae4...@syzkaller.appspotmail.com

Tested on:

commit: 44cde61a Merge 5.10.139 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=172e8795080000
kernel config: https://syzkaller.appspot.com/x/.config?x=5c89f726caca8a73
dashboard link: https://syzkaller.appspot.com/bug?extid=e42ae441c3b10acf9e9d

Tadeusz Struk

unread,
Aug 30, 2022, 2:39:06 PM8/30/22
to syzbot, syzkaller-a...@googlegroups.com
#syz fix: percpu_ref_init(): clean ->percpu_count_ref on failure

Tadeusz Struk

unread,
Aug 30, 2022, 2:39:28 PM8/30/22
to syzbot, syzkaller-a...@googlegroups.com

Tadeusz Struk

unread,
Sep 8, 2022, 1:54:57 PM9/8/22
to syzkaller, syzbot+70627c...@syzkaller.appspotmail.com

Tadeusz Struk

unread,
Sep 8, 2022, 1:55:20 PM9/8/22
to syzkaller, syzbot+70627c...@syzkaller.appspotmail.com

syzbot

unread,
Sep 8, 2022, 7:50:17 PM9/8/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
general protection fault in ext4_xattr_set_entry

general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 414 Comm: syz-executor.0 Not tainted 5.10.140-syzkaller-987206-g59390358870a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:ext4_xattr_set_entry+0x4ad/0x37e0 fs/ext4/xattr.c:1586
Code: 00 00 48 89 d8 48 c1 e8 03 48 89 84 24 28 01 00 00 42 80 3c 20 00 74 08 48 89 df e8 1d 97 ba ff 4c 8b 33 4c 89 f0 48 c1 e8 03 <42> 8a 04 20 84 c0 0f 85 46 2d 00 00 4c 89 f8 48 2b 44 24 18 48 89
RSP: 0018:ffffc90000bd73a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc90000bd77a0 RCX: ffff88810b4fcf00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c
RBP: ffffc90000bd7638 R08: ffffffff81ec5e29 R09: ffffed10240072ff
R10: ffffed10240072ff R11: 1ffff110240072fe R12: dffffc0000000000
R13: 1ffff9200017aeee R14: 0000000000000000 R15: 0000000000000000
FS: 000055555644c400(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555645db78 CR3: 00000001077a2000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_xattr_ibody_set+0x7c/0x2a0 fs/ext4/xattr.c:2227
ext4_xattr_set_handle+0xc5d/0x15a0 fs/ext4/xattr.c:2384
ext4_initxattrs+0xb2/0x120 fs/ext4/xattr_security.c:43
security_inode_init_security+0x26c/0x3c0 security/security.c:1033
ext4_init_security+0x34/0x40 fs/ext4/xattr_security.c:57
__ext4_new_inode+0x3648/0x4530 fs/ext4/ialloc.c:1322
ext4_mkdir+0x3b3/0xbb0 fs/ext4/namei.c:2947
vfs_mkdir+0x435/0x610 fs/namei.c:3729
do_mkdirat+0x1b6/0x2d0 fs/namei.c:3752
__do_sys_mkdirat fs/namei.c:3763 [inline]
__se_sys_mkdirat fs/namei.c:3761 [inline]
__x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3761
do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f11fbe91387
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd8f80a688 EFLAGS: 00000206 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ffd8f80a710 RCX: 00007f11fbe91387
RDX: 00000000000001ff RSI: 00007ffd8f80a710 RDI: 00000000ffffff9c
RBP: 00007ffd8f80a6ec R08: 0000000000000000 R09: 0000000000000003
R10: 00007ffd8f80a427 R11: 0000000000000206 R12: 0000000000000032
R13: 0000000000008e57 R14: 0000000000000003 R15: 00007ffd8f80a750
Modules linked in:
---[ end trace d25c450af9d69d96 ]---
RIP: 0010:ext4_xattr_set_entry+0x4ad/0x37e0 fs/ext4/xattr.c:1586
Code: 00 00 48 89 d8 48 c1 e8 03 48 89 84 24 28 01 00 00 42 80 3c 20 00 74 08 48 89 df e8 1d 97 ba ff 4c 8b 33 4c 89 f0 48 c1 e8 03 <42> 8a 04 20 84 c0 0f 85 46 2d 00 00 4c 89 f8 48 2b 44 24 18 48 89
RSP: 0018:ffffc90000bd73a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc90000bd77a0 RCX: ffff88810b4fcf00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c
RBP: ffffc90000bd7638 R08: ffffffff81ec5e29 R09: ffffed10240072ff
R10: ffffed10240072ff R11: 1ffff110240072fe R12: dffffc0000000000
R13: 1ffff9200017aeee R14: 0000000000000000 R15: 0000000000000000
FS: 000055555644c400(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555645db78 CR3: 00000001077a2000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: 48 89 d8 mov %rbx,%rax
5: 48 c1 e8 03 shr $0x3,%rax
9: 48 89 84 24 28 01 00 mov %rax,0x128(%rsp)
10: 00
11: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
16: 74 08 je 0x20
18: 48 89 df mov %rbx,%rdi
1b: e8 1d 97 ba ff callq 0xffba973d
20: 4c 8b 33 mov (%rbx),%r14
23: 4c 89 f0 mov %r14,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 8a 04 20 mov (%rax,%r12,1),%al <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 46 2d 00 00 jne 0x2d7c
36: 4c 89 f8 mov %r15,%rax
39: 48 2b 44 24 18 sub 0x18(%rsp),%rax
3e: 48 rex.W
3f: 89 .byte 0x89


Tested on:

commit: 59390358 Merge 5.10.140 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=17957b6d080000
kernel config: https://syzkaller.appspot.com/x/.config?x=710ac82b1e8d5ed2
dashboard link: https://syzkaller.appspot.com/bug?extid=70627ce76b4994c2e0b4

Tadeusz Struk

unread,
Sep 8, 2022, 7:55:15 PM9/8/22
to syzkaller, syzbot+70627c...@syzkaller.appspotmail.com

syzbot

unread,
Sep 8, 2022, 8:07:20 PM9/8/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+70627c...@syzkaller.appspotmail.com

Tested on:

commit: 50635787 Merge tag 'spi-fix-v6.0-rc4' of git://git.ker..
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=1239451f080000
kernel config: https://syzkaller.appspot.com/x/.config?x=e8859ffa0e57bbe4
dashboard link: https://syzkaller.appspot.com/bug?extid=70627ce76b4994c2e0b4
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2

Note: no patches were applied.

syzbot

unread,
Sep 8, 2022, 8:34:17 PM9/8/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
SYZFATAL: executor failed NUM times: failed to create temp dir: mkdir ./syzkaller-testdir4ADDR: structure needs cleaning

2022/09/09 00:33:57 SYZFATAL: executor failed 11 times: failed to create temp dir: mkdir ./syzkaller-testdir4075964024: structure needs cleaning


Tested on:

commit: eef3b6ff BACKPORT: scsi: ufs: core: Increase fDeviceIn..
git tree: https://android.googlesource.com/kernel/common android12-5.10
console output: https://syzkaller.appspot.com/x/log.txt?x=17df0c53080000
kernel config: https://syzkaller.appspot.com/x/.config?x=ac1dcc8951d16ea5

Tadeusz Struk

unread,
Sep 8, 2022, 8:55:22 PM9/8/22
to syzkaller, syzbot+70627c...@syzkaller.appspotmail.com

syzbot

unread,
Sep 8, 2022, 9:42:11 PM9/8/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
SYZFATAL: executor failed NUM times: failed to create temp dir: mkdir ./syzkaller-testdir3ADDR: structure needs cleaning

2022/09/09 01:41:28 SYZFATAL: executor failed 11 times: failed to create temp dir: mkdir ./syzkaller-testdir3333203930: structure needs cleaning


Tested on:

commit: eef3b6ff BACKPORT: scsi: ufs: core: Increase fDeviceIn..
git tree: https://android.googlesource.com/kernel/common android12-5.10
console output: https://syzkaller.appspot.com/x/log.txt?x=1104efe7080000

Tadeusz Struk

unread,
Sep 16, 2022, 5:44:06 PM9/16/22
to syzkaller, syzbot+23f57c...@syzkaller.appspotmail.com

syzbot

unread,
Sep 16, 2022, 5:54:21 PM9/16/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
KASAN: slab-out-of-bounds Read in mon_bin_flush

==================================================================
BUG: KASAN: slab-out-of-bounds in MON_OFF2HDR drivers/usb/mon/mon_bin.c:207 [inline]
BUG: KASAN: slab-out-of-bounds in mon_bin_flush+0x121/0x260 drivers/usb/mon/mon_bin.c:884
Read of size 8 at addr ffff8881134c7ab8 by task syz-executor.0/454

CPU: 1 PID: 454 Comm: syz-executor.0 Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:317 [inline]
print_report+0x173/0x630 mm/kasan/report.c:433
kasan_report+0xe6/0x110 mm/kasan/report.c:495
__asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:307
MON_OFF2HDR drivers/usb/mon/mon_bin.c:207 [inline]
mon_bin_flush+0x121/0x260 drivers/usb/mon/mon_bin.c:884
mon_bin_ioctl+0x2fb/0xed0 drivers/usb/mon/mon_bin.c:1060
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0x115/0x190 fs/ioctl.c:856
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x2f/0x50 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f4674489409
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f46756cb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f467459bf80 RCX: 00007f4674489409
RDX: 0000000000000006 RSI: 0000000000009208 RDI: 0000000000000003
RBP: 00007f46744e4367 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd92894c7f R14: 00007f46756cb300 R15: 0000000000022000
</TASK>

Allocated by task 175:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:437 [inline]
____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:516
__kasan_kmalloc+0x9/0x10 mm/kasan/common.c:525
kasan_kmalloc include/linux/kasan.h:234 [inline]
kmem_cache_alloc_trace+0x1f0/0x320 mm/slub.c:3284
kmalloc include/linux/slab.h:600 [inline]
kzalloc include/linux/slab.h:733 [inline]
kobject_uevent_env+0x265/0x730 lib/kobject_uevent.c:524
kobject_synth_uevent+0x3c4/0x930 lib/kobject_uevent.c:208
uevent_store+0x25/0x60 drivers/base/core.c:2509
dev_attr_store+0x5c/0x80 drivers/base/core.c:2211
sysfs_kf_write+0x123/0x140 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x2cd/0x410 fs/kernfs/file.c:354
call_write_iter include/linux/fs.h:2187 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x8b5/0xef0 fs/read_write.c:578
ksys_write+0x198/0x2c0 fs/read_write.c:631
__do_sys_write fs/read_write.c:643 [inline]
__se_sys_write fs/read_write.c:640 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:640
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x2f/0x50 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd

Freed by task 175:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4c/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x137/0x180 mm/kasan/common.c:367
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:375
kasan_slab_free include/linux/kasan.h:200 [inline]
slab_free_hook mm/slub.c:1754 [inline]
slab_free_freelist_hook+0xc9/0x1a0 mm/slub.c:1780
slab_free mm/slub.c:3534 [inline]
kfree+0xcf/0x1f0 mm/slub.c:4562
kobject_uevent_env+0x51c/0x730 lib/kobject_uevent.c:626
kobject_synth_uevent+0x3c4/0x930 lib/kobject_uevent.c:208
uevent_store+0x25/0x60 drivers/base/core.c:2509
dev_attr_store+0x5c/0x80 drivers/base/core.c:2211
sysfs_kf_write+0x123/0x140 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x2cd/0x410 fs/kernfs/file.c:354
call_write_iter include/linux/fs.h:2187 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x8b5/0xef0 fs/read_write.c:578
ksys_write+0x198/0x2c0 fs/read_write.c:631
__do_sys_write fs/read_write.c:643 [inline]
__se_sys_write fs/read_write.c:640 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:640
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x2f/0x50 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd

The buggy address belongs to the object at ffff8881134c6000
which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 2744 bytes to the right of
4096-byte region [ffff8881134c6000, ffff8881134c7000)

The buggy address belongs to the physical page:
page:ffffea00044d3000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1134c0
head:ffffea00044d3000 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x8000000000010200(slab|head|zone=2)
raw: 8000000000010200 0000000000000000 dead000000000122 ffff888100042140
raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 175, tgid 175 (udevadm), ts 3562996396, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x15b/0x160 mm/page_alloc.c:2525
prep_new_page mm/page_alloc.c:2532 [inline]
get_page_from_freelist+0x412/0x8e0 mm/page_alloc.c:4283
__alloc_pages+0x3d1/0x7c0 mm/page_alloc.c:5515
allocate_slab+0x69/0x480 mm/slub.c:1969
new_slab mm/slub.c:2029 [inline]
___slab_alloc+0x2c2/0x6a0 mm/slub.c:3031
__slab_alloc+0x4a/0x90 mm/slub.c:3118
slab_alloc_node mm/slub.c:3209 [inline]
slab_alloc mm/slub.c:3251 [inline]
kmem_cache_alloc_trace+0x221/0x320 mm/slub.c:3282
kmalloc include/linux/slab.h:600 [inline]
kzalloc include/linux/slab.h:733 [inline]
kobject_uevent_env+0x265/0x730 lib/kobject_uevent.c:524
kobject_synth_uevent+0x3c4/0x930 lib/kobject_uevent.c:208
uevent_store+0x25/0x60 drivers/base/core.c:2509
dev_attr_store+0x5c/0x80 drivers/base/core.c:2211
sysfs_kf_write+0x123/0x140 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x2cd/0x410 fs/kernfs/file.c:354
call_write_iter include/linux/fs.h:2187 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x8b5/0xef0 fs/read_write.c:578
ksys_write+0x198/0x2c0 fs/read_write.c:631
__do_sys_write fs/read_write.c:643 [inline]
__se_sys_write fs/read_write.c:640 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:640
page_owner free stack trace missing

Memory state around the buggy address:
ffff8881134c7980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff8881134c7a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8881134c7a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff8881134c7b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff8881134c7b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
general protection fault, probably for non-canonical address 0xdffffc000000013c: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000009e0-0x00000000000009e7]
CPU: 1 PID: 454 Comm: syz-executor.0 Tainted: G B 6.0.0-rc5-syzkaller-00094-ga335366bad13 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:mon_bin_flush+0x141/0x260 drivers/usb/mon/mon_bin.c:885
Code: 74 08 48 89 df e8 1f 1b 8d fe 48 8b 03 41 81 e7 ff 0f 00 00 4d 8d 7c 07 24 4c 89 f8 48 c1 e8 03 48 bb 00 00 00 00 00 fc ff df <0f> b6 04 18 84 c0 75 6b 41 8b 37 83 c6 40 4c 89 f7 e8 a9 fd ff ff
RSP: 0018:ffffc90002edfd08 EFLAGS: 00010007
RAX: 000000000000013c RBX: dffffc0000000000 RCX: ffff88810d33a200
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002edfd70 R08: ffffffff8144ac33 R09: fffffbfff0d492f1
R10: fffffbfff0d492f1 R11: 1ffffffff0d492f0 R12: 00000000fffffffd
R13: ffff888112418b18 R14: ffff888112418b00 R15: 00000000000009e4
FS: 00007f46756cb700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f46744d7e58 CR3: 0000000124e88000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
mon_bin_ioctl+0x2fb/0xed0 drivers/usb/mon/mon_bin.c:1060
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0x115/0x190 fs/ioctl.c:856
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x2f/0x50 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f4674489409
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f46756cb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f467459bf80 RCX: 00007f4674489409
RDX: 0000000000000006 RSI: 0000000000009208 RDI: 0000000000000003
RBP: 00007f46744e4367 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd92894c7f R14: 00007f46756cb300 R15: 0000000000022000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mon_bin_flush+0x141/0x260 drivers/usb/mon/mon_bin.c:885
Code: 74 08 48 89 df e8 1f 1b 8d fe 48 8b 03 41 81 e7 ff 0f 00 00 4d 8d 7c 07 24 4c 89 f8 48 c1 e8 03 48 bb 00 00 00 00 00 fc ff df <0f> b6 04 18 84 c0 75 6b 41 8b 37 83 c6 40 4c 89 f7 e8 a9 fd ff ff
RSP: 0018:ffffc90002edfd08 EFLAGS: 00010007
RAX: 000000000000013c RBX: dffffc0000000000 RCX: ffff88810d33a200
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002edfd70 R08: ffffffff8144ac33 R09: fffffbfff0d492f1
R10: fffffbfff0d492f1 R11: 1ffffffff0d492f0 R12: 00000000fffffffd
R13: ffff888112418b18 R14: ffff888112418b00 R15: 00000000000009e4
FS: 00007f46756cb700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f46744d7e58 CR3: 0000000124e88000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 74 08 je 0xa
2: 48 89 df mov %rbx,%rdi
5: e8 1f 1b 8d fe callq 0xfe8d1b29
a: 48 8b 03 mov (%rbx),%rax
d: 41 81 e7 ff 0f 00 00 and $0xfff,%r15d
14: 4d 8d 7c 07 24 lea 0x24(%r15,%rax,1),%r15
19: 4c 89 f8 mov %r15,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 48 bb 00 00 00 00 00 movabs $0xdffffc0000000000,%rbx
27: fc ff df
* 2a: 0f b6 04 18 movzbl (%rax,%rbx,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 75 6b jne 0x9d
32: 41 8b 37 mov (%r15),%esi
35: 83 c6 40 add $0x40,%esi
38: 4c 89 f7 mov %r14,%rdi
3b: e8 a9 fd ff ff callq 0xfffffde9


Tested on:

commit: a335366b Merge tag 'gpio-fixes-for-v6.0-rc6' of git://..
console output: https://syzkaller.appspot.com/x/log.txt?x=1488f1d8880000
kernel config: https://syzkaller.appspot.com/x/.config?x=a3858b37a617f2bb
dashboard link: https://syzkaller.appspot.com/bug?extid=23f57c5ae902429285d7

Tadeusz Struk

unread,
Sep 22, 2022, 1:59:45 PM9/22/22
to syzkaller, syzbot+70627c...@syzkaller.appspotmail.com

syzbot

unread,
Sep 22, 2022, 2:09:28 PM9/22/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
general protection fault in ext4_xattr_set_entry

general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 404 Comm: syz-executor.0 Not tainted 5.10.144-syzkaller-987214-g7474313da8d6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2022
RIP: 0010:ext4_xattr_set_entry+0x4a7/0x3820 fs/ext4/xattr.c:1586
Code: 00 00 48 89 d8 48 c1 e8 03 48 89 84 24 28 01 00 00 42 80 3c 20 00 74 08 48 89 df e8 23 8b ba ff 4c 8b 33 4c 89 f0 48 c1 e8 03 <42> 8a 04 20 84 c0 0f 85 8f 2d 00 00 4c 89 f8 48 2b 44 24 18 48 89
RSP: 0018:ffffc900009ff3a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc900009ff7a0 RCX: ffff888106bc3b40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c
RBP: ffffc900009ff638 R08: ffffffff81ec6b09 R09: ffffed1021cefb1e
R10: ffffed1021cefb1e R11: 1ffff11021cefb1d R12: dffffc0000000000
R13: 1ffff9200013feee R14: 0000000000000000 R15: 0000000000000000
FS: 0000555556d3b400(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556d4cb78 CR3: 000000010a758000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_xattr_ibody_set+0x7c/0x2a0 fs/ext4/xattr.c:2227
ext4_xattr_set_handle+0xc5d/0x15a0 fs/ext4/xattr.c:2384
ext4_initxattrs+0xb2/0x120 fs/ext4/xattr_security.c:43
security_inode_init_security+0x26c/0x3c0 security/security.c:1033
ext4_init_security+0x34/0x40 fs/ext4/xattr_security.c:57
__ext4_new_inode+0x3648/0x4530 fs/ext4/ialloc.c:1322
ext4_mkdir+0x3b3/0xbb0 fs/ext4/namei.c:2947
vfs_mkdir+0x435/0x610 fs/namei.c:3729
do_mkdirat+0x1b6/0x2d0 fs/namei.c:3752
__do_sys_mkdirat fs/namei.c:3763 [inline]
__se_sys_mkdirat fs/namei.c:3761 [inline]
__x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3761
do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f09e2f59387
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffde6f51928 EFLAGS: 00000206 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ffde6f519b0 RCX: 00007f09e2f59387
RDX: 00000000000001ff RSI: 00007ffde6f519b0 RDI: 00000000ffffff9c
RBP: 00007ffde6f5198c R08: 0000000000000000 R09: 0000000000000003
R10: 00007ffde6f516c7 R11: 0000000000000206 R12: 0000000000000032
R13: 00000000000092a2 R14: 0000000000000003 R15: 00007ffde6f519f0
Modules linked in:
---[ end trace 149b36506e04c517 ]---
RIP: 0010:ext4_xattr_set_entry+0x4a7/0x3820 fs/ext4/xattr.c:1586
Code: 00 00 48 89 d8 48 c1 e8 03 48 89 84 24 28 01 00 00 42 80 3c 20 00 74 08 48 89 df e8 23 8b ba ff 4c 8b 33 4c 89 f0 48 c1 e8 03 <42> 8a 04 20 84 c0 0f 85 8f 2d 00 00 4c 89 f8 48 2b 44 24 18 48 89
RSP: 0018:ffffc900009ff3a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc900009ff7a0 RCX: ffff888106bc3b40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c
RBP: ffffc900009ff638 R08: ffffffff81ec6b09 R09: ffffed1021cefb1e
R10: ffffed1021cefb1e R11: 1ffff11021cefb1d R12: dffffc0000000000
R13: 1ffff9200013feee R14: 0000000000000000 R15: 0000000000000000
FS: 0000555556d3b400(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556d4cb78 CR3: 000000010a758000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: 48 89 d8 mov %rbx,%rax
5: 48 c1 e8 03 shr $0x3,%rax
9: 48 89 84 24 28 01 00 mov %rax,0x128(%rsp)
10: 00
11: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
16: 74 08 je 0x20
18: 48 89 df mov %rbx,%rdi
1b: e8 23 8b ba ff callq 0xffba8b43
20: 4c 8b 33 mov (%rbx),%r14
23: 4c 89 f0 mov %r14,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 8a 04 20 mov (%rax,%r12,1),%al <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 8f 2d 00 00 jne 0x2dc5
36: 4c 89 f8 mov %r15,%rax
39: 48 2b 44 24 18 sub 0x18(%rsp),%rax
3e: 48 rex.W
3f: 89 .byte 0x89


Tested on:

commit: 7474313d Merge 5.10.144 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=12fa1308880000
kernel config: https://syzkaller.appspot.com/x/.config?x=d3f70c59f45da9a3
dashboard link: https://syzkaller.appspot.com/bug?extid=70627ce76b4994c2e0b4

Tadeusz Struk

unread,
Sep 23, 2022, 1:49:25 PM9/23/22
to syzkaller, syzbot+70627c...@syzkaller.appspotmail.com

syzbot

unread,
Sep 23, 2022, 7:15:26 PM9/23/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+70627c...@syzkaller.appspotmail.com

Tested on:

commit: 3e98e33d Linux 5.15.70
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=155a0e2f080000
kernel config: https://syzkaller.appspot.com/x/.config?x=a601bbfcb4e31d65
dashboard link: https://syzkaller.appspot.com/bug?extid=70627ce76b4994c2e0b4
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2

Note: no patches were applied.

syzbot

unread,
Sep 23, 2022, 7:23:21 PM9/23/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
general protection fault in ext4_xattr_set_entry

!!! ext4_mkdir 1
!!!ext4_initxattrs set hndl name selinux
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 406 Comm: syz-executor.0 Not tainted 5.10.144-syzkaller-987214-g7474313da8d6-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:ext4_xattr_set_entry+0x983/0x2290 fs/ext4/xattr.c:1584
Code: 03 48 89 84 24 c0 00 00 00 42 80 3c 28 00 4c 8d b4 24 00 01 00 00 74 08 4c 89 ff e8 97 85 ba ff 49 8b 1f 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 dd 15 00 00 44 0f b6 03 41 83 c0 13 41 83
RSP: 0018:ffffc90000bf74a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888106b9cf00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c
RBP: ffffc90000bf7638 R08: ffffffff81ec6b98 R09: ffffed1021cf3bdb
R10: ffffed1021cf3bdb R11: 1ffff11021cf3bda R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc90000bf75a0 R15: ffffc90000bf77a0
FS: 00005555573ff400(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555557410b78 CR3: 000000011f481000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_xattr_ibody_set+0x7c/0x2a0 fs/ext4/xattr.c:2230
ext4_xattr_set_handle+0xc5d/0x15a0 fs/ext4/xattr.c:2387
ext4_initxattrs+0xcd/0x140 fs/ext4/xattr_security.c:44
security_inode_init_security+0x26c/0x3c0 security/security.c:1033
ext4_init_security+0x34/0x40 fs/ext4/xattr_security.c:58
__ext4_new_inode+0x3648/0x4530 fs/ext4/ialloc.c:1322
ext4_mkdir+0x456/0xc60 fs/ext4/namei.c:2950
vfs_mkdir+0x435/0x610 fs/namei.c:3729
do_mkdirat+0x1b6/0x2d0 fs/namei.c:3752
__do_sys_mkdirat fs/namei.c:3763 [inline]
__se_sys_mkdirat fs/namei.c:3761 [inline]
__x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3761
do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fb76c213387
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe681d0038 EFLAGS: 00000202 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ffe681d00c0 RCX: 00007fb76c213387
RDX: 00000000000001ff RSI: 00007ffe681d00c0 RDI: 00000000ffffff9c
RBP: 00007ffe681d009c R08: 0000000000000000 R09: 0000000000000003
R10: 00007ffe681cfdd7 R11: 0000000000000202 R12: 0000000000000032
R13: 0000000000009a8e R14: 0000000000000003 R15: 00007ffe681d0100
Modules linked in:
---[ end trace d6ab0deee0f3c23c ]---
RIP: 0010:ext4_xattr_set_entry+0x983/0x2290 fs/ext4/xattr.c:1584
Code: 03 48 89 84 24 c0 00 00 00 42 80 3c 28 00 4c 8d b4 24 00 01 00 00 74 08 4c 89 ff e8 97 85 ba ff 49 8b 1f 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 dd 15 00 00 44 0f b6 03 41 83 c0 13 41 83
RSP: 0018:ffffc90000bf74a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888106b9cf00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c
RBP: ffffc90000bf7638 R08: ffffffff81ec6b98 R09: ffffed1021cf3bdb
R10: ffffed1021cf3bdb R11: 1ffff11021cf3bda R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc90000bf75a0 R15: ffffc90000bf77a0
FS: 00005555573ff400(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557d22396098 CR3: 000000011f481000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 03 48 89 add -0x77(%rax),%ecx
3: 84 24 c0 test %ah,(%rax,%rax,8)
6: 00 00 add %al,(%rax)
8: 00 42 80 add %al,-0x80(%rdx)
b: 3c 28 cmp $0x28,%al
d: 00 4c 8d b4 add %cl,-0x4c(%rbp,%rcx,4)
11: 24 00 and $0x0,%al
13: 01 00 add %eax,(%rax)
15: 00 74 08 4c add %dh,0x4c(%rax,%rcx,1)
19: 89 ff mov %edi,%edi
1b: e8 97 85 ba ff callq 0xffba85b7
20: 49 8b 1f mov (%r15),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 8a 04 28 mov (%rax,%r13,1),%al <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 dd 15 00 00 jne 0x1613
36: 44 0f b6 03 movzbl (%rbx),%r8d
3a: 41 83 c0 13 add $0x13,%r8d
3e: 41 rex.B
3f: 83 .byte 0x83


Tested on:

commit: 7474313d Merge 5.10.144 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=115ce6e4880000
kernel config: https://syzkaller.appspot.com/x/.config?x=d3f70c59f45da9a3
dashboard link: https://syzkaller.appspot.com/bug?extid=70627ce76b4994c2e0b4
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=14bf5318880000

syzbot

unread,
Sep 23, 2022, 7:35:24 PM9/23/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
general protection fault in ext4_xattr_set_entry

!!!! security_inode_init_security 4 ret 0
!!!! security_inode_init_security 5 ret 0
!!!ext4_initxattrs 1
!!!ext4_initxattrs set hndl name selinux
!!! ext4_xattr_set_handle 1 selinux
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 404 Comm: syz-executor.0 Not tainted 5.10.144-syzkaller-987214-g7474313da8d6-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:ext4_xattr_set_entry+0x983/0x2290 fs/ext4/xattr.c:1584
Code: 03 48 89 84 24 c0 00 00 00 42 80 3c 28 00 4c 8d b4 24 00 01 00 00 74 08 4c 89 ff e8 17 82 ba ff 49 8b 1f 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 dd 15 00 00 44 0f b6 03 41 83 c0 13 41 83
RSP: 0018:ffffc90000a3f4e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888106594f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c
RBP: ffffc90000a3f670 R08: ffffffff81ec6f18 R09: ffffed102379c185
R10: ffffed102379c185 R11: 1ffff1102379c184 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc90000a3f5e0 R15: ffffc90000a3f7a0
FS: 000055555683c400(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555684db78 CR3: 000000010ce4c000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_xattr_ibody_set fs/ext4/xattr.c:2230 [inline]
ext4_xattr_set_handle+0xe21/0x18f0 fs/ext4/xattr.c:2389
ext4_initxattrs+0xdb/0x150 fs/ext4/xattr_security.c:45
security_inode_init_security+0x356/0x450 security/security.c:1041
ext4_init_security+0x42/0x50 fs/ext4/xattr_security.c:60
__ext4_new_inode+0x37bd/0x4a70 fs/ext4/ialloc.c:1325
ext4_mkdir+0x456/0xc60 fs/ext4/namei.c:2950
vfs_mkdir+0x435/0x610 fs/namei.c:3729
do_mkdirat+0x1b6/0x2d0 fs/namei.c:3752
__do_sys_mkdirat fs/namei.c:3763 [inline]
__se_sys_mkdirat fs/namei.c:3761 [inline]
__x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3761
do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f38d427d387
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe35c3c4b8 EFLAGS: 00000206 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ffe35c3c540 RCX: 00007f38d427d387
RDX: 00000000000001ff RSI: 00007ffe35c3c540 RDI: 00000000ffffff9c
RBP: 00007ffe35c3c51c R08: 0000000000000000 R09: 0000000000000003
R10: 00007ffe35c3c257 R11: 0000000000000206 R12: 0000000000000032
R13: 000000000000bfe1 R14: 0000000000000003 R15: 00007ffe35c3c580
Modules linked in:
---[ end trace caf9059242882f85 ]---
RIP: 0010:ext4_xattr_set_entry+0x983/0x2290 fs/ext4/xattr.c:1584
Code: 03 48 89 84 24 c0 00 00 00 42 80 3c 28 00 4c 8d b4 24 00 01 00 00 74 08 4c 89 ff e8 17 82 ba ff 49 8b 1f 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 dd 15 00 00 44 0f b6 03 41 83 c0 13 41 83
RSP: 0018:ffffc90000a3f4e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888106594f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000001c
RBP: ffffc90000a3f670 R08: ffffffff81ec6f18 R09: ffffed102379c185
R10: ffffed102379c185 R11: 1ffff1102379c184 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc90000a3f5e0 R15: ffffc90000a3f7a0
FS: 000055555683c400(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555684db78 CR3: 000000010ce4c000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 03 48 89 add -0x77(%rax),%ecx
3: 84 24 c0 test %ah,(%rax,%rax,8)
6: 00 00 add %al,(%rax)
8: 00 42 80 add %al,-0x80(%rdx)
b: 3c 28 cmp $0x28,%al
d: 00 4c 8d b4 add %cl,-0x4c(%rbp,%rcx,4)
11: 24 00 and $0x0,%al
13: 01 00 add %eax,(%rax)
15: 00 74 08 4c add %dh,0x4c(%rax,%rcx,1)
19: 89 ff mov %edi,%edi
1b: e8 17 82 ba ff callq 0xffba8237
20: 49 8b 1f mov (%r15),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 8a 04 28 mov (%rax,%r13,1),%al <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 dd 15 00 00 jne 0x1613
36: 44 0f b6 03 movzbl (%rbx),%r8d
3a: 41 83 c0 13 add $0x13,%r8d
3e: 41 rex.B
3f: 83 .byte 0x83


Tested on:

commit: 7474313d Merge 5.10.144 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=139702ff080000
kernel config: https://syzkaller.appspot.com/x/.config?x=d3f70c59f45da9a3
dashboard link: https://syzkaller.appspot.com/bug?extid=70627ce76b4994c2e0b4
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=15d03288880000

Tadeusz Struk

unread,
Sep 23, 2022, 10:12:34 PM9/23/22
to syzkaller, syzbot+70627c...@syzkaller.appspotmail.com

syzbot

unread,
Sep 24, 2022, 5:33:18 AM9/24/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
SYZFATAL: executor failed NUM times: failed to create temp dir: mkdir ./syzkaller-testdir1ADDR: structure needs cleaning

2022/09/24 09:32:07 SYZFATAL: executor failed 11 times: failed to create temp dir: mkdir ./syzkaller-testdir1078511781: structure needs cleaning


Tested on:

commit: 545728d9 Linux 5.14.21
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=155a06ef080000
kernel config: https://syzkaller.appspot.com/x/.config?x=e8d53367386d166e
dashboard link: https://syzkaller.appspot.com/bug?extid=70627ce76b4994c2e0b4
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2

Tadeusz Struk

unread,
Sep 24, 2022, 9:14:58 AM9/24/22
to syzkaller, syzbot+70627c...@syzkaller.appspotmail.com

syzbot

unread,
Sep 24, 2022, 2:33:19 PM9/24/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
SYZFATAL: executor failed NUM times: failed to create temp dir: mkdir ./syzkaller-testdir2ADDR: structure needs cleaning

2022/09/24 18:32:31 SYZFATAL: executor failed 11 times: failed to create temp dir: mkdir ./syzkaller-testdir2528817477: structure needs cleaning


Tested on:

commit: f7eb8f60 Linux 5.13.19
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.13.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1325662f080000
kernel config: https://syzkaller.appspot.com/x/.config?x=1bce7cdcbd4cf925

Tadeusz Struk

unread,
Sep 27, 2022, 7:10:01 PM9/27/22
to syzkaller, syzbot+a22dc4...@syzkaller.appspotmail.com

syzbot

unread,
Sep 27, 2022, 7:10:02 PM9/27/22
to Tadeusz Struk, syzkaller-a...@googlegroups.com, tadeus...@linaro.org
This bug is already marked as invalid. No point in testing.

>
>
>

Tadeusz Struk

unread,
Sep 27, 2022, 7:19:34 PM9/27/22
to syzbot, syzkaller-a...@googlegroups.com
#syz uninvalid

syzbot

unread,
Sep 27, 2022, 7:19:35 PM9/27/22
to Tadeusz Struk, syzkaller-a...@googlegroups.com, tadeus...@linaro.org
> #syz uninvalid

unknown command "uninvalid"

>
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-android-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-android...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-android-bugs/5772c368-a879-e92b-6fe6-829127f96b25%40linaro.org.

syzbot

unread,
Sep 27, 2022, 7:19:36 PM9/27/22
to Tadeusz Struk, syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Reply all
Reply to author
Forward
0 new messages