bisecting fixing commit since 7a7fd0de4a9804299793e564a555a49c1fc924cb building syzkaller on 92ead2966b78ac6b2d6a0a464cc15c6ee6f853c6 testing commit 7a7fd0de4a9804299793e564a555a49c1fc924cb with gcc (GCC) 10.2.1 20210217 kernel signature: 74bce822fd4794bfcdf5332ddb1ac763b48e7fc50c7ac65c757919a80859e464 run #0: crashed: BUG: corrupted list in em28xx_init_extension run #1: crashed: BUG: corrupted list in em28xx_close_extension run #2: crashed: BUG: corrupted list in em28xx_init_extension run #3: crashed: BUG: corrupted list in em28xx_init_extension run #4: crashed: KASAN: use-after-free Read in em28xx_init_extension run #5: crashed: BUG: corrupted list in em28xx_init_extension run #6: crashed: BUG: corrupted list in em28xx_init_extension run #7: crashed: BUG: corrupted list in em28xx_init_extension run #8: crashed: KASAN: use-after-free Read in em28xx_close_extension run #9: crashed: BUG: corrupted list in em28xx_close_extension run #10: crashed: BUG: corrupted list in em28xx_close_extension run #11: crashed: BUG: corrupted list in em28xx_close_extension run #12: crashed: KASAN: use-after-free Read in em28xx_close_extension run #13: crashed: KASAN: use-after-free Read in em28xx_close_extension run #14: crashed: KASAN: use-after-free Read in em28xx_close_extension run #15: crashed: KASAN: use-after-free Read in em28xx_close_extension run #16: crashed: KASAN: slab-out-of-bounds Read in em28xx_init_extension run #17: crashed: KASAN: use-after-free Read in em28xx_init_extension run #18: crashed: BUG: corrupted list in em28xx_init_extension run #19: crashed: BUG: corrupted list in em28xx_close_extension testing current HEAD c2131f7e73c9e9365613e323d65c7b9e5b910f56 testing commit c2131f7e73c9e9365613e323d65c7b9e5b910f56 with gcc (GCC) 10.2.1 20210217 kernel signature: d757d4f0c8280021ca5f362217fbb164ba6e76d20a3ee200a1efa650ae3094e8 run #0: crashed: KASAN: use-after-free Read in em28xx_init_extension run #1: crashed: KASAN: use-after-free Read in em28xx_init_extension run #2: crashed: BUG: corrupted list in em28xx_init_extension run #3: crashed: KASAN: use-after-free Read in em28xx_close_extension run #4: crashed: BUG: corrupted list in em28xx_close_extension run #5: crashed: KASAN: use-after-free Read in em28xx_init_extension run #6: crashed: KASAN: use-after-free Read in em28xx_close_extension run #7: crashed: KASAN: use-after-free Read in em28xx_init_extension run #8: crashed: BUG: corrupted list in em28xx_init_extension run #9: crashed: KASAN: slab-out-of-bounds Read in em28xx_init_extension revisions tested: 2, total time: 22m54.26206472s (build: 14m44.862568071s, test: 7m16.845478428s) the crash still happens on HEAD commit msg: Merge tag 'gfs2-v5.13-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 crash: KASAN: slab-out-of-bounds Read in em28xx_init_extension em28xx 4-1:0.108: unknown em28xx chip ID (0) em28xx 4-1:0.108: Config register raw data: 0xfffffffb em28xx 4-1:0.108: AC97 chip type couldn't be determined em28xx 4-1:0.108: No AC97 audio processor ================================================================== BUG: KASAN: slab-out-of-bounds in __list_add_valid+0x93/0xa0 lib/list_debug.c:26 Read of size 8 at addr ffff888032078250 by task kworker/1:5/10068 CPU: 1 PID: 10068 Comm: kworker/1:5 Not tainted 5.13.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x93/0xc2 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436 __list_add_valid+0x93/0xa0 lib/list_debug.c:26 __list_add include/linux/list.h:67 [inline] list_add_tail include/linux/list.h:100 [inline] em28xx_init_extension+0x40/0x1c0 drivers/media/usb/em28xx/em28xx-core.c:1123 em28xx_init_dev.constprop.0+0x981/0x1430 drivers/media/usb/em28xx/em28xx-cards.c:3630 em28xx_usb_probe.cold+0xaef/0x2290 drivers/media/usb/em28xx/em28xx-cards.c:3979 usb_probe_interface+0x274/0x6a0 drivers/usb/core/driver.c:396 really_probe+0x1fd/0xd10 drivers/base/dd.c:576 driver_probe_device+0x21a/0x3b0 drivers/base/dd.c:763 bus_for_each_drv+0x11e/0x1a0 drivers/base/bus.c:431 __device_attach+0x1db/0x410 drivers/base/dd.c:938 bus_probe_device+0x19d/0x250 drivers/base/bus.c:491 device_add+0x9f0/0x1d60 drivers/base/core.c:3324 usb_set_configuration+0x9fc/0x1750 drivers/usb/core/message.c:2164 usb_generic_driver_probe+0x74/0xa0 drivers/usb/core/generic.c:238 usb_probe_device+0x98/0x240 drivers/usb/core/driver.c:293 really_probe+0x1fd/0xd10 drivers/base/dd.c:576 driver_probe_device+0x21a/0x3b0 drivers/base/dd.c:763 bus_for_each_drv+0x11e/0x1a0 drivers/base/bus.c:431 __device_attach+0x1db/0x410 drivers/base/dd.c:938 bus_probe_device+0x19d/0x250 drivers/base/bus.c:491 device_add+0x9f0/0x1d60 drivers/base/core.c:3324 usb_new_device.cold+0x69a/0xee1 drivers/usb/core/hub.c:2556 hub_port_connect drivers/usb/core/hub.c:5276 [inline] hub_port_connect_change drivers/usb/core/hub.c:5416 [inline] port_event drivers/usb/core/hub.c:5562 [inline] hub_event+0x10a3/0x36d0 drivers/usb/core/hub.c:5644 process_one_work+0x84c/0x13b0 kernel/workqueue.c:2276 process_scheduled_works kernel/workqueue.c:2338 [inline] worker_thread+0x733/0xf80 kernel/workqueue.c:2424 kthread+0x36f/0x450 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Allocated by task 5: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:428 [inline] __kasan_slab_alloc+0x84/0xa0 mm/kasan/common.c:461 kasan_slab_alloc include/linux/kasan.h:236 [inline] slab_post_alloc_hook mm/slab.h:524 [inline] slab_alloc_node mm/slub.c:2913 [inline] kmem_cache_alloc_node+0x24f/0x3f0 mm/slub.c:2949 __alloc_skb+0x153/0x280 net/core/skbuff.c:413 alloc_skb include/linux/skbuff.h:1107 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:513 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:570 [inline] nsim_dev_trap_report_work+0x275/0xb50 drivers/net/netdevsim/dev.c:611 process_one_work+0x84c/0x13b0 kernel/workqueue.c:2276 worker_thread+0x598/0xf80 kernel/workqueue.c:2422 kthread+0x36f/0x450 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Freed by task 5: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:357 ____kasan_slab_free mm/kasan/common.c:360 [inline] ____kasan_slab_free mm/kasan/common.c:325 [inline] __kasan_slab_free+0xfb/0x130 mm/kasan/common.c:368 kasan_slab_free include/linux/kasan.h:212 [inline] slab_free_hook mm/slub.c:1582 [inline] slab_free_freelist_hook+0xc9/0x210 mm/slub.c:1607 slab_free mm/slub.c:3167 [inline] kmem_cache_free+0x8b/0x730 mm/slub.c:3183 nsim_dev_trap_report drivers/net/netdevsim/dev.c:586 [inline] nsim_dev_trap_report_work+0x807/0xb50 drivers/net/netdevsim/dev.c:611 process_one_work+0x84c/0x13b0 kernel/workqueue.c:2276 worker_thread+0x598/0xf80 kernel/workqueue.c:2422 kthread+0x36f/0x450 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 The buggy address belongs to the object at ffff888032078140 which belongs to the cache skbuff_head_cache of size 224 The buggy address is located 48 bytes to the right of 224-byte region [ffff888032078140, ffff888032078220) The buggy address belongs to the page: page:00000000aa8c9739 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x32078 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 dead000000000100 dead000000000122 ffff8880102eedc0 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888032078100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff888032078180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888032078200: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888032078280: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888032078300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================