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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOQ4uxg36w5rE6RgOCLBqbPsmytJ24cXhhahuQE0H8pqSZ_FJg@mail.gmail.com>
Date: Thu, 19 Dec 2024 12:17:57 +0100
From: Amir Goldstein <amir73il@...il.com>
To: syzbot <syzbot+ec07f6f5ce62b858579f@...kaller.appspotmail.com>
Cc: linux-kernel@...r.kernel.org, linux-unionfs@...r.kernel.org, 
	miklos@...redi.hu, syzkaller-bugs@...glegroups.com, 
	linux-fsdevel <linux-fsdevel@...r.kernel.org>
Subject: Re: [syzbot] [overlayfs?] WARNING in ovl_encode_real_fh

On Mon, Oct 28, 2024 at 7:12 PM syzbot
<syzbot+ec07f6f5ce62b858579f@...kaller.appspotmail.com> wrote:
>
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit:    c2ee9f594da8 KVM: selftests: Fix build on on non-x86 archi..
> git tree:       upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=178bf640580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=fc6f8ce8c5369043
> dashboard link: https://syzkaller.appspot.com/bug?extid=ec07f6f5ce62b858579f
> compiler:       Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=112628a7980000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=104bf640580000
>
> Downloadable assets:
> disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7feb34a89c2a/non_bootable_disk-c2ee9f59.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/8a3541902b13/vmlinux-c2ee9f59.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/a00efacc2604/bzImage-c2ee9f59.xz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+ec07f6f5ce62b858579f@...kaller.appspotmail.com
>
> RDX: 0000000000000000 RSI: 0000000020000440 RDI: 00000000ffffff9c
> RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000003932
> R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc9b4e42fc
> R13: 0000000000000004 R14: 431bde82d7b634db R15: 00007ffc9b4e4330
>  </TASK>
> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 5103 at fs/overlayfs/copy_up.c:448 ovl_encode_real_fh+0x2e2/0x410 fs/overlayfs/copy_up.c:448
> Modules linked in:
> CPU: 0 UID: 0 PID: 5103 Comm: syz-executor195 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0
> Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
> RIP: 0010:ovl_encode_real_fh+0x2e2/0x410 fs/overlayfs/copy_up.c:448
> Code: 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 05 b6 75 fe 90 0f 0b 90 eb 14 e8 fa b5 75 fe 90 0f 0b 90 eb 09 e8 ef b5 75 fe 90 <0f> 0b 90 4c 89 ff e8 b3 6a d3 fe 49 c7 c7 fb ff ff ff eb 8b 89 d1
> RSP: 0018:ffffc9000b1f73c0 EFLAGS: 00010293
> RAX: ffffffff831f21f1 RBX: 1ffff9200163ee80 RCX: ffff88801fbc2440
> RDX: 0000000000000000 RSI: 00000000000000ff RDI: 00000000000000ff
> RBP: ffffc9000b1f7470 R08: ffffffff831f208c R09: 1ffffffff2039fdd
> R10: dffffc0000000000 R11: fffffbfff2039fde R12: 00000000000000ff
> R13: 0000000000000080 R14: 1ffff9200163ee7c R15: ffff888036790300
> FS:  0000555590223480(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 00007f6fdf3d7709 CR3: 0000000040e6e000 CR4: 0000000000352ef0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> Call Trace:
>  <TASK>
>  ovl_get_origin_fh fs/overlayfs/copy_up.c:484 [inline]
>  ovl_do_copy_up fs/overlayfs/copy_up.c:961 [inline]
>  ovl_copy_up_one fs/overlayfs/copy_up.c:1203 [inline]
>  ovl_copy_up_flags+0x1068/0x46f0 fs/overlayfs/copy_up.c:1258
>  ovl_setattr+0x11d/0x5a0 fs/overlayfs/inode.c:40
>  notify_change+0xbca/0xe90 fs/attr.c:503
>  chown_common+0x501/0x850 fs/open.c:793
>  do_fchownat+0x16a/0x240 fs/open.c:824
>  __do_sys_fchownat fs/open.c:839 [inline]
>  __se_sys_fchownat fs/open.c:836 [inline]
>  __x64_sys_fchownat+0xb5/0xd0 fs/open.c:836
>  do_syscall_x64 arch/x86/entry/common.c:52 [inline]
>  do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
>  entry_SYSCALL_64_after_hwframe+0x77/0x7f
> RIP: 0033:0x7f6fdf3812f9
> Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 1b 00 00 90 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:00007ffc9b4e42a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000104
> RAX: ffffffffffffffda RBX: 00007ffc9b4e42b0 RCX: 00007f6fdf3812f9
> RDX: 0000000000000000 RSI: 0000000020000440 RDI: 00000000ffffff9c
> RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000003932
> R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc9b4e42fc
> R13: 0000000000000004 R14: 431bde82d7b634db R15: 00007ffc9b4e4330
>  </TASK>
>

#syz test https://github.com/amir73il/linux fsnotify-fixes

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ