bisecting cause commit starting from f5b6eb1e018203913dfefcf6fa988649ad11ad6e building syzkaller on 500c23397f34dde583da6d31f9d9fd21cae289f8 testing commit f5b6eb1e018203913dfefcf6fa988649ad11ad6e with gcc (GCC) 10.2.1 20210217 kernel signature: 8b28291962862615e422b43b8c0d35884f2b47f9838abf68bcf1d121bcd8449b run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #5: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #6: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #7: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #8: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #9: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #10: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #11: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #12: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK testing release v5.12 testing commit 9f4ad9e425a1d3b6a34617b8ea226d56a119a717 with gcc (GCC) 10.2.1 20210217 kernel signature: 20a3195b0c2adea39c30d2e9f830a6fa425a34f031f28cd84a5fc4bf09ce8f4d run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #5: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #6: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #7: OK run #8: OK run #9: OK testing release v5.11 testing commit f40ddce88593482919761f74910f42f4b84c004b with gcc (GCC) 10.2.1 20210217 kernel signature: 22b26ae1e3be417e2ad324e47433a262e845b6471dfc09f4fa2f647b3330df8e run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #5: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #6: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #7: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #8: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #9: OK testing release v5.10 testing commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 with gcc (GCC) 10.2.1 20210217 kernel signature: 8f55ba93fd53951cac9b68b979c728becbef461543abacbe99727324ff41baf6 run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: kernel panic: panic_on_warn set run #5: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #6: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #7: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #8: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #9: OK testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b with gcc (GCC) 10.2.1 20210217 kernel signature: f654d07eeb7c456b884d4afbd5bc4d393d1b1677ed42327eee0eaef482a1d4de run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #5: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #6: OK run #7: OK run #8: OK run #9: OK testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c with gcc (GCC) 8.4.1 20210217 kernel signature: 1063ebaf54671db7804acf12269942e9a5933d00bfb78bb5cf898a218f3c1d07 run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK reproducer seems to be flaky testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 with gcc (GCC) 8.4.1 20210217 kernel signature: 3856a09b3d94850025e3ae49dd0f33b972955333e09df445983a6a278d85997d all runs: OK # git bisect start bcf876870b95592b52519ed4aafcf9d95999bc9c 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 Bisecting: 8752 revisions left to test after this (roughly 13 steps) [694b5a5d313f3997764b67d52bab66ec7e59e714] Merge tag 'arm-soc-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit 694b5a5d313f3997764b67d52bab66ec7e59e714 with gcc (GCC) 8.4.1 20210217 kernel signature: e3c9d0a702e47eebeb4dd9082e44a8dd2addfedb876b350e00a1d2ca5c4461eb all runs: OK # git bisect good 694b5a5d313f3997764b67d52bab66ec7e59e714 Bisecting: 4379 revisions left to test after this (roughly 12 steps) [595a56ac1b0d5f0a16a89589ef55ffd35c1967a2] Merge tag 'linux-kselftest-kunit-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest testing commit 595a56ac1b0d5f0a16a89589ef55ffd35c1967a2 with gcc (GCC) 8.4.1 20210217 kernel signature: 8c2554826eeaae5b5dae1a895e2b7d52cbee4c606fd9d3c23aca19cbe39f86b0 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 595a56ac1b0d5f0a16a89589ef55ffd35c1967a2 Bisecting: 4379 revisions left to test after this (roughly 12 steps) [5b83c254571b26e6b6110019929dc9729e5c59d1] Merge tag 'amd-drm-fixes-5.8-2020-06-24' of git://people.freedesktop.org/~agd5f/linux into drm-fixes testing commit 5b83c254571b26e6b6110019929dc9729e5c59d1 with gcc (GCC) 8.4.1 20210217 kernel signature: 06b9da399bd4ff8b13e1bc7c816d3d2892fb9d358c83a400da410fc1885470ff all runs: basic kernel testing failed: KASAN: use-after-free Write in afs_wake_up_async_call # git bisect skip 5b83c254571b26e6b6110019929dc9729e5c59d1 Bisecting: 4379 revisions left to test after this (roughly 12 steps) [36d48981d6adf2d3a1d9713df7c145b6f4b4ef22] arm64: dts: juno: Fix GPU interrupt order testing commit 36d48981d6adf2d3a1d9713df7c145b6f4b4ef22 with gcc (GCC) 8.4.1 20210217 kernel signature: aca885cd88f070cdfb3300611dd792bec6f4d51bda3b54786080a2276d14d094 all runs: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(8,1) # git bisect skip 36d48981d6adf2d3a1d9713df7c145b6f4b4ef22 Bisecting: 4379 revisions left to test after this (roughly 12 steps) [817d914d17651c188f28a284261ff6091d80ad2c] Merge tag 'selinux-pr-20200621' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux testing commit 817d914d17651c188f28a284261ff6091d80ad2c with gcc (GCC) 8.4.1 20210217 kernel signature: 8a452ea7b01114a47b491c5b3f6ba115fd2064a433327e9440112a3453e1ce60 all runs: basic kernel testing failed: KASAN: use-after-free Write in afs_wake_up_async_call # git bisect skip 817d914d17651c188f28a284261ff6091d80ad2c Bisecting: 4379 revisions left to test after this (roughly 12 steps) [8a45fe7053a2c33b786706bdcd77d7ccf1531ef7] samples: uhid: fix warnings in uhid-example testing commit 8a45fe7053a2c33b786706bdcd77d7ccf1531ef7 with gcc (GCC) 8.4.1 20210217 kernel signature: b5034ca36a2ddb07aaffdabbbe5ab80a7bd574fc7322a8275cf53f4c0ec4bc0d run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #5: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #6: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #7: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #8: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #9: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #10: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #11: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #12: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #13: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad 8a45fe7053a2c33b786706bdcd77d7ccf1531ef7 Bisecting: 9 revisions left to test after this (roughly 3 steps) [ea21e9041404c4cafd63de4762287fb1b7ba357f] kbuild: remove '/' target testing commit ea21e9041404c4cafd63de4762287fb1b7ba357f with gcc (GCC) 8.4.1 20210217 kernel signature: 7295fae4ff5b81dedec9a90d06e3de8289b69745898988b4800ef0cea9871f4d run #0: crashed: KASAN: slab-out-of-bounds Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #5: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #6: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #7: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #8: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #9: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #10: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #11: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad ea21e9041404c4cafd63de4762287fb1b7ba357f Bisecting: 4 revisions left to test after this (roughly 2 steps) [e33ae3ed331a5cfa24b2abe483f7f4b27bb99c06] kbuild: use $(CC_VERSION_TEXT) to evaluate CC_IS_GCC and CC_IS_CLANG testing commit e33ae3ed331a5cfa24b2abe483f7f4b27bb99c06 with gcc (GCC) 8.4.1 20210217 kernel signature: ce0012574ce121dc750842bf15c1aa5ddbb9c917f2e33c74ac71c0ce81990c34 run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #5: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #6: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #7: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #8: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #9: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #10: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #11: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #12: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #13: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad e33ae3ed331a5cfa24b2abe483f7f4b27bb99c06 Bisecting: 2 revisions left to test after this (roughly 1 step) [6632fa8fcabacd75329bd2ea78cba5c43754639a] hexagon: suppress error message for 'make clean' testing commit 6632fa8fcabacd75329bd2ea78cba5c43754639a with gcc (GCC) 8.4.1 20210217 kernel signature: ce0012574ce121dc750842bf15c1aa5ddbb9c917f2e33c74ac71c0ce81990c34 run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #5: crashed: KASAN: slab-out-of-bounds Read in ath9k_hif_usb_rx_cb run #6: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #7: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #8: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #9: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad 6632fa8fcabacd75329bd2ea78cba5c43754639a Bisecting: 0 revisions left to test after this (roughly 0 steps) [7e49afc03212010d0ee27532a75cfeb0125bd868] um: do not evaluate compiler's library path when cleaning testing commit 7e49afc03212010d0ee27532a75cfeb0125bd868 with gcc (GCC) 8.4.1 20210217 kernel signature: ce0012574ce121dc750842bf15c1aa5ddbb9c917f2e33c74ac71c0ce81990c34 run #0: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #1: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #2: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #3: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #4: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #5: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #6: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #7: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #8: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #9: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #10: crashed: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad 7e49afc03212010d0ee27532a75cfeb0125bd868 7e49afc03212010d0ee27532a75cfeb0125bd868 is the first bad commit commit 7e49afc03212010d0ee27532a75cfeb0125bd868 Author: Masahiro Yamada Date: Sat Apr 18 03:04:55 2020 +0900 um: do not evaluate compiler's library path when cleaning Since commit a83e4ca26af8 ("kbuild: remove cc-option switch from -Wframe-larger-than="), 'make ARCH=um clean' emits an error message as follows: $ make ARCH=um clean gcc: error: missing argument to '-Wframe-larger-than=' We do not care compiler flags when cleaning. Use the '=' operator for lazy expansion because we do not use LDFLAGS_pcap.o or LDFLAGS_vde.o when cleaning. While I was here, I removed the redundant -r option because it already exists in the recipe. Fixes: a83e4ca26af8 ("kbuild: remove cc-option switch from -Wframe-larger-than=") Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor [build] arch/um/drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) parent commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8 wasn't tested testing commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8 with gcc (GCC) 8.4.1 20210217 kernel signature: ce0012574ce121dc750842bf15c1aa5ddbb9c917f2e33c74ac71c0ce81990c34 culprit signature: ce0012574ce121dc750842bf15c1aa5ddbb9c917f2e33c74ac71c0ce81990c34 parent signature: ce0012574ce121dc750842bf15c1aa5ddbb9c917f2e33c74ac71c0ce81990c34 Reproducer flagged being flaky revisions tested: 17, total time: 5h3m8.81285353s (build: 2h9m3.826313282s, test: 2h51m6.014506466s) first bad commit: 7e49afc03212010d0ee27532a75cfeb0125bd868 um: do not evaluate compiler's library path when cleaning recipients (to): ["linux-kernel@vger.kernel.org" "masahiroy@kernel.org" "natechancellor@gmail.com"] recipients (cc): ["anton.ivanov@cambridgegreys.com" "jdike@addtoit.com" "linux-um@lists.infradead.org" "richard@nod.at"] crash: KASAN: use-after-free Read in ath9k_hif_usb_rx_cb ================================================================== BUG: KASAN: use-after-free in ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:622 [inline] BUG: KASAN: use-after-free in ath9k_hif_usb_rx_cb+0xcfe/0x11b0 drivers/net/wireless/ath/ath9k/hif_usb.c:666 Read of size 4 at addr ffff888095b140d0 by task systemd-journal/5502 CPU: 0 PID: 5502 Comm: systemd-journal Not tainted 5.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x96/0xe0 lib/dump_stack.c:118 print_address_description.constprop.4.cold.6+0x9/0x373 mm/kasan/report.c:382 __kasan_report.cold.7+0x92/0xaf mm/kasan/report.c:511 kasan_report+0x37/0x50 mm/kasan/common.c:625 ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:622 [inline] ath9k_hif_usb_rx_cb+0xcfe/0x11b0 drivers/net/wireless/ath/ath9k/hif_usb.c:666 __usb_hcd_giveback_urb+0x1b6/0x3c0 drivers/usb/core/hcd.c:1648 freedev drivers/block/aoe/aoedev.c:285 [inline] dummy_timer+0xfc6/0x2d0d drivers/block/aoe/aoedev.c:366 call_timer_fn+0x16f/0x5b0 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] run_timer_softirq+0x687/0x11a0 kernel/time/timer.c:1787 __do_softirq+0x24a/0xaec kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x167/0x190 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x1d0/0x690 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:nd_jump_root+0x211/0x490 fs/namei.c:879 Code: 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 9f 01 00 00 81 4b 38 00 10 00 00 31 c0 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f <5d> c3 4c 8d 63 08 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea RSP: 0018:ffffc9000162fb20 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffffc9000162fc40 RCX: ffff8880ab2cc730 RDX: 1ffff920002c5f8f RSI: 0000000000000000 RDI: ffff8880ab2cc738 RBP: ffffc9000162fb20 R08: fffffbfff1919e41 R09: 0000000000000000 R10: ffffc9000162fc78 R11: 0000000000000000 R12: 0000000000000040 R13: 0000000000000040 R14: 000000000000329a R15: ffffffff8a213680 path_init+0xbb3/0x1440 fs/namei.c:2229 path_parentat+0x14/0x100 fs/namei.c:2370 filename_parentat.part.20+0x14b/0x400 fs/namei.c:2393 filename_parentat fs/namei.c:3425 [inline] filename_create+0xa3/0x3f0 fs/namei.c:3427 user_path_create fs/namei.c:3502 [inline] do_mkdirat+0x97/0x200 fs/namei.c:3640 do_syscall_64+0x98/0x560 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x7f22054b4687 Code: 00 b8 ff ff ff ff c3 0f 1f 40 00 48 8b 05 09 d8 2b 00 64 c7 00 5f 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 b8 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e1 d7 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007ffe283e9e68 EFLAGS: 00000293 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007ffe283ecd80 RCX: 00007f22054b4687 RDX: 00007f2205f25a00 RSI: 00000000000001ed RDI: 000055faded068a0 RBP: 00007ffe283e9ea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000069 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe283ecd80 R15: 00007ffe283ea390 Allocated by task 5502: save_stack+0x19/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.15+0xc1/0xd0 mm/kasan/common.c:468 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc_node mm/slub.c:2797 [inline] slab_alloc mm/slub.c:2805 [inline] kmem_cache_alloc+0xaa/0x2a0 mm/slub.c:2810 getname_flags fs/namei.c:138 [inline] getname_flags+0xb5/0x500 fs/namei.c:128 getname fs/namei.c:209 [inline] user_path_create fs/namei.c:3502 [inline] do_mkdirat+0x85/0x200 fs/namei.c:3640 do_syscall_64+0x98/0x560 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 5502: save_stack+0x19/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0x124/0x170 mm/kasan/common.c:456 slab_free_hook mm/slub.c:1455 [inline] slab_free_freelist_hook+0x53/0x140 mm/slub.c:1488 slab_free mm/slub.c:3045 [inline] kmem_cache_free+0x8b/0x390 mm/slub.c:3061 filename_parentat.part.20+0x307/0x400 fs/namei.c:2403 filename_parentat fs/namei.c:3425 [inline] filename_create+0xa3/0x3f0 fs/namei.c:3427 user_path_create fs/namei.c:3502 [inline] do_mkdirat+0x97/0x200 fs/namei.c:3640 do_syscall_64+0x98/0x560 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff888095b13300 which belongs to the cache names_cache of size 4096 The buggy address is located 3536 bytes inside of 4096-byte region [ffff888095b13300, ffff888095b14300) The buggy address belongs to the page: page:ffffea000256c400 refcount:1 mapcount:0 mapping:00000000a2df25a8 index:0x0 head:ffffea000256c400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head) raw: 00fff00000010200 dead000000000100 dead000000000122 ffff88823b84a280 raw: 0000000000000000 0000000000070007 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) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2202 [inline] prep_new_page+0x12f/0x240 mm/page_alloc.c:2208 get_page_from_freelist+0x10f6/0x45d0 mm/page_alloc.c:3762 __alloc_pages_nodemask+0x294/0x820 mm/page_alloc.c:4812 alloc_pages include/linux/gfp.h:540 [inline] alloc_slab_page+0x334/0x520 mm/slub.c:1526 allocate_slab mm/slub.c:1671 [inline] new_slab+0x84/0x440 mm/slub.c:1737 new_slab_objects mm/slub.c:2486 [inline] ___slab_alloc+0x465/0x770 mm/slub.c:2647 __slab_alloc.isra.45+0x74/0xe0 mm/slub.c:2687 slab_alloc_node mm/slub.c:2761 [inline] slab_alloc mm/slub.c:2805 [inline] kmem_cache_alloc+0x21f/0x2a0 mm/slub.c:2810 getname_flags fs/namei.c:138 [inline] getname_flags+0xb5/0x500 fs/namei.c:128 getname fs/namei.c:209 [inline] user_path_create fs/namei.c:3502 [inline] do_mkdirat+0x85/0x200 fs/namei.c:3640 do_syscall_64+0x98/0x560 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1215 [inline] __free_pages_ok+0x5df/0xe50 mm/page_alloc.c:1472 kfree+0x311/0x3c0 mm/slub.c:4023 device_release+0x65/0x1c0 drivers/base/core.c:1375 kobject_cleanup lib/kobject.c:693 [inline] kobject_release lib/kobject.c:722 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x191/0x430 lib/kobject.c:739 ath9k_htc_probe_device+0x1aa/0x2380 drivers/net/wireless/ath/ath9k/htc_drv_init.c:972 ath9k_htc_hw_init+0x8/0x20 drivers/net/wireless/ath/ath9k/htc_hst.c:501 ath9k_hif_usb_firmware_cb+0x241/0x590 drivers/net/wireless/ath/ath9k/hif_usb.c:1187 request_firmware_work_func+0x121/0x23e drivers/base/firmware_loader/main.c:1005 process_one_work+0x904/0x1690 kernel/workqueue.c:2268 worker_thread+0x82/0xb50 kernel/workqueue.c:2414 kthread+0x340/0x410 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351 Memory state around the buggy address: ffff888095b13f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888095b14000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888095b14080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888095b14100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888095b14180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================