aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2022-12-10 13:20:53 -0800
committerAlexei Starovoitov <ast@kernel.org>2022-12-10 13:36:22 -0800
commit99523094de48df65477cbbb9d8027f4bc4701794 (patch)
treede4c47b1ac47deceb055aef7fbab79f30dabebc0 /init
parentdocs/bpf: Add documentation for BPF_MAP_TYPE_SK_STORAGE (diff)
parentselftests/bpf: test case for relaxed prunning of active_lock.id (diff)
downloadlinux-99523094de48df65477cbbb9d8027f4bc4701794.tar.gz
linux-99523094de48df65477cbbb9d8027f4bc4701794.zip
Merge branch 'stricter register ID checking in regsafe()'
Eduard Zingerman says: ==================== This patch-set consists of a series of bug fixes for register ID tracking in verifier.c:states_equal()/regsafe() functions: - for registers of type PTR_TO_MAP_{KEY,VALUE}, PTR_TO_PACKET[_META] the regsafe() should call check_ids() even if registers are byte-to-byte equal; - states_equal() must maintain idmap that covers all function frames in the state because functions like mark_ptr_or_null_regs() operate on all registers in the state; - regsafe() must compare spin lock ids for PTR_TO_MAP_VALUE registers. The last point covers issue reported by Kumar Kartikeya Dwivedi in [1], I borrowed the test commit from there. Note, that there is also an issue with register id tracking for scalars described here [2], it would be addressed separately. [1] https://lore.kernel.org/bpf/20221111202719.982118-1-memxor@gmail.com/ [2] https://lore.kernel.org/bpf/20221128163442.280187-2-eddyz87@gmail.com/ Eduard Zingerman (6): bpf: regsafe() must not skip check_ids() selftests/bpf: test cases for regsafe() bug skipping check_id() bpf: states_equal() must build idmap for all function frames selftests/bpf: verify states_equal() maintains idmap across all frames bpf: use check_ids() for active_lock comparison selftests/bpf: test case for relaxed prunning of active_lock.id ==================== Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions
a href='/linux/commit/scripts/gcc-plugin.sh?id=ed58c0e9eefef517aa5a547b78658e2ab4422232&follow=1'>gcc-plugins: abort builds cleanly when not supportedKees Cook3-16/+39 2016-08-08kbuild: no gcc-plugins during cc-option testsEmese Revfy1-3/+7 2016-08-09drm/edid: Set 8 bpc color depth for displays with "DFP 1.x compliant TMDS".Mario Kleiner1-0/+14 2016-08-09drm/i915/dp: Revert "drm/i915/dp: fall back to 18 bpp when sink capability is...Mario Kleiner1-15/+5 2016-08-09drm/edid: Add 6 bpc quirk for display AEO model 0.Mario Kleiner1-0/+8 2016-08-08unsafe_[get|put]_user: change interface to use a error target labelLinus Torvalds4-18/+17 2016-08-08printk: Remove unnecessary #ifdef CONFIG_PRINTKAndreas Ziegler1-2/+0 2016-08-08dell-wmi: Ignore WMI event 0xe00ePali Rohár1-2/+2 2016-08-08x86/hweight: Don't clobber %rdiVille Syrjälä1-0/+2 2016-08-08drm: Paper over locking inversion after registration reworkDaniel Vetter1-5/+3 2016-08-08drm: rcar-du: Link HDMI encoder with bridgeLaurent Pinchart1-0/+1 2016-08-07Linux 4.8-rc1v4.8-rc1Linus Torvalds1-2/+2 2016-08-07block: rename bio bi_rw to bi_opfJens Axboe51-157/+158 2016-08-07target: iblock_execute_sync_cache() should use bio_set_op_attrs()Jens Axboe1-1/+1 2016-08-07mm: make __swap_writepage() use bio_set_op_attrs()Jens Axboe1-2/+3 2016-08-07block/mm: make bdev_ops->rw_page() take a bool for read/writeJens Axboe11-53/+51 2016-08-07fs: return EPERM on immutable inodeEryu Guan4-4/+5 2016-08-05ramoops: use persistent_ram_free() instead of kfree() for freeing przHiraku Toyooka1-3/+3 2016-08-05ramoops: use DT reserved-memory bindingsKees Cook4-33/+56 2016-08-05drm/ttm: Wait for a BO to become idle before unbinding it from GTTMichel Dänzer6-9/+19 2016-08-05NTB: ntb_hw_intel: use local variable pdevAllen Hubbe1-5/+5 2016-08-05NTB: ntb_hw_intel: show BAR size in debugfs infoAllen Hubbe1-1/+38 2016-08-05ntb_test: Add a selftest script for the NTB subsystemLogan Gunthorpe2-0/+423 2016-08-05ntb_perf: clear link_is_up flag when the link goes down.Logan Gunthorpe1-19/+9 2016-08-05ntb_pingpong: Add a debugfs file to get the ping countLogan Gunthorpe1-1/+61 2016-08-05ntb_tool: Add link status and files to debugfsLogan Gunthorpe1-0/+92 2016-08-05ntb_tool: Postpone memory window initialization for the userLogan Gunthorpe1-138/+228 2016-08-05ntb_perf: Wait for link before running testLogan Gunthorpe1-1/+4 2016-08-05ntb_perf: Return results by reading the run fileLogan Gunthorpe1-12/+55 2016-08-05ntb_perf: Improve thread handling to increase robustnessLogan Gunthorpe1-48/+76 2016-08-05ntb_perf: Schedule based on time not on performanceLogan Gunthorpe1-2/+4 2016-08-05ntb_transport: Check the number of spads the hardware supportsLogan Gunthorpe2-4/+13 2016-08-05ntb_tool: Add memory window debug supportLogan Gunthorpe1-1/+257 2016-08-05ntb_perf: Allow limiting the size of the memory windowsLogan Gunthorpe1-0/+8 2016-08-05NTB: allocate number transport entries depending on size of ring sizeDave Jiang1-2/+27 2016-08-05ntb_tool: BUG: Ensure the buffer size is large enough to return all spadsLogan Gunthorpe1-2/+8 2016-08-05ntb_tool: Fix infinite loop bug when writing spad/peer_spad fileLogan Gunthorpe1-4/+5