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]
Message-ID: <6807999e.050a0220.8500a.001b.GAE@google.com>
Date: Tue, 22 Apr 2025 06:29:02 -0700
From: syzbot <syzbot+7a942657a255a9d9b18a@...kaller.appspotmail.com>
To: linux-kernel@...r.kernel.org, richard120310@...il.com, 
	syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [wireless?] memory leak in cfg80211_inform_single_bss_frame_data

Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
memory leak in path_openat

BUG: memory leak
unreferenced object 0xffff888104372300 (size 192):
  comm "syslogd", pid 4449, jiffies 4294938233 (age 148.950s)
  hex dump (first 32 bytes):
    08 81 00 00 08 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 29 37 04 81 88 ff ff  .........)7.....
  backtrace:
    [<ffffffff8169d671>] __d_alloc+0x31/0x2f0 fs/dcache.c:1769
    [<ffffffff8169d959>] d_alloc+0x29/0xd0 fs/dcache.c:1849
    [<ffffffff816a28c2>] d_alloc_parallel+0x62/0x610 fs/dcache.c:2638
    [<ffffffff8168dddd>] lookup_open fs/namei.c:3417 [inline]
    [<ffffffff8168dddd>] open_last_lookups fs/namei.c:3560 [inline]
    [<ffffffff8168dddd>] path_openat+0xcad/0x1bf0 fs/namei.c:3790
    [<ffffffff8168f931>] do_filp_open+0xd1/0x1c0 fs/namei.c:3820
    [<ffffffff81669104>] do_sys_openat2+0xf4/0x150 fs/open.c:1407
    [<ffffffff81669aef>] do_sys_open fs/open.c:1422 [inline]
    [<ffffffff81669aef>] __do_sys_openat fs/open.c:1438 [inline]
    [<ffffffff81669aef>] __se_sys_openat fs/open.c:1433 [inline]
    [<ffffffff81669aef>] __x64_sys_openat+0xaf/0x100 fs/open.c:1433
    [<ffffffff84ad6b78>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84ad6b78>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff888109d04930 (size 776):
  comm "syslogd", pid 4449, jiffies 4294938233 (age 148.950s)
  hex dump (first 32 bytes):
    00 00 00 00 01 00 00 00 00 00 20 00 00 00 00 00  .......... .....
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff81540f35>] alloc_inode_sb include/linux/fs.h:2729 [inline]
    [<ffffffff81540f35>] shmem_alloc_inode+0x25/0x50 mm/shmem.c:4042
    [<ffffffff816a6f83>] alloc_inode+0x23/0x100 fs/inode.c:260
    [<ffffffff816a7085>] new_inode_pseudo fs/inode.c:1018 [inline]
    [<ffffffff816a7085>] new_inode+0x25/0xf0 fs/inode.c:1046
    [<ffffffff815420f3>] shmem_get_inode+0xd3/0x550 mm/shmem.c:2370
    [<ffffffff815426a1>] shmem_mknod+0x41/0x140 mm/shmem.c:3074
    [<ffffffff8168e877>] lookup_open fs/namei.c:3492 [inline]
    [<ffffffff8168e877>] open_last_lookups fs/namei.c:3560 [inline]
    [<ffffffff8168e877>] path_openat+0x1747/0x1bf0 fs/namei.c:3790
    [<ffffffff8168f931>] do_filp_open+0xd1/0x1c0 fs/namei.c:3820
    [<ffffffff81669104>] do_sys_openat2+0xf4/0x150 fs/open.c:1407
    [<ffffffff81669aef>] do_sys_open fs/open.c:1422 [inline]
    [<ffffffff81669aef>] __do_sys_openat fs/open.c:1438 [inline]
    [<ffffffff81669aef>] __se_sys_openat fs/open.c:1433 [inline]
    [<ffffffff81669aef>] __x64_sys_openat+0xaf/0x100 fs/open.c:1433
    [<ffffffff84ad6b78>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84ad6b78>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810ad9bc60 (size 32):
  comm "syslogd", pid 4449, jiffies 4294938233 (age 148.950s)
  hex dump (first 32 bytes):
    f0 4a d0 09 81 88 ff ff 80 91 31 82 ff ff ff ff  .J........1.....
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff8231aab2>] kmem_cache_zalloc include/linux/slab.h:693 [inline]
    [<ffffffff8231aab2>] lsm_inode_alloc security/security.c:632 [inline]
    [<ffffffff8231aab2>] security_inode_alloc+0x32/0xd0 security/security.c:1479
    [<ffffffff816a3d4d>] inode_init_always+0x1ed/0x230 fs/inode.c:231
    [<ffffffff816a6fa0>] alloc_inode+0x40/0x100 fs/inode.c:267
    [<ffffffff816a7085>] new_inode_pseudo fs/inode.c:1018 [inline]
    [<ffffffff816a7085>] new_inode+0x25/0xf0 fs/inode.c:1046
    [<ffffffff815420f3>] shmem_get_inode+0xd3/0x550 mm/shmem.c:2370
    [<ffffffff815426a1>] shmem_mknod+0x41/0x140 mm/shmem.c:3074
    [<ffffffff8168e877>] lookup_open fs/namei.c:3492 [inline]
    [<ffffffff8168e877>] open_last_lookups fs/namei.c:3560 [inline]
    [<ffffffff8168e877>] path_openat+0x1747/0x1bf0 fs/namei.c:3790
    [<ffffffff8168f931>] do_filp_open+0xd1/0x1c0 fs/namei.c:3820
    [<ffffffff81669104>] do_sys_openat2+0xf4/0x150 fs/open.c:1407
    [<ffffffff81669aef>] do_sys_open fs/open.c:1422 [inline]
    [<ffffffff81669aef>] __do_sys_openat fs/open.c:1438 [inline]
    [<ffffffff81669aef>] __se_sys_openat fs/open.c:1433 [inline]
    [<ffffffff81669aef>] __x64_sys_openat+0xaf/0x100 fs/open.c:1433
    [<ffffffff84ad6b78>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84ad6b78>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff8881068f4db0 (size 576):
  comm "syslogd", pid 4449, jiffies 4294938233 (age 148.950s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 60 bc d9 0a 81 88 ff ff  ........`.......
  backtrace:
    [<ffffffff84acc59f>] xas_alloc+0xef/0x110 lib/xarray.c:375
    [<ffffffff84ace31c>] xas_expand lib/xarray.c:582 [inline]
    [<ffffffff84ace31c>] xas_create+0x10c/0x6f0 lib/xarray.c:653
    [<ffffffff84acf55b>] xas_store+0x7b/0xad0 lib/xarray.c:787
    [<ffffffff815438e2>] shmem_add_to_page_cache+0x2d2/0x4d0 mm/shmem.c:735
    [<ffffffff81547137>] shmem_get_folio_gfp+0x497/0xd10 mm/shmem.c:1978
    [<ffffffff81548981>] shmem_get_folio mm/shmem.c:2079 [inline]
    [<ffffffff81548981>] shmem_write_begin+0x91/0x1a0 mm/shmem.c:2573
    [<ffffffff815050b6>] generic_perform_write+0x116/0x2e0 mm/filemap.c:3923
    [<ffffffff8150f407>] __generic_file_write_iter+0x127/0x130 mm/filemap.c:4018
    [<ffffffff8150f493>] generic_file_write_iter+0x83/0x160 mm/filemap.c:4044
    [<ffffffff8166e518>] call_write_iter include/linux/fs.h:1871 [inline]
    [<ffffffff8166e518>] new_sync_write fs/read_write.c:491 [inline]
    [<ffffffff8166e518>] vfs_write+0x328/0x5c0 fs/read_write.c:584
    [<ffffffff8166ea0d>] ksys_write+0xad/0x170 fs/read_write.c:637
    [<ffffffff84ad6b78>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84ad6b78>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd



Tested on:

commit:         2772d7df Merge tag 'riscv-for-linus-6.5-rc2' of git://..
git tree:       git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=17b39174580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=9c6665cc8fad72d2
dashboard link: https://syzkaller.appspot.com/bug?extid=7a942657a255a9d9b18a
compiler:       gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch:          https://syzkaller.appspot.com/x/patch.diff?x=16a672cc580000


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ