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: <000000000000890fab05f65342b6@google.com>
Date:   Tue, 07 Mar 2023 10:05:42 -0800
From:   syzbot <syzbot+645a4616b87a2f10e398@...kaller.appspotmail.com>
To:     jejb@...ux.ibm.com, linux-kernel@...r.kernel.org,
        linux-scsi@...r.kernel.org, martin.petersen@...cle.com,
        syzkaller-bugs@...glegroups.com
Subject: [syzbot] [scsi?] memory leak in __proc_create

Hello,

syzbot found the following issue on:

HEAD commit:    8ca09d5fa354 cpumask: fix incorrect cpumask scanning resul..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=17c39338c80000
kernel config:  https://syzkaller.appspot.com/x/.config?x=337fc5840f41dbbe
dashboard link: https://syzkaller.appspot.com/bug?extid=645a4616b87a2f10e398
compiler:       gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=17500b98c80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/7b252fbf60d5/disk-8ca09d5f.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/4bd32a89510e/vmlinux-8ca09d5f.xz
kernel image: https://storage.googleapis.com/syzbot-assets/3d1b299dadec/bzImage-8ca09d5f.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+645a4616b87a2f10e398@...kaller.appspotmail.com

BUG: memory leak
unreferenced object 0xffff88810af45b40 (size 192):
  comm "kworker/1:5", pid 5185, jiffies 4294972950 (age 13.730s)
  hex dump (first 32 bytes):
    00 00 00 00 01 00 00 00 48 5b f4 0a 81 88 ff ff  ........H[......
    48 5b f4 0a 81 88 ff ff 00 00 00 00 00 00 00 00  H[..............
  backtrace:
    [<ffffffff81749860>] kmem_cache_zalloc include/linux/slab.h:710 [inline]
    [<ffffffff81749860>] __proc_create+0x1a0/0x3b0 fs/proc/generic.c:426
    [<ffffffff8174a42e>] proc_create_reg+0xae/0x120 fs/proc/generic.c:553
    [<ffffffff8174a4d5>] proc_create_data+0x35/0x90 fs/proc/generic.c:573
    [<ffffffff82c2559c>] scsi_proc_host_add+0xdc/0x160 drivers/scsi/scsi_proc.c:233
    [<ffffffff82c0c26b>] scsi_add_host_with_dma+0x48b/0x500 drivers/scsi/hosts.c:311
    [<ffffffff832b7f52>] scsi_add_host include/scsi/scsi_host.h:774 [inline]
    [<ffffffff832b7f52>] usb_stor_probe2+0x2f2/0x410 drivers/usb/storage/usb.c:1056
    [<ffffffff832c5ff7>] sddr09_probe+0xb7/0x110 drivers/usb/storage/sddr09.c:1772
    [<ffffffff831c2549>] usb_probe_interface+0x179/0x3c0 drivers/usb/core/driver.c:396
    [<ffffffff82b40b0d>] call_driver_probe drivers/base/dd.c:552 [inline]
    [<ffffffff82b40b0d>] really_probe+0x12d/0x430 drivers/base/dd.c:631
    [<ffffffff82b40ecf>] __driver_probe_device+0xbf/0x140 drivers/base/dd.c:768
    [<ffffffff82b40f7a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:798
    [<ffffffff82b4116b>] __device_attach_driver+0xfb/0x150 drivers/base/dd.c:926
    [<ffffffff82b3e0f1>] bus_for_each_drv+0xc1/0x110 drivers/base/bus.c:457
    [<ffffffff82b41692>] __device_attach+0x102/0x2a0 drivers/base/dd.c:998
    [<ffffffff82b3f79a>] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532
    [<ffffffff82b3bdf1>] device_add+0x991/0xc80 drivers/base/core.c:3589



---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@...glegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ