bisecting cause commit starting from 6f20c8adb1813467ea52c1296d52c4e95978cb2f building syzkaller on bc48c9ab65ed47d707bedef64ca52e1a5c383250 testing commit 6f20c8adb1813467ea52c1296d52c4e95978cb2f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: d3ae90ba27f33b965b7dca43222d7a7393e1e3bf9e05f38bad94df5c19fb0737 all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.13 testing commit 62fb9874f5da54fdb243003b386128037319b219 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 909f5b513362d755e99068620c19525cb2afd91ca8725228219fd46574a48866 all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.12 testing commit 9f4ad9e425a1d3b6a34617b8ea226d56a119a717 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: bb4e26dd8f4a005b0fd76547575ef29621d4d502b5251ddaf0a5696974104629 all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.11 testing commit f40ddce88593482919761f74910f42f4b84c004b compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 3222e6ed80513dd888ba5df1ed0bb0fed90b38311471a07f8ebfef14f678fd42 all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.10 testing commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 35c88fb67e0626f0232c5254d6e9f188ff33bdc5ecf75a2e20b39b0354577e82 all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 4753fc6113ccf19b73886623e431f1d42203e5df7900561c23ce4babeaf8f756 all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c compiler: gcc (GCC) 8.4.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 64bef9c619e4f9660afe7c971d6b25d7fe2654ae1e3be1137534ef774e1b1619 all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 compiler: gcc version 8.4.1 20210217 (GCC), GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: f76fe31c01316385978519b5b4e89add706a0c3d5fe63afc28097ce825bd70af all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.6 testing commit 7111951b8d4973bda27ff663f2cf18b663d15b48 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: ce1c40f29ea7dac1ab1efcb8a4c28e91d707e6db2dd3c7ba2f4d3ff05339b929 all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 52e3d19b3dd1254ec0fc70d5e850d8b373790b6a1ce2b4832bb7a2a2d3945561 all runs: crashed: KASAN: use-after-free Write in sctp_auth_shkey_hold testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: aaf25273084462a2ad615141adb1da70de0e843313526173854dc50400e6d06c all runs: crashed: KASAN: use-after-free Read in sctp_packet_append_chunk testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 6a118b86ece6a00ec309dfe958551a7e37b62c5a38c74bfffbdf71d5ff2118cf all runs: OK # git bisect start 219d54332a09e8d8741c1e1982f5eae56099de85 4d856f72c10ecb060868ed10ff1b1453943fc6c8 Bisecting: 7882 revisions left to test after this (roughly 13 steps) [a9f8b38a071b468276a243ea3ea5a0636e848cf2] Merge tag 'for-linus-5.4-1' of git://github.com/cminyard/linux-ipmi testing commit a9f8b38a071b468276a243ea3ea5a0636e848cf2 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: a8b09745890ddadb1e696e98ce86db8cb71ae7781fc60aeefb063885a9d17401 all runs: crashed: KASAN: use-after-free Read in sctp_packet_append_chunk # git bisect bad a9f8b38a071b468276a243ea3ea5a0636e848cf2 Bisecting: 3920 revisions left to test after this (roughly 12 steps) [fe38bd6862074c0a2b9be7f31f043aaa70b2af5f] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm testing commit fe38bd6862074c0a2b9be7f31f043aaa70b2af5f compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 21ce64d313b2d9fd75229dad5d01a5ebfa5da3ffd20e29a321c7587361d37d75 all runs: OK # git bisect good fe38bd6862074c0a2b9be7f31f043aaa70b2af5f Bisecting: 1962 revisions left to test after this (roughly 11 steps) [069841ef8293697e951c34f9a45601b77fb541d7] Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue testing commit 069841ef8293697e951c34f9a45601b77fb541d7 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 9e6ff30f4f786ae1eb56cc1ec20720ec7a4a7b9c1f0f2492e137268213ca9385 all runs: crashed: KASAN: use-after-free Read in sctp_packet_append_chunk # git bisect bad 069841ef8293697e951c34f9a45601b77fb541d7 Bisecting: 978 revisions left to test after this (roughly 10 steps) [f33bf6b00f20c9d26c42dfdaf8b83c2b0c1e6f71] net: stmmac: dwmac-meson: use devm_platform_ioremap_resource() to simplify code testing commit f33bf6b00f20c9d26c42dfdaf8b83c2b0c1e6f71 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 45628bf861be021bed236de048c3bd549ddaf238d5493d5b479f642770b7b8bf all runs: crashed: KASAN: use-after-free Read in sctp_packet_append_chunk # git bisect bad f33bf6b00f20c9d26c42dfdaf8b83c2b0c1e6f71 Bisecting: 489 revisions left to test after this (roughly 9 steps) [16e9b481e988b1f7e6df2243bb510e1c9b581272] nfp: no need to check return value of debugfs_create functions testing commit 16e9b481e988b1f7e6df2243bb510e1c9b581272 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 9a4840389b4f4dd5e067b56c1a73b3053def1d0bbe222118768048b176a5cefe all runs: OK # git bisect good 16e9b481e988b1f7e6df2243bb510e1c9b581272 Bisecting: 244 revisions left to test after this (roughly 8 steps) [a4d2113e46c1d2ded1bfed9a19fe17b5ab2d584c] ipvlan: set hw_enc_features like macvlan testing commit a4d2113e46c1d2ded1bfed9a19fe17b5ab2d584c compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 49e84a9e782660a69f961e60c31e1ee06b87f6464d0f6d26e233dd2091c3c15e all runs: OK # git bisect good a4d2113e46c1d2ded1bfed9a19fe17b5ab2d584c Bisecting: 113 revisions left to test after this (roughly 7 steps) [932630fa902878f4c8c50d0b1260eeb9de16b0a4] Merge tag 'wireless-drivers-next-for-davem-2019-08-19' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next testing commit 932630fa902878f4c8c50d0b1260eeb9de16b0a4 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 0ff819e67dbfd0cc2ed4faeac3c108f0f8280e2fcde5444ad4236c0b0a6ae3e5 all runs: crashed: KASAN: use-after-free Read in sctp_packet_append_chunk # git bisect bad 932630fa902878f4c8c50d0b1260eeb9de16b0a4 Bisecting: 65 revisions left to test after this (roughly 6 steps) [bb2ded26028be00204dbe2153f98fbd1902a2187] sctp: not set peer.asconf_capable in sctp_association_init testing commit bb2ded26028be00204dbe2153f98fbd1902a2187 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 6125f8f0d870be9a21b745b876772bfcea6fe8500402f37e03f002e83b30b04d all runs: OK # git bisect good bb2ded26028be00204dbe2153f98fbd1902a2187 Bisecting: 32 revisions left to test after this (roughly 5 steps) [ffa4d78cbc2644b4867b8129b3fbb5ddcdfcdba2] mwifiex: pcie: Use dev_get_drvdata testing commit ffa4d78cbc2644b4867b8129b3fbb5ddcdfcdba2 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 51a082a285c9a233ceef3ebf23dc21817b442678af762a646ebd86263b0d549b all runs: boot failed: general protection fault in dma_direct_max_mapping_size # git bisect skip ffa4d78cbc2644b4867b8129b3fbb5ddcdfcdba2 Bisecting: 32 revisions left to test after this (roughly 5 steps) [2ec4ad49b98e4a14147d04f914717135eca7c8b1] libertas_tf: Use correct channel range in lbtf_geo_init testing commit 2ec4ad49b98e4a14147d04f914717135eca7c8b1 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 51a082a285c9a233ceef3ebf23dc21817b442678af762a646ebd86263b0d549b all runs: boot failed: general protection fault in dma_direct_max_mapping_size # git bisect skip 2ec4ad49b98e4a14147d04f914717135eca7c8b1 Bisecting: 32 revisions left to test after this (roughly 5 steps) [c032461936de82a3f4108cacc7c3d1b204c42eef] wl3501_cs: remove redundant variable rc testing commit c032461936de82a3f4108cacc7c3d1b204c42eef compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 51a082a285c9a233ceef3ebf23dc21817b442678af762a646ebd86263b0d549b all runs: boot failed: general protection fault in dma_direct_max_mapping_size # git bisect skip c032461936de82a3f4108cacc7c3d1b204c42eef Bisecting: 32 revisions left to test after this (roughly 5 steps) [dfc7a8f7c857369c3cee4aa4c12d6c8da7aa1597] rsi: fix for sdio reset card issue testing commit dfc7a8f7c857369c3cee4aa4c12d6c8da7aa1597 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 51a082a285c9a233ceef3ebf23dc21817b442678af762a646ebd86263b0d549b all runs: boot failed: general protection fault in dma_direct_max_mapping_size # git bisect skip dfc7a8f7c857369c3cee4aa4c12d6c8da7aa1597 Bisecting: 32 revisions left to test after this (roughly 5 steps) [5483ecefe9602502441b0b76968f9c4f888ad242] Merge branch 'sctp-support-per-endpoint-auth-and-asconf-flags' testing commit 5483ecefe9602502441b0b76968f9c4f888ad242 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 0ff819e67dbfd0cc2ed4faeac3c108f0f8280e2fcde5444ad4236c0b0a6ae3e5 all runs: crashed: KASAN: use-after-free Read in sctp_packet_append_chunk # git bisect bad 5483ecefe9602502441b0b76968f9c4f888ad242 Bisecting: 2 revisions left to test after this (roughly 2 steps) [03f961270f4256fe9f47b94aea889bd26877216b] sctp: add sctp_auth_init and sctp_auth_free testing commit 03f961270f4256fe9f47b94aea889bd26877216b compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 88bdf1ac14fccc7b11f9d17ebca2afaafeb39f643289d0dceaf34006e864b913 all runs: OK # git bisect good 03f961270f4256fe9f47b94aea889bd26877216b Bisecting: 0 revisions left to test after this (roughly 1 step) [2f7576347cf3dd993f1ffe5e6018b4b764319c52] sctp: remove net sctp.x_enable working as a global switch testing commit 2f7576347cf3dd993f1ffe5e6018b4b764319c52 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 0ff819e67dbfd0cc2ed4faeac3c108f0f8280e2fcde5444ad4236c0b0a6ae3e5 all runs: crashed: KASAN: use-after-free Read in sctp_packet_append_chunk # git bisect bad 2f7576347cf3dd993f1ffe5e6018b4b764319c52 Bisecting: 0 revisions left to test after this (roughly 0 steps) [56dd525abd56f7acd7b44a52935726e3ada4916c] sctp: add SCTP_AUTH_SUPPORTED sockopt testing commit 56dd525abd56f7acd7b44a52935726e3ada4916c compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 4e11e3521c90d5830fc1dcdd311f40f38959a39b7788fe62319bcf5c033e134b all runs: crashed: KASAN: use-after-free Read in sctp_packet_append_chunk # git bisect bad 56dd525abd56f7acd7b44a52935726e3ada4916c 56dd525abd56f7acd7b44a52935726e3ada4916c is the first bad commit commit 56dd525abd56f7acd7b44a52935726e3ada4916c Author: Xin Long Date: Mon Aug 19 22:02:49 2019 +0800 sctp: add SCTP_AUTH_SUPPORTED sockopt SCTP_AUTH_SUPPORTED sockopt is used to set enpoint's auth flag. With this feature, each endpoint will have its own flag for its future asoc's auth_capable, instead of netns auth flag. Note that when both ep's auth_enable is enabled, endpoint auth related data should be initialized. If asconf_enable is also set, SCTP_CID_ASCONF/SCTP_CID_ASCONF_ACK should be added into auth_chunk_list. Signed-off-by: Xin Long Signed-off-by: David S. Miller include/uapi/linux/sctp.h | 1 + net/sctp/socket.c | 86 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) culprit signature: 4e11e3521c90d5830fc1dcdd311f40f38959a39b7788fe62319bcf5c033e134b parent signature: 88bdf1ac14fccc7b11f9d17ebca2afaafeb39f643289d0dceaf34006e864b913 revisions tested: 28, total time: 6h11m1.361979008s (build: 3h32m27.742348965s, test: 2h34m33.980698617s) first bad commit: 56dd525abd56f7acd7b44a52935726e3ada4916c sctp: add SCTP_AUTH_SUPPORTED sockopt recipients (to): ["davem@davemloft.net" "davem@davemloft.net" "linux-sctp@vger.kernel.org" "lucien.xin@gmail.com" "marcelo.leitner@gmail.com" "netdev@vger.kernel.org" "nhorman@tuxdriver.com" "vyasevich@gmail.com"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: KASAN: use-after-free Read in sctp_packet_append_chunk ================================================================== BUG: KASAN: use-after-free in sctp_packet_bundle_auth net/sctp/output.c:238 [inline] BUG: KASAN: use-after-free in sctp_packet_append_chunk+0xe8a/0xfe0 net/sctp/output.c:375 Read of size 2 at addr ffff8880a481cc7c by task syz-executor.1/10581 CPU: 0 PID: 10581 Comm: syz-executor.1 Not tainted 5.3.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+0x86/0xca lib/dump_stack.c:113 print_address_description.cold.4+0x9/0x35a mm/kasan/report.c:351 __kasan_report.cold.5+0x1b/0x3e mm/kasan/report.c:482 kasan_report+0x12/0x17 mm/kasan/common.c:612 __asan_report_load2_noabort+0x14/0x20 mm/kasan/generic_report.c:130 sctp_packet_bundle_auth net/sctp/output.c:238 [inline] sctp_packet_append_chunk+0xe8a/0xfe0 net/sctp/output.c:375 sctp_packet_transmit_chunk+0x2d/0x20a net/sctp/output.c:187 sctp_outq_flush_data net/sctp/outqueue.c:1091 [inline] sctp_outq_flush+0xb8f/0x25c0 net/sctp/outqueue.c:1190 sctp_outq_uncork+0x49/0x60 net/sctp/outqueue.c:757 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1781 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1184 [inline] sctp_do_sm+0x358/0x50c0 net/sctp/sm_sideeffect.c:1155 sctp_primitive_SEND+0x7c/0xc0 net/sctp/primitive.c:163 sctp_sendmsg_to_asoc+0x1274/0x1f10 net/sctp/socket.c:1858 sctp_sendmsg+0xb42/0x1b60 net/sctp/socket.c:2016 inet_sendmsg+0x8f/0xb0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:657 __sys_sendto+0x1f2/0x2e0 net/socket.c:1952 __do_sys_sendto net/socket.c:1964 [inline] __se_sys_sendto net/socket.c:1960 [inline] __x64_sys_sendto+0xdc/0x1a0 net/socket.c:1960 do_syscall_64+0xa3/0x4a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc04afef188 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 000000000000ffa0 RSI: 0000000020000140 RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffd4565802f R14: 00007fc04afef300 R15: 0000000000022000 Allocated by task 10581: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc.part.0+0x44/0xc0 mm/kasan/common.c:487 __kasan_kmalloc.constprop.1+0xb1/0xc0 mm/kasan/common.c:468 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:501 kmem_cache_alloc_trace+0x135/0x340 mm/slub.c:2797 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:748 [inline] sctp_auth_shkey_create+0x60/0x170 net/sctp/auth.c:84 sctp_auth_asoc_copy_shkeys+0x1bf/0x280 net/sctp/auth.c:363 sctp_association_init net/sctp/associola.c:251 [inline] sctp_association_new+0x154a/0x1e50 net/sctp/associola.c:292 sctp_connect_new_asoc+0x102/0x4a0 net/sctp/socket.c:1069 __sctp_connect+0x36a/0xb60 net/sctp/socket.c:1175 sctp_connect net/sctp/socket.c:4809 [inline] sctp_inet_connect+0x112/0x1a0 net/sctp/socket.c:4824 __sys_connect+0x20d/0x2d0 net/socket.c:1828 __do_sys_connect net/socket.c:1839 [inline] __se_sys_connect net/socket.c:1836 [inline] __x64_sys_connect+0x6e/0xb0 net/socket.c:1836 do_syscall_64+0xa3/0x4a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 10581: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_slab_free+0x145/0x210 mm/kasan/common.c:449 kasan_slab_free+0xe/0x10 mm/kasan/common.c:457 slab_free_hook mm/slub.c:1423 [inline] slab_free_freelist_hook mm/slub.c:1474 [inline] slab_free mm/slub.c:3016 [inline] kfree+0xf7/0x380 mm/slub.c:3957 sctp_auth_shkey_destroy net/sctp/auth.c:101 [inline] sctp_auth_shkey_release+0x85/0xb0 net/sctp/auth.c:107 sctp_auth_set_key+0x3dd/0x570 net/sctp/auth.c:867 sctp_setsockopt_auth_key net/sctp/socket.c:3710 [inline] sctp_setsockopt net/sctp/socket.c:4703 [inline] sctp_setsockopt+0x29c4/0x5c90 net/sctp/socket.c:4582 sock_common_setsockopt+0x73/0xf0 net/core/sock.c:3139 __sys_setsockopt+0x213/0x440 net/socket.c:2084 __do_sys_setsockopt net/socket.c:2100 [inline] __se_sys_setsockopt net/socket.c:2097 [inline] __x64_sys_setsockopt+0xb9/0x150 net/socket.c:2097 do_syscall_64+0xa3/0x4a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a481cc60 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 28 bytes inside of 32-byte region [ffff8880a481cc60, ffff8880a481cc80) The buggy address belongs to the page: page:ffffea0002920700 refcount:1 mapcount:0 mapping:ffff8880b5c03400 index:0x0 flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea0002d5e540 0000000700000007 ffff8880b5c03400 raw: 0000000000000000 0000000080550055 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page allocated via order 0, migratetype Unmovable, gfp_mask 0x12c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2147 [inline] prep_new_page+0x183/0x220 mm/page_alloc.c:2153 get_page_from_freelist.part.23+0x1378/0x43d0 mm/page_alloc.c:3691 get_page_from_freelist mm/page_alloc.c:4722 [inline] __alloc_pages_nodemask+0x324/0x26a0 mm/page_alloc.c:4725 alloc_pages_current+0xd6/0x1b0 mm/mempolicy.c:2153 alloc_pages include/linux/gfp.h:509 [inline] alloc_slab_page mm/slub.c:1515 [inline] allocate_slab mm/slub.c:1660 [inline] new_slab+0x7da/0x16a0 mm/slub.c:1727 new_slab_objects mm/slub.c:2476 [inline] ___slab_alloc+0x57b/0x8d0 mm/slub.c:2627 __slab_alloc.isra.23+0x4f/0x80 mm/slub.c:2667 slab_alloc_node mm/slub.c:2730 [inline] slab_alloc mm/slub.c:2778 [inline] __kmalloc+0x33b/0x390 mm/slub.c:3807 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:748 [inline] tomoyo_encode2.part.1+0x97/0x360 security/tomoyo/realpath.c:44 tomoyo_encode2 security/tomoyo/realpath.c:30 [inline] tomoyo_encode+0x1c/0x30 security/tomoyo/realpath.c:79 tomoyo_realpath_from_path+0x172/0x810 security/tomoyo/realpath.c:316 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x203/0x380 security/tomoyo/file.c:822 tomoyo_inode_getattr+0x13/0x20 security/tomoyo/tomoyo.c:129 security_inode_getattr+0xb0/0x100 security/security.c:1182 vfs_getattr+0x1c/0x40 fs/stat.c:115 vfs_statx_fd+0x45/0x90 fs/stat.c:145 Memory state around the buggy address: ffff8880a481cb00: fc fc fb fb fb fb fc fc fb fb fb fb fc fc fb fb ffff8880a481cb80: fb fb fc fc fb fb fb fb fc fc fb fb fb fb fc fc >ffff8880a481cc00: fb fb fb fb fc fc fb fb fb fb fc fc fb fb fb fb ^ ffff8880a481cc80: fc fc fb fb fb fb fc fc fb fb fb fb fc fc fb fb ffff8880a481cd00: fb fb fc fc fb fb fb fb fc fc fb fb fb fb fc fc ==================================================================